在meteorEPIPE错误的html-pdf
我有一个使用html-pdf
呈现PDF服务器端的Meteor应用程序。 该应用程序与mup
部署。 本地,一切工作正常。 部署后,我在服务器日志中看到这个错误:
events.js:72 throw er; // Unhandled 'error' event ^ Error: write EPIPE at errnoException (net.js:905:11) at Object.afterWrite (net.js:721:19) error: Forever detected script exited with code: 8 error: Script restart attempt #1
版本的东西:
- Ubuntu 14.04.2 LTS
- meteor1.0.4.2
- Node.js 0.10.37
- mup 0.9.7
概要
修复: sudo apt-get install libfontconfig
细节
我注意到, html-pdf
取决于并安装phantomjs
本身。 我发现了一些编译的phantomjs
二进制文件:
/opt/testapp/app/programs/server/npm/testpackage/node_modules/html-pdf/node_modules/phantomjs/bin/phantomjs /opt/testapp/app/programs/server/npm/testpackage/node_modules/html-pdf/node_modules/phantomjs/lib/phantom/bin/phantomjs
当我试图直接运行任何二进制文件,我得到这个错误:
error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
networkingsearch引发了这种秘密依赖 。