Skip to content
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

Heroku Build Failed: emojione:emojione install issue #169

Open
etamity opened this issue Apr 4, 2017 · 7 comments
Open

Heroku Build Failed: emojione:emojione install issue #169

etamity opened this issue Apr 4, 2017 · 7 comments

Comments

@etamity
Copy link

etamity commented Apr 4, 2017

Type of problem
  • Failure to build
Summary

I tried to build on heroku with one press deploy, but failed.

Contents of .meteor/release
Buildpack version
https://github.com/RocketChat/meteor-buildpack-horse
Logs
-----> Node.js app detected
-----> Listing HEROKU_ environment variables
HEROKU_APP_ID:           
HEROKU_APP_NAME:         
HEROKU_DYNO_ID:          
HEROKU_RELEASE_VERSION:  
HEROKU_SLUG_COMMIT:      
HEROKU_SLUG_DESCRIPTION: 
-----> Clearing cache dir.
-----> Installing meteor
Downloading Meteor distribution
Meteor 1.4.3.2 has been installed in your home directory (~/.meteor).
Now you need to do one of the following:
  (1) Add "$HOME/.meteor" to your path, or
  (2) Run this command as root:
        cp "/app/tmp/cache/meteor/.meteor/packages/meteor-tool/1.4.3_2/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
Then to get started, take a look at 'meteor --help' or see the docs at
docs.meteor.com.
-----> Target Meteor version: Meteor 1.4.3.2
-----> Checking if this meteor version supports --server-only
-----> Using node: v4.8.0
----->    and npm: 4.3.0
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> [email protected] install /tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v46-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp) 
make: Entering directory `/tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
  COPY /tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f/node_modules/bcrypt/lib/binding/bcrypt_lib.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory `/tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f/node_modules/bcrypt/build'
> [email protected] postinstall /tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f
> cd packages/rocketchat-katex && npm i
[email protected] /tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f/packages/rocketchat-katex
└─┬ [email protected] 
  └── [email protected] 
[email protected] /tmp/build_507d3aa96d717bcf357be066e01104b7/etamity-Rocket.Chat-d21495f
├─┬ [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └─┬ [email protected] 
│   ├─┬ [email protected] 
│   │ └── [email protected] 
│   ├─┬ [email protected] 
│   │ └── [email protected] 
│   ├─┬ [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ ├── [email protected] 
│   │ │ └── [email protected] 
│   │ ├── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├─┬ [email protected] 
│   │ │ │ ├── [email protected] 
│   │ │ │ └─┬ [email protected] 
│   │ │ │   └── [email protected] 
│   │ │ ├─┬ [email protected] 
│   │ │ │ └── [email protected] 
│   │ │ └── [email protected] 
│   │ └── [email protected] 
│   ├─┬ [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ └── [email protected] 
│   ├─┬ [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ └── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ └── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ ├─┬ [email protected] 
│   │ │ │ ├── [email protected] 
│   │ │ │ └─┬ [email protected] 
│   │ │ │   └── [email protected] 
│   │ │ └── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├── [email protected] 
│   │ │ └── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ ├── [email protected] 
│   │ │ ├─┬ [email protected] 
│   │ │ │ ├── [email protected] 
│   │ │ │ ├── [email protected] 
│   │ │ │ ├── [email protected] 
│   │ │ │ └── [email protected] 
│   │ │ └─┬ [email protected] 
│   │ │   ├── [email protected] 
│   │ │   ├── [email protected] 
│   │ │   ├── [email protected] 
│   │ │   ├─┬ [email protected] 
│   │ │   │ └── [email protected] 
│   │ │   ├── [email protected] 
│   │ │   ├─┬ [email protected] 
│   │ │   │ └── [email protected] 
│   │ │   ├── [email protected] 
│   │ │   ├── [email protected] 
│   │ │   └── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ └── [email protected] 
│   │ ├── [email protected] 
│   │ └── [email protected] 
│   ├─┬ [email protected] 
│   │ └─┬ [email protected] 
│   │   ├── [email protected] 
│   │   ├── [email protected] 
│   │   ├── [email protected] 
│   │   ├── [email protected] 
│   │   └── [email protected] 
│   ├─┬ [email protected] 
│   │ ├── [email protected] 
│   │ ├─┬ [email protected] 
│   │ │ └── [email protected] 
│   │ └── [email protected] 
│   └─┬ [email protected] 
│     ├─┬ [email protected] 
│     │ └── [email protected] 
│     ├── [email protected] 
│     ├─┬ [email protected] 
│     │ └── [email protected] 
│     ├─┬ [email protected] 
│     │ ├── [email protected] 
│     │ ├── [email protected] 
│     │ ├── [email protected] 
│     │ ├── [email protected] 
│     │ ├── [email protected] 
│     │ └── [email protected] 
│     └── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │   ├── [email protected] 
│ │   └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ └─┬ [email protected] 
│   └── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ └── [email protected] 
├── [email protected] 
└── [email protected] 
-----> Building Meteor app with ROOT_URL: https://swapant.herokuapp.com/
=> Errors while initializing project:
While loading emojione:[email protected]...:
error: Command failed:
/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --update-binary
Phantom installation failed { [Error: EACCES: permission denied, open
'/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/location.js']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/location.js'
} Error: EACCES: permission denied, open
'/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/location.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at writeLocationFile
(/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/install.js:108:6)
at Promise._successFn
(/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/install.js:80:5)
at nextTickCallback
(/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/kew/kew.js:47:28)
at nextTickCallbackWith0Args (node.js:489:9)
at process._tickCallback (node.js:418:13)
npm ERR! Linux 3.13.0-112-generic
npm ERR! argv
"/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
"rebuild" "--update-binary"
npm ERR! node v4.8.0
npm ERR! npm  v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs phantomjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/_logs/2017-04-04T16_20_15_016Z-debug.log
Phantom installation failed { [Error: EACCES: permission denied, open
'/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/location.js']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/location.js'
} Error: EACCES: permission denied, open
'/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/location.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at writeLocationFile
(/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/install.js:108:6)
at Promise._successFn
(/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/install.js:80:5)
at nextTickCallback
(/tmp/mt-1emgowc/npm/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/kew/kew.js:47:28)
at nextTickCallbackWith0Args (node.js:489:9)
at process._tickCallback (node.js:418:13)
npm ERR! Linux 3.13.0-112-generic
npm ERR! argv
"/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
"rebuild" "--update-binary"
npm ERR! node v4.8.0
npm ERR! npm  v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs phantomjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/app/tmp/cache/meteor/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/_logs/2017-04-04T16_20_15_016Z-debug.log
 !     Push rejected, failed to compile Node.js app.
 !     Push failed
Deployment target

i tried deploy on heroku

@engelgabriel
Copy link

Please help! We don't know how to fix this :(

@yourcelf
Copy link
Collaborator

It looks like a problem with emojione:emojione. That library is trying to install grunt-contrib-qunit, which in turn is trying to install grunt-lib-phantomjs, which is trying to install phantomjs, which is trying to write a file called location.js as part of its initialization, which is failing with a "permission denied" error.

I don't know what the best way to fix this is, but I hope this helps point you closer to the issue.

You probably don't need the devDependencies from emojione on Heroku, unless you were trying to run headless unit tests there. So you could explore trying to prevent those from being included in the emojione package (perhaps open an issue there).

You might also check with the phantomjs npm package as to why they're trying to write a file to node_modules during installation, which seems like poor form.

@engelgabriel
Copy link

@engelgabriel
Copy link

@yourcelf
Copy link
Collaborator

yourcelf commented Apr 27, 2017 via email

@gilzhaiek
Copy link

@engelgabriel
Can't you roll back to an older emojione version < 2.2.6

@adinutzyc21
Copy link

Remove node_modules from your git repo you're deploying. That fixed it for me...
http://stackoverflow.com/questions/34294170/heroku-build-failed-node-modules-checked-into-source-control

@yourcelf yourcelf changed the title Heroku Build Failed Heroku Build Failed: emojione:emojione install issue Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants