Page MenuHomePhabricator

Bundled Parsoid for VisualEditor doesn't work in mediawiki-docker-dev
Open, Needs TriagePublic

Description

Forked from T259693: VisualEditor triggers HTTP 500 Parsoid error on Windows because of exception in GlobalIdGenerator, which was a Windows issue. This seems to be different. Report from @VulpesVulpes825:


I am on Linux using addshore's mediawiki-docker-dev. I used a clean installation with CLI.

OSUbuntu 18.04.4 LTS
MediaWiki1.35.0-rc.0 (c1ac169)
PHP7.2.24-0ubuntu0.18.04.3 (fpm-fcgi)
MariaDB10.5.4-MariaDB-1:10.5.4+maria~focal-log

When visiting the rest.php, I got

127.0.0.1 -  08/Aug/2020:02:36:18 +0000 "GET /rest.php?redirect=false&stash=true" 404 - cpu:0.00% mem:2 reqTime:0.003
[Sat Aug 08 02:36:18.931889 2020] [proxy_fcgi:error] [pid 112:tid 140709873039104] [client 172.0.0.2:54176] AH01071: Got error 'Primary script unknown\n'
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:36:18 +0000] "GET /rest.php/default.web.mw.localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"

When using VisualEditor for editing, I got

[Sat Aug 08 02:36:18.931889 2020] [proxy_fcgi:error] [pid 112:tid 140709873039104] [client 172.0.0.2:54176] AH01071: Got error 'Primary script unknown\n'
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:36:18 +0000] "GET /rest.php/default.web.mw.localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
[httpd:access] default.web.mw.localhost:80 172.0.0.1 - 172.0.0.2 - - [08/Aug/2020:02:36:18 +0000] "GET /rest.php/default.web.mw.localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 bytesIn:808 bytesOut:209 reqTime:0
[SYSLOG] CRON[414]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
[Sat Aug 08 02:39:21.879450 2020] [proxy_fcgi:error] [pid 112:tid 140709856253696] [client 172.0.0.2:54226] AH01071: Got error 'Primary script unknown\n'
127.0.0.1 -  08/Aug/2020:02:39:21 +0000 "GET /rest.php?redirect=false&stash=true" 404 - cpu:1219.51% mem:2 reqTime:0.001
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:39:21 +0000] "GET /rest.php/localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
[httpd:access] default.web.mw.localhost:80 172.0.0.1 - 172.0.0.2 - - [08/Aug/2020:02:39:21 +0000] "GET /rest.php/localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 bytesIn:813 bytesOut:209 reqTime:0
127.0.0.1 -  08/Aug/2020:02:41:08 +0000 "GET /rest.php?redirect=false&stash=true" 404 - cpu:0.00% mem:2 reqTime:0.000
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:41:08 +0000] "GET /rest.php/default.web.mw.localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
[httpd:access] default.web.mw.localhost:80 172.0.0.1 - 172.0.0.2 - - [08/Aug/2020:02:41:08 +0000] "GET /rest.php/default.web.mw.localhost/v3/page/html/Main_Page/6?redirect=false&stash=true HTTP/1.1" 404 bytesIn:854 bytesOut:209 reqTime:0
[Sat Aug 08 02:41:08.126505 2020] [proxy_fcgi:error] [pid 112:tid 140710000236288] [client 172.0.0.2:54264] AH01071: Got error 'Primary script unknown\n'
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:42:05 +0000] "GET /mediawiki/index.php?title=%E9%A6%96%E9%A1%B5 HTTP/1.1" 404 14147 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
127.0.0.1 -  08/Aug/2020:02:42:42 +0000 "GET /mediawiki/rest.php?redirect=false&stash=true" 500 /var/www/mediawiki/rest.php cpu:29.48% mem:20 reqTime:7.259
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:42:42 +0000] "GET /mediawiki/rest.php/default.web.mw.localhost/v3/page/html/Main_Page/1?redirect=false&stash=true HTTP/1.1" 500 16636 "-" "VisualEditor-MediaWiki/1.35.0-rc.0"
[httpd:access] default.web.mw.localhost:80 172.0.0.9 - 172.0.0.2 - - [08/Aug/2020:02:42:42 +0000] "GET /mediawiki/rest.php/default.web.mw.localhost/v3/page/html/Main_Page/1?redirect=false&stash=true HTTP/1.1" 500 bytesIn:517 bytesOut:16636 reqTime:7
docker.vm:80 172.0.0.2 - - [08/Aug/2020:02:42:38 +0000] "GET /mediawiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2 HTTP/1.1" 200 1027 "http://default.web.mw.localhost:8080/mediawiki/index.php?title=Main_Page&veaction=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
[httpd:access] default.web.mw.localhost:80 172.0.0.1 - 172.0.0.2 - - [08/Aug/2020:02:42:38 +0000] "GET /mediawiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2 HTTP/1.1" 200 bytesIn:852 bytesOut:1027 reqTime:12

It is a Primary script unknown issue, but the application in docker should have granted root access as it is running in docker.

Event Timeline

cscott created this task.Aug 9 2020, 6:30 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 9 2020, 6:30 PM
Majavah added a subscriber: Majavah.Aug 9 2020, 6:35 PM
kostajh added a subscriber: kostajh.

Untagging MediaWiki-Docker as that is used for the docker-compose environment in core, which is different from addshore’s mediawiki-docker-dev project.

ppelberg moved this task from To Triage to Triaged on the VisualEditor board.
ppelberg edited projects, added Editing-team (Tracking); removed Editing-team.
ppelberg moved this task from Backlog to External on the Editing-team (Tracking) board.