MUP Deployment. Help needed [solved]


#1

Hi guys,

I need your help getting my MUP deployment working. :slight_smile:

I got a fresh digitalocean droplet and did a fresh mup setup and mup deploy --verbose, following the guides on http://meteor-up.com/getting-started.html#install.

The App is running Meteor 1.6.

THE PROBLEM: Unfortunatly the deployment NOT work: It seems like the “isarray”-npm-package does NOT install.

I attached the mup.json and error-log.

Do you have any tips on what else I can try?

mup.js

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: '46.101.210.212',
      username: 'root',
      pem: '/Users/thebarty/.ssh/digitalocean_rsa',
      // password: 'server-password'
      // or neither for authenticate from ssh-agent
    },
  },

  app: {
    // TODO: change app name and path
    name: 'lc',
    path: '../',

    deployCheckWaitTime: 60*10,  // 10 minutes

    servers: {
      one: {},
    },

    buildOptions: {
      serverOnly: true,
    },

    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: 'http://46.101.210.212',
      MONGO_URL: 'mongodb://localhost/meteor',
    },

    // ssl: { // (optional)
    //   // Enables let's encrypt (optional)
    //   autogenerate: {
    //     email: 'email.address@domain.com',
    //     // comma separated list of domains
    //     domains: 'website.com,www.website.com'
    //   }
    // },

    docker: {
      // change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
      image: 'abernix/meteord:node-8.4.0-base',
    },

    // Show progress bar while uploading bundle to server
    // You might need to disable it on CI servers
    enableUploadProgressBar: true,
  },

  mongo: {
    version: '3.4.1',
    servers: {
      one: {},
    },
  },

}

ERROR LOG

Started TaskList: Pushing Meteor App
[46.101.210.118] - Pushing Meteor App Bundle to the Server
[46.101.210.118] - Pushing Meteor App Bundle to the Server: SUCCESS
[46.101.210.118] - Prepare Bundle
node-8.4.0-base: Pulling from abernix/meteord
Digest: sha256:04f44cf999da383d11de77027ced8b70818222c9890a405ce10803af3ee5a642
Status: Image is up to date for abernix/meteord:node-8.4.0-base
Error response from daemon: No such container: lc
Sending build context to Docker daemon  188.2MB
Step 1/6 : FROM abernix/meteord:node-8.4.0-base
# Executing 1 build trigger
 ---> Using cache
 ---> 4391d8f8bf2e
Step 2/6 : RUN mkdir /built_app
 ---> Using cache
 ---> 7b541046f37d
Step 3/6 : COPY ./ /built_app
 ---> Using cache
 ---> 797971a67947
Step 4/6 : ENV ROOT_URL=http://46.101.210.118
 ---> Using cache
 ---> 8029e1a35dfa
Step 5/6 : ENV MONGO_URL=mongodb://mongodb:27017/lc
 ---> Using cache
 ---> f8e09093e513
Step 6/6 : RUN cd  /built_app/programs/server &&     npm install --unsafe-perm
 ---> Running in a9c901d17db6

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

`linux-x64-57` 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

[bcrypt] Success: "/built_app/programs/server/npm/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote
npm ERR! Invalid version: "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-11-25T10_58_49_799Z-debug.log
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/2017-11-25T10_58_49_882Z-debug.log
The command '/bin/sh -c cd  /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1
Error response from daemon: No such container: lc
Error: failed to start containers: lc
[46.101.210.118] x Prepare Bundle: FAILED
	
	-----------------------------------STDERR-----------------------------------
	Error response from daemon: No such container: lc
	The command '/bin/sh -c cd  /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1
	Error response from daemon: No such container: lc
	Error: failed to start containers: lc
	-----------------------------------STDOUT-----------------------------------
	k-to-build
	
	[bcrypt] Success: "/built_app/programs/server/npm/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote
	npm ERR! Invalid version: "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
	
	npm ERR! A complete log of this run can be found in:
	npm ERR!     /root/.npm/_logs/2017-11-25T10_58_49_799Z-debug.log
	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/2017-11-25T10_58_49_882Z-debug.log

P.S.
I also created this topic here https://github.com/zodern/meteor-up/issues/814


#2

For your info: I got it fixed by upgrading to the $ 10 container with 1 GB ram.