Topic on Talk:Parsoid

service doesn't terminate

12
Summary by Arlolra

Parsoid/JS is no longer supported

2405:201:300B:8199:A13A:4053:59CD:BE98 (talkcontribs)

I am using service runner to use parsoid.js but it doesn't terminate even after I use runner.stop() argument, these are the options I passed to service runner what changes should be made here. {

       name: 'parsoid',
       module: 'node_modules/parsoid/lib/index.js',
       entrypoint: 'apiServiceWorker',
       conf: {
         timeouts: {
           // request: 4 * 60 * 1000, // Default
           request: 8 * 60 * 1000,
         },
         limits: {
           wt2html: {
             // maxWikitextSize: 1000000, // Default
             maxWikitextSize: 1000000 * 4,
             // maxListItems: 30000, // Default
             maxListItems: 30000 * 4,
             // maxTableCells: 30000, // Default
             maxTableCells: 30000 * 4,
             // maxTransclusions: 10000, // Default
             maxTransclusions: 10000 * 4,
             // maxImages: 1000, // Default
             maxImages: 1000 * 4,
             // maxTokens: 1000000, // Default
             maxTokens: 1000000 * 4,
           },
         },
         mwApis: [{
           uri: this.mw.apiUrl.href,
         }],
       },
     },

there was another service named MCS linked with it

SSastry (WMF) (talkcontribs)

We have *NOT* tested Parsoid/JS with node v0.12 and it is likely that is where this is failing. We will not be supporting Parsoid/JS on newer node versions since Parsoid has been ported over to PHP and is being integrated into MediaWiki core directly.

But, if we have a solution to this problem, we'll share here.


EDIT: I meant to say: we have *NOT* tested ... and missed the NOT,

Manan jethwani (talkcontribs)

hey thanks for replying but the parsoid doesn't terminate even on v0.12 I tried it at that point as well....

Manan jethwani (talkcontribs)

services: [{

        name: 'mcs',
        module: 'node_modules/service-mobileapp-node/app.js',
        conf: {
          port: 6927,
          mwapi_req: {
Manan jethwani (talkcontribs)
Manan jethwani (talkcontribs)
},
       }, {
       name: 'parsoid',
       module: 'node_modules/parsoid/lib/index.js',
       entrypoint: 'apiServiceWorker',
       conf: {
         limits: {
           wt2html: {
             // maxWikitextSize: 1000000, // Default
             maxWikitextSize: 1000000 * 4,
             // maxListItems: 30000, // Default
             maxListItems: 30000 * 4,
             // maxTableCells: 30000, // Default
             maxTableCells: 30000 * 4,
             // maxTransclusions: 10000, // Default
             maxTransclusions: 10000 * 4,
             // maxImages: 1000, // Default
             maxImages: 1000 * 4,
             // maxTokens: 1000000, // Default
             maxTokens: 1000000 * 4,
           },
         },
         mwApis: [{
           uri: this.mw.apiUrl.href,
         }],
       },
Manan jethwani (talkcontribs)

these are the all options I am using for services in service runner

SSastry (WMF) (talkcontribs)

Sorry, I edited my comment above, but we have *NOT* tested this with v0.12.

Manan jethwani (talkcontribs)

ok but can you just mention where are all the arguments for configuration mentioned so that I can try to apply it myself if possible

Manan jethwani (talkcontribs)

or at least just give me how you applied on older version of node.js so I can try it myself I really need this for js

SSastry (WMF) (talkcontribs)

I don't understand what you are asking. In any case, on Wikimedia wikis, we don't use Parsoid/JS anymore. We have switched over to Parsoid/PHP.

Maybe try with node v11 and see if it fixes your problem.

Manan jethwani (talkcontribs)

ok will try that but I just wanted proper docs where this might have been applied.....just an example on how I can apply