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.

Problem while deploying using mup

See original GitHub issue

This is my mup.js file:

module.exports = {
  servers: {
    one: {
      host: '52.41.186.122',
      username: 'ubuntu',
      pem: 'aws-key/xanthelabs.pem'
      // password:
      // or leave blank for authenticate from ssh-agent
    }
  },

  meteor: {
    name: 'deep-app',
    path: '/home/cortana/Desktop/deep-app',
    servers: {
      one: {}
    },
    buildOptions: {
      serverOnly: true,
    },
    env: {
      PORT: 8888,
      ROOT_URL: 'http://52.41.186.122',
      MONGO_URL: 'mongodb://localhost/meteor'
    },

    //dockerImage: 'kadirahq/meteord'
    deployCheckWaitTime: 60
  },

  mongo: {
    oplog: true,
    port: 27017,
    servers: {
      one: {},
    },
  },
};

output of mup setup:


Started TaskList: Setup Docker
[52.41.186.122] - setup docker
[52.41.186.122] - setup docker: SUCCESS

Started TaskList: Setup Meteor
[52.41.186.122] - Setup Environment

Started TaskList: Setup Mongo
[52.41.186.122] - setup environment
[52.41.186.122] - setup environment: SUCCESS
[52.41.186.122] - copying mongodb.conf
[52.41.186.122] - Setup Environment: SUCCESS
[52.41.186.122] - copying mongodb.conf: SUCCESS

Started TaskList: Start Mongo
[52.41.186.122] - start mongo
[52.41.186.122] - start mongo: SUCCESS

Output of mup deploy :

Building App Bundle Locally

Started TaskList: Pushing Meteor
[52.41.186.122] - Pushing Meteor App Bundle to The Server
[52.41.186.122] - Pushing Meteor App Bundle to The Server: SUCCESS
[52.41.186.122] - Pushing the Startup Script
[52.41.186.122] - Pushing the Startup Script: SUCCESS

Started TaskList: Configuring  Meteor Environment Variables
[52.41.186.122] - Sending Environment Variables
[52.41.186.122] - Sending Environment Variables: SUCCESS

Started TaskList: Start Meteor
[52.41.186.122] - Start Meteor
[52.41.186.122] - Start Meteor: SUCCESS
[52.41.186.122] - Verifying Deployment
[52.41.186.122] x Verifying Deployment: FAILED

    -----------------------------------STDERR-----------------------------------
    package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
    => Starting meteor app on port:80

    assert.js:93
      throw new assert.AssertionError({
            ^
    AssertionError: "undefined" === "function"
        at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
        at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
        at Module._compile (module.js:456:26)

    => Redeploying previous version of the app

    -----------------------------------STDOUT-----------------------------------

    To see more logs type 'mup logs --tail=50'

    ----------------------------------------------------------------------------
(node:11028) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: 
-----------------------------------STDERR-----------------------------------
package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
=> Starting meteor app on port:80

assert.js:93
  throw new assert.AssertionError({
        ^
AssertionError: "undefined" === "function"
    at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
    at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
    at Module._compile (module.js:456:26)

=> Redeploying previous version of the app

-----------------------------------STDOUT-----------------------------------

To see more logs type 'mup logs --tail=50'

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

How do I remove this error? Also, what is causing this error?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
kgupta15commented, Oct 19, 2016

I ported to a different docker image that works for me. 'abernix/meteord:base' is the one I am using now.

0reactions
cafe4itcommented, Dec 21, 2016

@daemonslayer Works for me! thanks you. (Meteor 1.4.2.3)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mup Deploy Failure after a successful Mup Setup - help
Hello everyone,. I have a problem with mup deploy (which was working fine a couple of weeks ago). I checked the similar posts...
Read more >
mup deploy works but image won't start - Stack Overflow
It isn't referenced in the package.json for node-uber. I've tried editting the package.json for sshpk on the Windows side, but that doesn't make ......
Read more >
Deploy your Meteor Web and Android App using MUP - Medium
MUP is basically a tool that helps in deploying meteor build servers. ... Here at this step, if you find an issue with...
Read more >
Documentation - Meteor Up
mup reconfig - reconfigures app with new environment variables, Meteor settings, and it updates the start script. This is also the last step...
Read more >
I can't deploy with MUP because an error with docker/mongodb
I have checked and I can connect through ssh to the server. I am using one of the One-click droplets from Digital Ocean...
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