[Meteor 1.4.2] Deploy error with PhantomJS on Galaxy [SOLVED]


#1

After upgrading my app to 1.4.2 I am getting the following error when deploying to Galaxy. I do not have phantomjs in my app at all.

2016-10-28 11:29:33-05:00Considering PhantomJS found at /usr/bin/phantomjs
v025
2016-10-28 11:29:33-05:00Found PhantomJS at /usr/bin/phantomjs ...verifying
v025
2016-10-28 11:29:34-05:00PhantomJS detected, but wrong version 1.9.0 @ /usr/bin/phantomjs.
v025
2016-10-28 11:29:34-05:00Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
v025
2016-10-28 11:29:34-05:00Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
v025
2016-10-28 11:29:34-05:00Receiving...
v025
2016-10-28 11:29:34-05:00
v025
2016-10-28 11:29:34-05:00Received 22866K total.
v025
2016-10-28 11:29:34-05:00Extracting tar contents (via spawned process)
v025
2016-10-28 11:29:37-05:00Removing /app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/lib/phantom
v025
2016-10-28 11:29:37-05:00Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1477672174701/phantomjs-2.1.1-linux-x86_64 -> /app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/lib/phantom
v025
2016-10-28 11:29:37-05:00Writing location.js file
v025
2016-10-28 11:29:37-05:00Phantom installation failed { [Error: EACCES: permission denied, open '/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/lib/location.js']
v025
2016-10-28 11:29:37-05:00 errno: -13,
v025
2016-10-28 11:29:37-05:00 code: 'EACCES',
v025
2016-10-28 11:29:37-05:00 syscall: 'open',
v025
2016-10-28 11:29:37-05:00 path: '/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/lib/location.js' } Error: EACCES: permission denied, open '/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/lib/location.js'
v025
2016-10-28 11:29:37-05:00 at Error (native)
v025
2016-10-28 11:29:37-05:00 at Object.fs.openSync (fs.js:549:18)
v025
2016-10-28 11:29:37-05:00 at Object.fs.writeFileSync (fs.js:1156:15)
v025
2016-10-28 11:29:37-05:00 at writeLocationFile (/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/lib/util.js:84:6)
v025
2016-10-28 11:29:37-05:00 at Promise._successFn (/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/phantomjs-prebuilt/install.js:88:5)
v025
2016-10-28 11:29:37-05:00 at nextTickCallback (/app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/node_modules/kew/kew.js:47:28)
v025
2016-10-28 11:29:37-05:00 at nextTickCallbackWith0Args (node.js:420:9)
v025
2016-10-28 11:29:37-05:00 at process._tickCallback (node.js:349:13)
v025
2016-10-28 11:29:37-05:00
v025
2016-10-28 11:29:38-05:00npm ERR! Linux 4.4.0-28-generic
v025
2016-10-28 11:29:38-05:00npm ERR! argv "/node-v4.6.1-linux-x64/bin/node" "/node-v4.6.1-linux-x64/bin/npm" "rebuild" "--update-binary"
v025
2016-10-28 11:29:38-05:00npm ERR! node v4.6.1
v025
2016-10-28 11:29:38-05:00npm ERR! npm v3.10.9
v025
2016-10-28 11:29:38-05:00npm ERR! code ELIFECYCLE
v025
2016-10-28 11:29:38-05:00npm ERR! phantomjs-prebuilt@2.1.13 install: `node install.js`
v025
2016-10-28 11:29:38-05:00npm ERR! Exit status 1
v025
2016-10-28 11:29:38-05:00npm ERR!
v025
2016-10-28 11:29:38-05:00npm ERR! Failed at the phantomjs-prebuilt@2.1.13 install script 'node install.js'.
v025
2016-10-28 11:29:38-05:00npm ERR! Make sure you have the latest version of node.js and npm installed.
v025
2016-10-28 11:29:38-05:00npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,
v025
2016-10-28 11:29:38-05:00npm ERR! not with npm itself.
v025
2016-10-28 11:29:38-05:00npm ERR! Tell the author that this fails on your system:
v025
2016-10-28 11:29:38-05:00npm ERR! node install.js
v025
2016-10-28 11:29:38-05:00npm ERR! You can get information on how to open an issue for this project with:
v025
2016-10-28 11:29:38-05:00npm ERR! npm bugs phantomjs-prebuilt
v025
2016-10-28 11:29:38-05:00npm ERR! Or if that isn't available, you can get their info via:
v025
2016-10-28 11:29:38-05:00npm ERR! npm owner ls phantomjs-prebuilt
v025
2016-10-28 11:29:38-05:00npm ERR! There is likely additional logging output above.
v025
2016-10-28 11:29:38-05:00
v025
2016-10-28 11:29:38-05:00npm ERR! Please include the following file with any support request:
v025
2016-10-28 11:29:38-05:00npm ERR! /app/bundle/programs/server/npm/node_modules/meteor/momentjs_moment/npm-debug.log
v025
2016-10-28 11:29:38-05:00

#2

Seems these are known issues:

PhantomJS issue:

Rolling MomentJS back to 2.15.1 (from 2.15.2) allowed the build the deploy.