-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
occasionally I get "phantom manager could not start all workers" error #107
Comments
Is it an option for you to use |
Thank you for the advice, I will give it a try :) |
I also have same issue please help me if any one fixed it, I am creating .exe of node and facing this error, with source code its working but not working with executable.
|
the |
I am using phantom-html-to-pdf version 0.5.6 on debian 9 to generate pdf files from html.
Occasionally I get the following error, and cannot see any pattern when it happens. Just it happens sometimes. Any idea what could be the problem and how to fix it ?
{ Error: phantom manager could not start all workers.. at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomManager.js:66:47 at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomWorker.js:117:24 at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomWorker.js:140:20 at Socket.<anonymous> (/var/www/dev/backend/node_modules/phantom-workers/lib/checkPortStatus.js:45:9) at Socket.emit (events.js:198:13) at TCP._handle.close (net.js:606:12) workerErrors: [ Error: Unable to reach phantomjs web server. at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomWorker.js:140:23 at Socket.<anonymous> (/var/www/dev/backend/node_modules/phantom-workers/lib/checkPortStatus.js:45:9) at Socket.emit (events.js:198:13) at TCP._handle.close (net.js:606:12), Error: Unable to reach phantomjs web server. at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomWorker.js:140:23 at Socket.<anonymous> (/var/www/dev/backend/node_modules/phantom-workers/lib/checkPortStatus.js:45:9) at Socket.emit (events.js:198:13) at TCP._handle.close (net.js:606:12) ] } /var/www/dev/backend/htmlToPdf.js:46 pdf.stream.pipe(output).on('finish', () => process.exit()); ^ TypeError: Cannot read property 'stream' of undefined at /var/www/dev/backend/htmlToPdf.js:46:17 at /var/www/dev/backend/node_modules/phantom-html-to-pdf/lib/serverStrategy.js:42:20 at /var/www/dev/backend/node_modules/phantom-html-to-pdf/lib/serverStrategy.js:22:48 at Array.forEach (<anonymous>) at /var/www/dev/backend/node_modules/phantom-html-to-pdf/lib/serverStrategy.js:22:25 at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomManager.js:68:28 at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomWorker.js:117:24 at /var/www/dev/backend/node_modules/phantom-workers/lib/phantomWorker.js:140:20 at Socket.<anonymous> (/var/www/dev/backend/node_modules/phantom-workers/lib/checkPortStatus.js:45:9) at Socket.emit (events.js:198:13)
The text was updated successfully, but these errors were encountered: