VisualEditor 1.23
Mediawiki 1.23
Parsoid 0.10.0
Error:
apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server
The regular editor works. The database works.
What is wrong? Whatever I do, it does not help me. I try manual install to Arch - always the same error.
docker-compose.yml:
version: '3'
services:
mediawiki:
build: .
image: amediawiki32ve
container_name: mediawiki_wiki
restart: always
ports:
- 8024:80
links:
- database
- parsoid
volumes:
- /var/www/html/images
# After initial setup, download LocalSettings.php to the same directory as
# this yaml and uncomment the following line and use compose to restart
# the mediawiki service
- ./LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mariadb
restart: always
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_DATABASE: my_wiki
MYSQL_USER: pscn
MYSQL_PASSWORD: example1
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
ports:
- 4675:3306
parsoid:
image: thenets/parsoid:0.10.0
ports:
- 8035:8000
restart: always
environment:
PARSOID_DOMAIN_localhost: localhost:8024/api.php
Dockerfile to build:
FROM mediawiki:1.32
RUN cd /var/www/html/extensions &&\
git clone -b REL1_32 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git &&\
cd VisualEditor &&\
git submodule update --init
LocalSettings.php (together with automatically generated settings):
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'localhost:8035',
'domain' => 'localhost'
);
When click Edit
:
http://localhost:8024/api.php?action=visualeditor&format=json&paction=parse&page=Strona_główna&uselang=pl&oldid=3
{"error":{"code":"apierror-visualeditor-docserver-http-error","info":"(curl error: 7) Couldn't connect to server","*":"See http://localhost:8024/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."}}
And:
http://localhost:8024/load.php?debug=false&lang=pl&modules=diffMatchPatch,papaparse,rangefix,spark-md5,treeDiffer,unicodejs|ext.visualEditor.articleTarget,base,core,data,desktopArticleTarget,desktopTarget,diffing,icons,language,mediawiki,moduleIcons,mwalienextension,mwcore,mwextensionmessages,mwextensions,mwformatting,mwgallery,mwimage,mwlanguage,mwlink,mwmeta,mwsave,mwsignature,mwtransclusion,welcome|ext.visualEditor.core.desktop|ext.visualEditor.mwextensions.desktop|ext.visualEditor.mwimage.core|jquery.uls.data|mediawiki.action.view.redirectPage|mediawiki.diff.styles|mediawiki.language.names|mediawiki.page.gallery.styles|mediawiki.skinning.content.parsoid|mediawiki.widgets|mediawiki.widgets.MediaSearch,UserInputWidget|oojs-ui.styles.icons-layout,icons-user,icons-wikimedia&skin=vector&version=0ixr96x
And:
http://localhost:8024/api.php
{"options":"success"}