-
Notifications
You must be signed in to change notification settings - Fork 544
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
Crashes on mutli-node.js system #50
Comments
Hehe, the problem is gone? |
@wkande the problem is gone? |
There was never a problem like this (the one in the issue title). EPIPE means that no phantomjs binary is present. So |
Oh, I solved it! |
Running the following on a single Node.js server is fine.
console.log('create PDF');
pdf.create(html).toBuffer(function(err, buffer){
//console.log('This is a buffer:', Buffer.isBuffer(buffer));
console.log('create PDF async call returned');
try{
posterBuffer = buffer;
callback();
}
catch (err){
callback( err );
}
});
But if you have two servers behind an HAPROXY load balancer both servers crash with (no state):
* START ERROR***
Un-Caught exception (reported from app.js):
{ [Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', syscall: 'write' }
Error: write EPIPE
at exports._errnoException (util.js:746:11)
at WriteWrap.afterWrite (net.js:775:14)
****************** END ERROR ********************
I read a post about a double callback failure with phantom but now I cannot find it again.
Server OS Ubuntu 14.0.4
Node 12.5
The text was updated successfully, but these errors were encountered: