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.

Error while deploying multiple meteor apps

See original GitHub issue

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?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zoderncommented, Mar 13, 2017

@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

0reactions
iAssureITcommented, Mar 15, 2017

@zodern, GOOD NEWS! All the above errors have gone, as soon as I increased the RAM size from 1GB to 4GB. Now MUP DEPLOY is working very fine. Thank you… Thank you… Thank you very much for all your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

MUP deployment to multiple servers failed - Meteor forums
Hi, After successfully using the latest version of mup to deploy my meteor app to a single server, I try to deploy my...
Read more >
MONGO_URL for running multiple Meteor apps on one server
I have one Meteor application running on my Ubuntu server (Digital Ocean). I use Meteor Up (MUP) to deploy and keep the app...
Read more >
How to Deploy Your meteor.js App on Digital Ocean
For this tutorial, we're going to cover how to get your meteor.js app up and running on a Digital Ocean droplet running nginx....
Read more >
meteor - Project Ricochet
Multiple Meteor apps running on the same domain & how to override packages ... Run multiple Meteor apps on the same domain by...
Read more >
javascript - Deploying N amount of meteor apps on a single server ...
just use node-http-proxy and either use the command line or restart the proxy process on changes.
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