meteor-up: Mup fails at prepare bundle

Please I have wasted enough time on this. I have reported this issue with no resolution on SO. I followed as described in the docs. At the end what I get is the error when Prepare Bundle: FAILED. What’s the problem? This is more than 5 days that I have been trying this deployment without success. Thr server config is: 2Gb RAM, 40Gb ROM

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\Kehinde>cd C:\Programs\contract\schoolapps

C:\Programs\contract\schoolapps>mkdir .deploy

C:\Programs\contract\schoolapps>cd .deploy

C:\Programs\contract\schoolapps\.deploy>mup.cmd init
Created settings.json
Created mup.js

Next Steps:

  Open mup.js and edit the config to meet your needs.
  Required changes have been marked with a TODO comment.

  Available options can be found in the docs at
    https://github.com/zodern/meteor-up

  Then, run the command:
    mup setup

C:\Programs\contract\schoolapps\.deploy>mup.cmd setup

Started TaskList: Setup Docker
[xxx.xxx.xxx.xxx] - Setup Docker
[xxx.xxx.xxx.xxx] - Setup Docker: SUCCESS

Started TaskList: Setup Meteor
[xxx.xxx.xxx.xxx] - Setup Environment
[xxx.xxx.xxx.xxx] - Setup Environment: SUCCESS

Started TaskList: Setup Mongo
[xxx.xxx.xxx.xxx] - Setup Environment
[xxx.xxx.xxx.xxx] - Setup Environment: SUCCESS
[xxx.xxx.xxx.xxx] - Copying mongodb.conf
[xxx.xxx.xxx.xxx] - Copying mongodb.conf: SUCCESS

Started TaskList: Start Mongo
[xxx.xxx.xxx.xxx] - Start Mongo
[xxx.xxx.xxx.xxx] - Start Mongo: SUCCESS

Next, you should run:
    mup deploy

C:\Programs\contract\schoolapps\.deploy>mup.cmd deploy --cached-build
Not building app. Using build from previous deploy at
C:\Users\Kehinde\AppData\Local\Temp\mup-meteor-58e876b4-e682-4ecf-9d41-168fa46a5b19

Started TaskList: Pushing Meteor App
[xxx.xxx.xxx.xxx] - Pushing Meteor App Bundle to The Server
[xxx.xxx.xxx.xxx] - Pushing Meteor App Bundle to The Server: SUCCESS
[xxx.xxx.xxx.xxx] - Prepare Bundle
[xxx.xxx.xxx.xxx] x Prepare Bundle: FAILED

        -----------------------------------STDERR-----------------------------------
        Error response from daemon: No such container: schoolapps
        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: schoolapps
        Error: failed to start containers: schoolapps
        -----------------------------------STDOUT-----------------------------------
        n/node" "/usr/bin/npm" "install" "--unsafe-perm"
        npm ERR! node v4.8.3
        npm ERR! npm  v3.10.10
        npm ERR! code ELIFECYCLE
        npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
        npm ERR! Exit status 254
        npm ERR!
        npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script 'node npm-rebuild.js'.
        npm ERR! Make sure you have the latest version of node.js and npm installed.
        npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
        npm ERR! not with npm itself.
        npm ERR! Tell the author that this fails on your system:
        npm ERR!     node npm-rebuild.js
        npm ERR! You can get information on how to open an issue for this project with:
        npm ERR!     npm bugs meteor-dev-bundle
        npm ERR! Or if that isn't available, you can get their info via:
        npm ERR!     npm owner ls meteor-dev-bundle
        npm ERR! There is likely additional logging output above.

        npm ERR! Please include the following file with any support request:
        npm ERR!     /built_app/programs/server/npm-debug.log

        ----------------------------------------------------------------------------

C:\Programs\contract\schoolapps\.deploy>

This is mup.js

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: 'xxx.xxx.xxx.xxx',
      username: 'root',
      // pem: './path/to/pem'
       password: 'xxxxxxxxxxxxxxxxxxxxxx'
      // or neither for authenticate from ssh-agent
    }
  },

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

    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://schoolapps.com',
      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 'kadirahq/meteord' if your app is using Meteor 1.3 or older
      image: 'abernix/meteord:base',

      args: [
        //'--link=myCustomMongoDB:myCustomMongoDB', // linking example
        '--memory-reservation 1024M' // memory reservation example
      ],
    },

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

  mongo: {
    port: 27017,
    version: '3.4.1',
    servers: {
      one: {}
    }
  }
};

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 45 (11 by maintainers)

Most upvoted comments

I have been sleepless for about two days trying to deploy my Meteor 1.6.1 app. With many “No such container: <myapp>” log errors I eventually got it fixed by removing the rajit:bootstrap3-datepicker package I had in my project. Seems like it didn’t compile correctly because of Babel related issues. I hope this helps anyone who is still looking for answers. Please check package compatibility!

I fixed the problem. It turns out that the abernix/meteord and mrauhu/meteord both don’t have pkg-config installed, which is required by canvas. Also they miss libcairo2-dev etc required by canvas. I created a customized meteord based on abernix/meteord by installing all the missing parts and after that MUP works.

I have METEOR@1.6.0.1 yet the “/node_modules/sshpk/bin\sshpk-conv” part makes Prepare Bundle: FAILED why ? I have even rm -f all containers server side. I use > dockerImage: ‘abernix/meteord:node-8.9.3-binbuild’, My bad : just had to delete node_modules and npm i.

@zodern update docker solved the problem! thank you very much!!

Also running into these issues on mac. Think the last update of mup is causing them. Worked fine previously