{"action":"created","issue":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/50","labels_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/50/comments","events_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/50/events","html_url":"https://github.com/marcbachmann/node-html-pdf/issues/50","id":96347571,"number":50,"title":"Crashes on mutli-node.js system","user":{"login":"wkande","id":3522283,"avatar_url":"https://avatars.githubusercontent.com/u/3522283?v=3","gravatar_id":"","url":"https://api.github.com/users/wkande","html_url":"https://github.com/wkande","followers_url":"https://api.github.com/users/wkande/followers","following_url":"https://api.github.com/users/wkande/following{/other_user}","gists_url":"https://api.github.com/users/wkande/gists{/gist_id}","starred_url":"https://api.github.com/users/wkande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkande/subscriptions","organizations_url":"https://api.github.com/users/wkande/orgs","repos_url":"https://api.github.com/users/wkande/repos","events_url":"https://api.github.com/users/wkande/events{/privacy}","received_events_url":"https://api.github.com/users/wkande/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-21T15:34:43Z","updated_at":"2015-10-19T17:41:39Z","closed_at":"2015-07-22T12:43:02Z","body":"Running the following on a single Node.js server is fine.\r\n\r\nconsole.log('create PDF');\r\n                            pdf.create(html).toBuffer(function(err, buffer){\r\n                                //console.log('This is a buffer:', Buffer.isBuffer(buffer));\r\n                                console.log('create PDF async call returned');\r\n                                try{\r\n                                    posterBuffer = buffer;\r\n                                    callback();\r\n                                }\r\n                                catch (err){\r\n                                    callback( err );\r\n                                }\r\n                            });\r\n\r\nBut if you have two servers behind an HAPROXY load balancer both servers crash with (no state):\r\n\r\n****************** START ERROR********************\r\nUn-Caught exception (reported from app.js): \r\n{ [Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', syscall: 'write' }\r\nError: write EPIPE\r\n    at exports._errnoException (util.js:746:11)\r\n    at WriteWrap.afterWrite (net.js:775:14)\r\n****************** END ERROR ********************\r\n\r\nI read a post about a double callback failure with phantom but now I cannot find it again.\r\n\r\nServer OS Ubuntu 14.0.4\r\nNode 12.5"},"comment":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/comments/149293288","html_url":"https://github.com/marcbachmann/node-html-pdf/issues/50#issuecomment-149293288","issue_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/50","id":149293288,"user":{"login":"marcbachmann","id":431376,"avatar_url":"https://avatars.githubusercontent.com/u/431376?v=3","gravatar_id":"","url":"https://api.github.com/users/marcbachmann","html_url":"https://github.com/marcbachmann","followers_url":"https://api.github.com/users/marcbachmann/followers","following_url":"https://api.github.com/users/marcbachmann/following{/other_user}","gists_url":"https://api.github.com/users/marcbachmann/gists{/gist_id}","starred_url":"https://api.github.com/users/marcbachmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcbachmann/subscriptions","organizations_url":"https://api.github.com/users/marcbachmann/orgs","repos_url":"https://api.github.com/users/marcbachmann/repos","events_url":"https://api.github.com/users/marcbachmann/events{/privacy}","received_events_url":"https://api.github.com/users/marcbachmann/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T17:41:39Z","updated_at":"2015-10-19T17:41:39Z","body":"There was never a problem like this. EPIPE means that no phantomjs binary is present. So `npm install` failed somehow."}}