Yeah it looks similar. The link direct me to the right page.
On Jul 29, 2016, at 10:07 AM, Julian Loferer jloferer@adformc.de wrote:
Yeah it looks similar. The link direct me to the right page.
Can you paste your localsettings.js file somewhere for us to take a look? https://phabricator.wikimedia.org/paste/edit/form/14/
Also, in case I missed it, how did you install Parsoid?
Yeah here is my localsettings.js file:
https://phabricator.wikimedia.org/P3603
And i have installed it as an ubuntu package so with apt-get install parsoid .
Am 29.07.2016 um 19:12 schrieb Arlo Breault:
On Jul 29, 2016, at 10:07 AM, Julian Loferer jloferer@adformc.de wrote:
Yeah it looks similar. The link direct me to the right page.
Can you paste your localsettings.js file somewhere for us to take a look? https://phabricator.wikimedia.org/paste/edit/form/14/
Also, in case I missed it, how did you install Parsoid?
On Jul 29, 2016, at 12:24 PM, Julian Loferer jloferer@adformc.de wrote:
Yeah here is my localsettings.js file:
Thanks!
And i have installed it as an ubuntu package so with apt-get install parsoid .
I'm assuming you have v0.5.1 then. Correct me if I'm wrong.
The fact that you got this log line,
[warning/api/econnrefused][localhost/v3/page/html/Main_Page/3] Failed API request, {"error":{"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"},"retries-remaining":0}
means that your VE is probably setup correctly. It is at least communicating with Parsoid.
ECONNREFUSED is problematic though. It means that Parsoid can't connect to http://192.168.0.102/wiki/w/api.php
Can you think of anything specific in your setup that might be preventing that?
Also, please confirm that http://192.168.0.102/wiki/w/api.php, with that entire path, is what you checked previously for the response of the Action API.
Is Parsoid on the same machine as the process running Mediawiki?
If so, I'd suggest this change,
parsoidConfig.setMwApi({ prefix: 'localhost', domain: 'localhost', uri: 'http://127.0.0.1/wiki/w/api.php' });
(Note that we removed the first string argument there.)
Am 29.07.2016 um 22:54 schrieb Arlo Breault:
On Jul 29, 2016, at 12:24 PM, Julian Loferer jloferer@adformc.de wrote:
Yeah here is my localsettings.js file:
Thanks!
And i have installed it as an ubuntu package so with apt-get install parsoid .
I'm assuming you have v0.5.1 then. Correct me if I'm wrong.
Yeah thats right.
The fact that you got this log line,
[warning/api/econnrefused][localhost/v3/page/html/Main_Page/3] Failed API request, {"error":{"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"},"retries-remaining":0}
means that your VE is probably setup correctly. It is at least communicating with Parsoid.
ECONNREFUSED is problematic though. It means that Parsoid can't connect to http://192.168.0.102/wiki/w/api.php
Can you think of anything specific in your setup that might be preventing that?
In that case I think there could be something. I cannot start the parsoid server with "service parsoid start", so I must do it manuelly with nodejs and maybe thats the issue for it.
Also, please confirm that http://192.168.0.102/wiki/w/api.php, with that entire path, is what you checked previously for the response of the Action API.
Yeah it responses the API site.
Is Parsoid on the same machine as the process running Mediawiki?
Yeah it is running on the same machine.
If so, I'd suggest this change,
parsoidConfig.setMwApi({ prefix: 'localhost', domain: 'localhost', uri: 'http://127.0.0.1/wiki/w/api.php' });
(Note that we removed the first string argument there.)
If I change my settings in that way i get this error: [fatal/request][localhost/v3/page/html/Main_Page/3] Did not find page revisions for V3/page/html/Main_Page/3
Can you think of anything specific in your setup that might be preventing that?
In that case I think there could be something. I cannot start the parsoid server with "service parsoid start",
What happens when you try to do that?
so I must do it manuelly with nodejs and maybe thats the issue for it.
Are you passing it the config you've been working on?
`node server.js --config /path/to/localsettings.js`
If so, I'd suggest this change,
parsoidConfig.setMwApi({ prefix: 'localhost', domain: 'localhost', uri: 'http://127.0.0.1/wiki/w/api.php' });
(Note that we removed the first string argument there.)
If I change my settings in that way i get this error: [fatal/request][localhost/v3/page/html/Main_Page/3] Did not find page revisions for V3/page/html/Main_Page/3
Well, that's odd. Do you have multiple MediaWiki instances on that machine?
I'd suggest taking VE out of the equation and just checking the Parsoid API for starters.
Your config says,
``` parsoidConfig.serverPort = 8000; parsoidConfig.serverInterface = '0.0.0.0'; ```
so, first ensure that Parsoid is running at, http://localhost:8000/
then try visiting, http://localhost:8000/localhost/v3/page/html/Main_Page
and confirming that it is parsing the wiki's main page as expected.
---
Also, I'm not sure what the etiquette of this list is, but since this is unlikely to be relevant to other people here, maybe we should move the discussion off list.
Feel free to contact me or the Parsing team directly, https://www.mediawiki.org/wiki/Parsoid#Contacting_us
The fact that you got this log line,
[warning/api/econnrefused][localhost/v3/page/html/Main_Page/3] Failed API request, {"error":{"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"},"retries-remaining":0}
means that your VE is probably setup correctly. It is at least communicating with Parsoid.
ECONNREFUSED is problematic though. It means that Parsoid can't connect to http://192.168.0.102/wiki/w/api.php
I have setup the whole topology inside of a virtual machine. The main problem was that the outbound packages from the VM didn't go over the iptables rules which I had set only for the PREROUTING chain. So I had to add an OUTPUT chain for that. And now everything works fine.
Thanks to Arlo Breault for helping me to find and solve that problem.
Best regards Julian Loferer
wikitech-l@lists.wikimedia.org