Topic on Talk:Parsoid

Summary by Arlolra

User disappeared

Facerafter (talkcontribs)

Trying to setup parsoid on a new server, but keep running into this error when trying to start the parsoid service.

From the log file:

https://pastebin.com/mKY4N52s

Arlolra (talkcontribs)

How did you install Parsoid?

Facerafter (talkcontribs)
Arlolra (talkcontribs)

Is there any reason you aren't using the debian packages we provide? See Parsoid/Setup#Ubuntu .2F Debian

The instructions you provided are a little confusing. They point to a method that is trying to avoid using npm by cloning the deploy repo, which has the necessary dependencies already, and then invokes npm install anyways.

From the looks of it, one of your copy steps is putting things in the wrong place.

Facerafter (talkcontribs)

Trying to reinstall via the link you sent actually showed me the problem as it saw the config.yaml already existed and showed the differences.

Apparently in our old version we had: 'module: /lib/index.js' but it should be 'module: ../src/lib/index.js'

So I aborted the installation and fixed the file. But VE doesn't do anything. The last line on parsoid.log does say 'Startup finished' though.

Arlolra (talkcontribs)

Can you clarify what you mean by VE doesn't do anything? What does the VE section of your LocalSettings.php look like?

Facerafter (talkcontribs)
Arlolra (talkcontribs)

Is Parsoid being started on 8142 or 8000?

Facerafter (talkcontribs)

8142

Arlolra (talkcontribs)
Facerafter (talkcontribs)

{"name":"parsoid","version":"0.7.1"}

Arlolra (talkcontribs)

So, Parsoid seems up at least.

Are there any errors in the browser developer console?

Given that the last line in your parsoid.log is the startup message, it doesn't seem like VE is making any requests to it.

Facerafter (talkcontribs)

Yeah two errors but those were already in the console before trying to edit a page with VE

Exception in module-execute in module site:

and

ReferenceError: Waves is not defined ReferenceError: Waves is not defined

No new errors appear when trying to use it.

Arlolra (talkcontribs)

Do you have any other extensions installed? Try disabling them all except VE and verify that doesn't work first.

Facerafter (talkcontribs)

After disabling them all except VE and then trying to use VE results in an error in the developer console.

GET <URL>/api.php?action=visualeditor&format=json&paction=parse&page=FAQ&uselang=en 500 (Internal Server Error)

After which it keeps giving me a browser msg/notifcation/popup thing with just 'http' which keeps repeating with the error mentioned above.

Arlolra (talkcontribs)

That seems like an improvement. Is there anything in the Parsoid logs now?

Facerafter (talkcontribs)

Btw, I edited my response above (damn you are fast)

But the parsoid logs says nothing new.

Arlolra (talkcontribs)

Since the server is returning 500, you should have server error logs you can look at to figure out what's going on.

Arlolra (talkcontribs)

To be clear, I mean whatever is serving mediawiki. Not parsoid.

Facerafter (talkcontribs)

Tried complete parsoid reinstallation. But encountered the exact same error as before the reinstallation

Nothing in the apache2 error log.

Arlolra (talkcontribs)

Is this a public or private wiki? If MediaWiki is returning a 500 error, you should have something in the apache error logs.

Facerafter (talkcontribs)

Public. The developers console is displaying a 500 error when trying to use VE, the site itself works fine.

Arlolra (talkcontribs)

Can you share the url?

Maybe try enabling some debugging flags in MediaWiki to generate more informative errors,

// error_reporting( -1 );

// ini_set( 'log_errors', 1 );

// ini_set( 'error_log', '/tmp/php-error.log' );

Facerafter (talkcontribs)

https://scwdev.czen.me

Ffs, I still think there is something wrong with my parsoid installation...

So I setup a local vm using a different install method (This one Parsoid/Setup#Ubuntu .2F Debian ) but than the /etc/mediawiki/parsoid directory is completely empty. Not config.yaml or anything...

It seems like om doing something wrong everytime... I just don't know what.

Arlolra (talkcontribs)

I don't think there's anything wrong with the Parsoid setup above.

Can you access, say, curl http://localhost:8142/localhost/v3/page/html/Magnus/21579? If so, Parsoid is fine. We established that above.

I'm noticing on your wiki that it's telling me, "You do not have permission to edit this page, for the following reason".

Can you try this https://www.mediawiki.org/wiki/Extension:VisualEditor#Linking_with_Parsoid_in_private_wikis ?

Also, there're still an exception, "Waves is not defined". You should disable all other extensions until this is resolved.