meteor-up: Error while deploying multiple meteor apps

Hi, I am trying to deploy multiple meteor apps on AWS Ubuntu server using Nginx. I am getting error while doing mup deploy for app#2. node v7.7.2 npm 4.1.2

App#1 My first app1 is working fine on site1. App#1, which is working fine, is using meteor PORT: 3000 and mongo PORT: 27017.

App#2 App#2, which is giving above error, is using meteor PORT: 3003 and mongo PORT: 27021. App#2 is giving following error .

mup deploy error

 Build Error. Check the logs printed above.
(node:12934) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: build-error
(node:12934) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

mup.js file for app#2

module.exports = {
  servers: {
    one: {
      host: '35.164.201.159',
      username: 'ubuntu',
      pem: '~/.ssh/iAssureIT-Ubuntu.pem',
      // password:
      // or leave blank for authenticate from ssh-agent
    }
  },

  meteor: {
    name: 'musissive',
    path: '/var/www/meteor/musissive',
    servers: {
      one: {},
    },
    buildOptions: {
      serverOnly: true,
    },
    env: {
      ROOT_URL: 'http://musissive.in',
      MONGO_URL: 'mongodb://localhost:27021/meteor',
      PORT: 3003
    },


    docker: {
      // change to 'kadirahq/meteord' if your app is not using Meteor 1.4
      image: 'abernix/meteord:base',
    },
    deployCheckWaitTime: 60,

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

  mongo: {
    oplog: true,
    port: 27021,
    version: '3.4.1',
    servers: {
      one: {},
    },
  },
};
~

I was consistently getting the above error, even when mongo port was 27017 for both apps… So tried different ports for Mongodb in both apps. What must be causing the above error during mup deploy?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

@iAssureIT I just released 1.2.4. Update mup with npm install -g mup, and try deploying with mup deploy --verbose. With the verbose flag it will show the output from meteor build