A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

VisualEditor Not Loading

daegontaven

Issue
I installed VisualEditor into mediawiki. The frontend appears to load. But progress bar never goes away. It gets stuck at 75%. After awhile(around 5 minutes), the console log prints “RESTBase load failed: error”. This probably means there is a problem with connecting to RESTbase. However, RESTbase itself does not display anything relevant to this in STDOUT. I’ve gone through most of the troubleshooting guides on Medawiki for Parsoid, RESTbase and VisualEditor. However, it’s still very hard to diagnose why this fails. How do I diagnose this?

Configs
Site: https://unethical.me/wiki/Main_Page

All Config Files and Ports: https://pastebin.com/icUsHhYQ

Tgr

You could change the log levels to debug for starters. Can you access the RESTBase / Parsoid APIs directly?

daegontaven

The log levels are already debug and I can’t access Parsoid or RESTbase APIs.

RazeSoldier

Can you access Parsoid API on your server with Parsoid installed? E.g. wget localhost:<Parsoid port>, should be download a page.

Tgr

Instead of clicking edit (which complicates things as it involves VE frontend code, the VE server-side API, MediaWiki config etc.) just try running both RESTBase and Parsoide in the foreground in different tabs, and in a third tab try curl -v http://localhost:7231/ and curl -v http://localhost:8000/. That should tell you whether the services are reachable at all. If not, it must be some kind of OS-level issue although I have no idea what.

daegontaven

I gave up and swtiched to WikiEditor. I guess VisualEditor is really beta.

daegontaven

This was solved eventually by moving the Parsoid/RESTbase services over to another server with a separate IP. I also had some success using it on the same server with stunnel behind a reverse proxy.