Mup Deploy Failure after a successful Mup Setup

Hello everyone,

I have a problem with mup deploy (which was working fine a couple of weeks ago). I checked the similar posts in the forum but nothing worked so far.

Let me explain first after what process mup deploy failed. Maybe somehow they are related.
First things first Meteor Version is 1.2.1 and server is Ubuntu 14.04.4 LTS a digital ocean droplet, I know everything is pretty old but I had to make my peace with it :confused:
The things I have done before getting the errors:

  1. I renewed the certificate (which I’m using letsencrpyt for that)

  2. After renewal, I hit mup setup in order to make new certificate work (I’ve done the same things 2-3 times this year).

  3. After that, I hit mup deploy but I have the following errors:

     [Server IP] x Invoking deployment process: FAILED
        at Module.load (module.js:356:32)
     gyp ERR! System Linux 3.13.0-79-generic
     gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
     gyp ERR! cwd /opt/my-app-name/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt
     gyp ERR! node -v v0.10.40
     gyp ERR! node-gyp -v v3.6.2
     gyp ERR! This is a bug in `node-gyp`.
     gyp ERR! Try to update node-gyp and file an Issue if it does not help:
     gyp ERR!     <>
     npm WARN package.json meteor-dev-bundle@0.0.0 No description
     npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
     npm WARN package.json meteor-dev-bundle@0.0.0 No README data
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  
0curl: (7) Failed to connect to localhost port 80: Connection refused
Latest deployment failed! Reverted back to the previous version.
    nsi-regex@0.2.1 node_modules/ansi-regex
    ansi-styles@1.1.0 node_modules/ansi-styles
    type-of@2.0.1 node_modules/type-of
    amdefine@1.0.0 node_modules/amdefine
    asap@2.0.3 node_modules/asap
    ... list continues

When I check mup logs -n 300 I have this recurring error

[Server IP]  → /opt/my-app-name/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/compiled/0.10.40/linux/x64/bcrypt_lib.node
    at bindings (/opt/my-app-name/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:84:13)
    at Object.<anonymous> (/opt/my-app-name/app/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.Npm.require (/opt/my-app-nameapp/programs/server/boot.js:162:18)
    at Package (packages/npm-bcrypt/packages/npm-bcrypt.js:9:1)
error: Forever detected script exited with code: 8
error: Script restart attempt #36

Here is my mup.json env part

  "env": {
    "port": "3000",
    "ROOT_URL": "https://my-app"

Also there is nothing that keeps busy port 80 etc. (as we don’t use ngninx etc)

Can you help me to find the reason why this problem magically started.

Any ideas anyone ? :confused:

You’ve already created an issue here?

meteor npm remove bcrypt

to start with.
Also, you are deploying to port 3000? I assume that https://my-app is pseudo?
In any case, if you are deploying to port 3000, make sure you have no local development version running there.