Join GitHub today
Error: grpc_node.node: invalid ELF header #7236
From @Nabarun on July 5, 2016 5:11
I have a node.js app which is deployed in heroku. I am using gcloud to query vision related stuff. It works on my local but in heroku it throws following exception. Please help me to resolve this
Copied from original issue: googleapis/google-cloud-node#1409
referenced this issue
Jul 6, 2016
Here is the process I followed
Download and install the Heroku Toolbelt or learn more about the Heroku Command Line Interface.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
Use Git to clone runu's source code to your local machine.
$ heroku git:clone -a runu
Make some changes to the code you just cloned and deploy them to Heroku using Git.
$ git add .
OK, if you're installing the package on a local machine that is not Linux, then copying everything you get to Heroku, I would not expect that to work for this package or any other package with a native extension.
I would recommend following this guide. Specifically, this part is important:
I followed the tutorial, now it is crashing due to different reason on heroku. BTW my local setup is on Mac.
Does gcloud use stream-shift?
OK again I am hitting the same invalid ELF issue after importing stream-shift module
I thought I should leave a comment on this as I've been struggling with this issue back and forth a bit.
So just add node_modules to your .dockerignore and it's solved.
@skymapHans i did what you say but still got the issue.
ofcourse i used
i just copied the dependencies into global directory of nodejs. incase you have another global directory you can copy there