Page MenuHomePhabricator

Wikisource Export: "Unable to launch a new process"
Open, Needs TriagePublicBUG REPORT

Description

What is the problem?

Some ebooks produce (intermittently) the error on wsexport-test:

Message:  Uncaught PHP Exception Symfony\Component\Process\Exception\RuntimeException: "Unable to launch a new process." at /var/www/tool/vendor/symfony/process/Process.php line 338  
Time:  2020-10-30T09:07:20.188561+00:00  
Channel:  request  
Context:   exception:  {    
         "class": "Symfony\\Component\\Process\\Exception\\RuntimeException",    
         "message": "Unable to launch a new process.",    
         "code": 0,    
         "file": "/var/www/tool/vendor/symfony/process/Process.php:338",    
         "trace": [    
             "/var/www/tool/vendor/symfony/process/Process.php:232",    
             "/var/www/tool/vendor/symfony/process/Process.php:251",    
             "/var/www/tool/src/FontProvider.php:68",    
             "/var/www/tool/vendor/symfony/cache/LockRegistry.php:99",    
             "/var/www/tool/vendor/symfony/cache/Traits/ContractsTrait.php:88",    
             "/var/www/tool/vendor/symfony/cache-contracts/CacheTrait.php:70",    
             "/var/www/tool/vendor/symfony/cache/Traits/ContractsTrait.php:95",    
             "/var/www/tool/vendor/symfony/cache-contracts/CacheTrait.php:33",    
             "/var/www/tool/src/FontProvider.php:91",    
             "/var/www/tool/src/FontProvider.php:153",    
             "/var/www/tool/src/FontProvider.php:176",    
             "/var/www/tool/src/Generator/EpubGenerator.php:406",    
             "/var/www/tool/src/Generator/EpubGenerator.php:59",    
             "/var/www/tool/src/Generator/ConvertGenerator.php:136",    
             "/var/www/tool/src/Generator/ConvertGenerator.php:121",    
             "/var/www/tool/src/BookCreator.php:52",    
             "/var/www/tool/src/Controller/ExportController.php:91",    
             "/var/www/tool/src/Controller/ExportController.php:62",    
             "/var/www/tool/vendor/symfony/http-kernel/HttpKernel.php:157",    
             "/var/www/tool/vendor/symfony/http-kernel/HttpKernel.php:79",    
             "/var/www/tool/vendor/symfony/http-kernel/Kernel.php:196",    
             "/var/www/tool/public/index.php:35"    
         ]    
     }    
Extra:   host:  wsexport-test.wmflabs.org    
   uri:  http://wsexport-test.wmflabs.org/book.php?fonts=&format=pdf-a4&lang=fr&page=Dictionnaire_infernal%2F6e_%C3%A9d.%2C_1863
Links to reproduce problem

These have reproduced the issue in the past, although now I find that 1 and 3 produce successfully, and 2 occasionally produces the error (it has happened 2 out of the last three times I tried).

  1. https://wsexport-test.wmflabs.org/?lang=fr&page=Voyage_au_centre_de_la_Terre&format=rtf&fonts=
  2. https://wsexport-test.wmflabs.org/book.php?lang=fr&page=Dictionnaire_infernal%2F6e_%C3%A9d.%2C_1863&format=pdf-a4&fonts=
  3. https://wsexport-test.wmflabs.org/?lang=en&page=Independence%3A+Rectorial+address+delivered+at+St+Andrews+October+10+1923&format=pdf-a4&fonts=
  4. http://wsexport-test.wmflabs.org/book.php?fonts=&format=epub&lang=en&page=Doubts%20%28Rupert%20Brooke%29
  5. http://wsexport-test.wmflabs.org/book.php?fonts=&format=epub&lang=fr&page=Les%20Chroniques%20de%20Sire%20Jean%20Froissart%2FLivre%20I%2C%20Partie%20I%2FChapitre%20XL

Event Timeline

dom_walden renamed this task from Wikisource Export: "Unable to launch a new process" (only reproducible on wsexport-test) to Wikisource Export: "Unable to launch a new process".Nov 20 2020, 2:40 PM

This has been seen on production 5 times since 18th Nov. Total number of downloads in November was ~65000.

Thank you for this update on how often the issue is occurring, @dom_walden!

I'm unable to reproduce this issue at this time with any of the links provided. Perhaps our recent work helped this issue? @dom_walden Are you able to reproduce it? Do you think we should close this ticket?

I'm unable to reproduce this issue at this time with any of the links provided. Perhaps our recent work helped this issue? @dom_walden Are you able to reproduce it? Do you think we should close this ticket?

Nor can I, on either test or prod.

We have seen a couple of these errors in the wild over the last week or so. They occured with:

But, I have not been able to reproduce the error with either of those. The first timed out. The second exported correctly.

So, I don't know what we should do :P