Page MenuHomePhabricator

Parsoid doesn't work with node 12
Open, LowPublic

Description

I found the following Dockerfile to run Parsoid under docker: https://github.com/femiwiki/parsoid/blob/47bde6513a6291f89da82886d570134d3c6c2e06/Dockerfile

After copying a valid config.yaml I can build and run the dockerfile and the service works.
It also works when I use the image node:11.14.0-alpine as a baseimage. (In other words: It also works under node 11.14.0.)

However, the service does not start if I use the image node:12.0.0-alpine. I can still build the docker image. But when I run the docker image the server does not start correctly. I get the following log message:

{"name":"parsoid","hostname":"8e58c7790aad","pid":19,"level":60,"code":"MODULE_NOT_FOUND","requireStack":["/srv/parsoid/node_modules/service-runner/lib/base_service.js","/srv/parsoid/node_modules/service-runner/lib/master.js","/srv/parsoid/node_modules/service-runner/service-runner.js"],"moduleName":"lib/index.js","levelPath":"fatal/service-runner/worker","msg":"Cannot find module 'lib/index.js'\nRequire stack:\n- /srv/parsoid/node_modules/service-runner/lib/base_service.js\n- /srv/parsoid/node_modules/service-runner/lib/master.js\n- /srv/parsoid/node_modules/service-runner/service-runner.js","time":"2019-04-29T12:14:34.658Z","v":0}
{"name":"parsoid","hostname":"8e58c7790aad","pid":1,"level":40,"message":"first worker died during startup, continue startup","worker_pid":19,"exit_code":1,"startup_attempt":1,"levelPath":"warn/service-runner/master","msg":"first worker died during startup, continue startup","time":"2019-04-29T12:14:35.676Z","v":0}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 29 2019, 12:18 PM
Reedy renamed this task from Pardoid doesn't work with node 12 to Parsoid doesn't work with node 12.Apr 29 2019, 12:18 PM
ssastry triaged this task as Low priority.Apr 29 2019, 1:37 PM
ssastry added a subscriber: ssastry.

We are currently focused on the PHP port and won't be able to attend to this for a while.

@ssastry What do you think about mentioning it on https://www.mediawiki.org/wiki/Parsoid/Setup ?

That is a good idea. Feel free to edit the wiki page yourself. But, I can do it tomorrow otherwise.

Kghbln added a subscriber: Kghbln.May 2 2019, 8:42 AM