Topic on Project:Support desk

Getting VisualEditor to work???

7
Summary by Kghbln

This is a whatever situation ... Somehow it eventually worked.

Kghbln (talkcontribs)

Admittedly this is the first time I try this. The docu on how to do this is pretty unclear. As a result saving pages does not work.

My setup:

  • MW 1.30.0
  • PHP 5.6.33
  • MariaDB 10.0.33
  • Parsoid 0.8.0
  • NodeJS 8.9.4

(MediaWiki) LocalSettings.php:

## VisualEditor
wfLoadExtension( 'VisualEditor' );
$wgVisualEditorAvailableNamespaces = [
        NS_MAIN => true,
        NS_USER => true,
        NS_EXTRA => true
        ];
$wgVirtualRestConfig['modules']['parsoid'] = [
        'url' => 'https://parsoid.example.org:8143',
        'domain' => 'sd.example.org',
        'prefix' => 'seexo'
        ];

(parsoid) config.yaml:

conf:
 mwApis:
     uri: 'https://sd.example.org/w/api.php'
     domain: 'sd.example.org'  # optional
 serverPort: 8143

(stunnel) parsoid.conf:

cert = /etc/letsencrypt/live/sd.example.org/fullchain.pem
key = /etc/letsencrypt/live/sd.example.org/privkey.pem

[parsoid]
accept  = 8143
connect = 8142

(apache) sd.example.org.conf

   ...
   ServerAlias parsoid.example.org
   ...

As soon as I want to save a page I get:

(curl error: 7) Couldn't connect to server

and

apierror-visualeditor-docserver-http-error

From reading all the related threads it is either a version mismatch or a config issue. However I do not get what I am doing wrong.

Any hint is highly appreciated. Thanks a ton in advance!

Kghbln (talkcontribs)

Needless to say that parsoid is running, at least the service parsoid status is telling me. I also checked if it is possible to work with NodeJS i.e. typing node and getting > ... . This test ended positively, too. The parsoid.log remains empty for this issue.

Kghbln (talkcontribs)

Downgrading to nodeJS 6.12.3 does not help either. I get the same error. This is pretty frustrating.

Kghbln (talkcontribs)

Switching all to use localhost does not help either. Same error or all ports I tried, i.e. 8000, 8142 or 8143. Tried several variations.

Kghbln (talkcontribs)
Kghbln (talkcontribs)

Well the thread should be called getting parsoid to work??? I realized that parsoid is not getting stiff. I expected issues but did not realizes that it will be that bad. I will revisit this and try to get it running.

Kghbln (talkcontribs)

This current instructions are b... I had do work around very instruction and tweaks all setups. On a standard machine.