-
Notifications
You must be signed in to change notification settings - Fork 396
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
Deploy from MAC to Linux - "bcrypt_lib.node: invalid ELF header" #377
Comments
Hi, Try this:
If the problem persists, copy/paste your mup.json file here together with the full error stack. Also, it would help to know the Meteor version you're running. Enviado do meu iPhone No dia 15/04/2015, às 21:25, nickich notifications@github.com escreveu:
|
Hi, On the MAC: On the target node version is: v0.10.38. The upstart log is (beginning and end of it, rest is repeated...): /opt/myapp/app/programs/server/node_modules/fibers/future.js:245 ...... /opt/myapp/app/programs/server/node_modules/fibers/future.js:245
Thanks. |
Try to downgrade your node version to 0.10.36 in the target by specifying it in your mup.json file.
Should work! Enviado do meu iPhone No dia 16/04/2015, às 19:25, nickich notifications@github.com escreveu:
|
Hello João, Your suggestion seems to do the trick. Thanks! Thanks. |
Glad I could help :-) On 17 April 2015 at 18:54, nickich notifications@github.com wrote:
|
Still seeing this with deployment from OSx to Ubuntu with .36-.43 in Meteor 1.3. |
@vincro same here facing same issue with deploying Meteor 1.3 |
@piyushcoader same issue for me since I have upgraded to Meteor 1.3 |
I have resorted to doing my own deploys on DigitalOcean and writing my own deploys using flightplans, not ideal but less of a black box and ultimate flexibility. |
I think the issue is with new meteor build system |
I have manually updated the bcrypt dependency app/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt |
@mlecoq How did you manually update bcrypt? It's definitely what's breaking my app. Incidentally, is there a way to delete bcrypt from your app and re-add it now npm is supported? |
@TheRealmGaming I am not very proud of it :) In the following directory : /opt/myapp/app/programs/server/npm/node_modules/meteor/npm-bcrypt/ npm install bcrypt |
@mlecoq and then did you re-run mup deploy? Mine isn't deploying and I imagine re-running deploy would overwrite your changes. |
@TheRealmGaming no, i did not re-run mup deploy. |
Hi @TheRealmGaming @mlecoq , I'm having the same issue. Thanks for your help with this. I was able to use the new bcrypt and re-run mup deploy by "fighting the clock" -- I made my "deployCheckWaitTime" value in mup.json long enough for me to be able to delete the bcrypt that is installed at /opt/app-name/app/programs/server/npm/node_modules/meteor/npm-bcrypt/ upon deployment, and reinstall the newest version (0.8.5). All I'm wondering now is whether I can automate this process or if I should open a new issue to try and get this resolved... |
@sv-developer I may try to migrate to the new meteor-up : https://github.com/kadirahq/meteor-up |
@sv-developer I don't think it's a meteor-up issue. I have tried a manual build (meteor build ...) and the same issue occurs. |
\ o / Newer versions of the following indirect dependencies are available: npm-bcrypt 0.7.8_2 (0.8.5 is available) |
@sv-developer @TheRealmGaming This issue will be fixed in Meteor 1.3.2 meteor update --release METEOR@1.3-beta.11 |
Great news! Thank you for researching this. |
@mlecoq Looks like the fix is not included in the 1.3.2 or 1.3.2.1 releases. |
@lijoantony I did not test them directly with meteor up (last time I used meteor build). I will check. This issue is viewed as closed : meteor/meteor#6778 |
@lijoantony you are right I still have the issue with meteor up |
Not fixed in 1.3.2.2 either :( |
Same issue here. Cannot deploy to a VM hosted by DigitalOcean. Any help? |
As mentioned by @mlecoq above, use METEOR@1.3-beta.11 |
I, in the end ditched MUP and rolled my own scripts. Not that hard, just not as quick as writing one line of code. The best thing you can do on DO is to make some snapshots and then all you need to do is deploy them and run deploy/build/npm install a number of time, which can be scripted anyhow. |
In the end, I got no luck from mup. I turned to mupx, the successor of mup. I update my meteor to 1.3.2.2. Then mupx smoothly deploys my app on a DigitalOcean VM with 3.13 linux kernel. Best luck for everyone. :) |
Seems like this is affecting quite a few people. Is there any prospect of it getting resolved in the near future? It has been a problem for over a year. |
@mbateman I also use manual build. I think that we have to wait a release of https://github.com/kadirahq/meteor-up |
@mlecoq thanks for the reply. I assume you mean copy a local build to the target platform and start it there. |
@mbateman yes |
I just used the METEOR@1.3-beta.11 workaround which works fine too. It seems strange that it this is not in subsequent releases. |
@mbateman If you have a stacktrace with latest version (1.3.2.4), we can reopen this issue meteor/meteor#6778 |
@mlecoq I have left a comment on meteor/meteor#6778. |
@zliuInspire Thanks! 1.3.2.2 + mupx - good works! Install to flops.ru ubuntu 14.04 linux 3.16. |
@mlecoq Is the plan to include the fix present in METEOR@1.3-beta.11 in the next release? (e.g. 1.3.2.5) |
Switched to mupx. it works! |
same problem here on Meteor 1.3.3.1 |
I forked this repo and started a new project from this basis, the deploy script will fix the bcrypt issue automatically. You can just install the mup from here https://github.com/c9s/meteor-up |
Hello,
I'm trying to deploy a meteor app from MAC OS to Linux.
The deployment fails:
✘ Invoking deployment process: FAILED
with log:
...app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header
It looks like MUP is uploading the local MAC bcrypt. I'm not sure if MUP does build bcrypt on the target Linux machine, and if it does it probably doesn't clean-up the old (MAC) binaries.
If I go to the Linux machine and I do:
cd ...app/programs/server
rm -rf npm/npm-bcrypt/node_modules/bcrypt
npm install bcrypt
then I can start service and all works.
Strangely If I don't delete the bcrypt and just do:
cd ...app/programs/server
npm install bcrypt
it doesn't work. I tried to rebuild bcrypt, etc. - no success until I delete the old binaries.
Is there an easy fix for it? Am I doing something wrong or I'm missing something...?
The text was updated successfully, but these errors were encountered: