question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MUp deploy fail on Ubuntu server

See original GitHub issue

App is working fine on local, but when I try to push it on server, it fails and show the below errors.

Mup version (mup --version): 1.4.5

’ Step 6/6 : RUN cd /built_app/programs/server && npm install --unsafe-perm —> Running in f924239aaa65

    > fibers@1.0.13 install /built_app/programs/server/node_modules/fibers
    > node build.js || nodejs build.js

    `linux-x64-v8-4.5` exists; testing
    Binary is fine; exiting

    > meteor-dev-bundle@0.0.0 install /built_app/programs/server
    > node npm-rebuild.js

    > bcrypt@1.0.3 install /built_app/programs/server/npm/node_modules/bcrypt
    > node-pre-gyp install --fallback-to-build

    sh: 1: node-pre-gyp: not found
    npm ERR! file sh
    npm ERR! code ELIFECYCLE
    npm ERR! errno ENOENT
    npm ERR! syscall spawn
    npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the bcrypt@1.0.3 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2018-06-26T06_25_33_869Z-debug.log
    npm WARN meteor-dev-bundle@0.0.0 No description
    npm WARN meteor-dev-bundle@0.0.0 No repository field.
    npm WARN meteor-dev-bundle@0.0.0 No license field.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2018-06-26T06_25_33_907Z-debug.log

`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
zoderncommented, Jun 26, 2018

Your app needs node-pre-gyp, which the docker image you are using doesn’t have. It is possible to customize the docker image with app.docker.buildInstructions:

module.exports {
  app: {
    docker: {
      buildInstructions: [
        'RUN npm install node-pre-gyp -g'
      ]
    }
  }
};
0reactions
thirtyfoursoftcommented, Jun 26, 2018

@zodern , Thanks a lot, your solution did the great job, it is working correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Meteor Up - Deploy Build Error
Hi, I'm trying to setup a GitLab Runner for my CICD pipeline. The runner is installed on a server running Ubuntu 20.04.
Read more >
mup deploy error - x Start Meteor: FAILED - Stack Overflow
On Windows 10 PowerShell as admin, trying to deploy a Meteor app using mup, onto a VPS Ubuntu 20.04.
Read more >
Documentation - Meteor Up
Deploying an App. mup deploy. This will bundle the Meteor project locally and deploy it to the remote server(s).
Read more >
I can't deploy with MUP because an error with docker/mongodb
I have checked and I can connect through ssh to the server. I am using one of the One-click droplets from Digital Ocean...
Read more >
mup - npm
Meteor Up is a command line tool that allows you to deploy any Meteor app to your own server. It currently supports Ubuntu....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found