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 fails at prepare bundle

See original GitHub issue

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: {}
    }
  }
};

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
johannel00commented, Feb 2, 2018

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!

2reactions
merculeancommented, Sep 25, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fibers Installed Failed. Meteor MUP Deployment Prepare ...
I'm experimenting with the meteor platform, specifically deployment to EC2, I'm using the following a base ...
Read more >
[ FIXED ] MUP Deploy Error - Meteor forums
[ FIXED ] MUP Deploy Error ... Pushing Meteor App Bundle to the Server: SUCCESS [xxx.xxx.xx.xxx] - Prepare Bundle [xxx.xxx.xx.xxx] x Prepare Bundle:...
Read more >
Doh! Error deploying Meteor JS 'mup deploy' command
Hello, when I run the following commpand: 'mup deploy' I get the following ... Meteor JS 'mup deploy' command - Preparing Bundle: FAILED....
Read more >
Getting Started - Meteor Up
If it failed due to a network error while uploading the bundle, you can run mup deploy --cached-build . It will then skip...
Read more >
Setup HTTPS | ICS 314, Spring 2021
mup deploy Building App Bundle Locally Started TaskList: Pushing Meteor ... Prepare Bundle [meteor-application-template-react.xyz] - Prepare ...
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