arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

mup deploy error #528

Open boomcan90 opened 9 years ago

boomcan90 commented 9 years ago

Error i am having is in deploying the mup. my config is as follows:

{
  // Server authentication info
  "servers": [
    {
      "host": "128.199.76.19",
      "username": "root",
      "password": "Qwerty67"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],

  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": false,

  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  "setupNode": true,

  // WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.29",

  // Install PhantomJS in the server
  "setupPhantom": true,

  // Show a progress bar during the upload of the bundle to the server. 
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,

  // Application name (No spaces)
  "appName": "SUTDreddit",

  // Location of app (local directory)
  "app": ".",

  // Configure environment
  "env": {
    "ROOT_URL": "http://arjunbrar.me",
    "MONGO_URL": "mongodb://arjun:Qwerty67@dogen.mongohq.com:10037/SUTDreddit",
    "PORT": "3000", // The port you want to bind to on your server.
    "UPSTART_UID": "admin" // The user you want to run meteor as.
    // "ROOT_URL": "http://mycustomappname.com"
  },

  // Meteor Up checks if the app comes online just after the deployment
  // before mup checks that, it will wait for no. of seconds configured below
  "deployCheckWaitTime": 15
}

and the error i get is as follows:


x Invoking deployment process: FAILED

    -----------------------------------STDERR-----------------------------------
    _dir=/root/.node-gyp/0.10.29',
    gyp info spawn args   '-Dmodule_root_dir=/opt/SUTDreddit/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt',
    gyp info spawn args   '--depth=.',
    gyp info spawn args   '--no-parallel',
    gyp info spawn args   '--generator-output',
    gyp info spawn args   'build',
    gyp info spawn args   '-Goutput_dir=.' ]
    gyp info spawn make
    gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    gyp info ok 
    npm WARN 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
    stop: Unknown instance: 
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 3000: Connection refused
    App did not pick up! Please check app logs.
    -----------------------------------STDOUT-----------------------------------
    t_node.o
      SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
      COPY Release/bcrypt_lib.node
    make: Leaving directory `/opt/SUTDreddit/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'

    > fibers@1.0.5 install /opt/SUTDreddit/tmp/bundle/programs/server/node_modules/fibers
    > node ./build.js

    `linux-x64-v8-3.14` exists; testing
    Binary is fine; exiting
    underscore@1.5.2 node_modules/underscore

    semver@4.1.0 node_modules/semver

    eachline@2.3.3 node_modules/eachline
    └── type-of@2.0.1

    chalk@0.5.1 node_modules/chalk
    ├── ansi-styles@1.1.0
    ├── escape-string-regexp@1.0.3
    ├── supports-color@0.2.0
    ├── has-ansi@0.1.0 (ansi-regex@0.2.1)
    └── strip-ansi@0.3.0 (ansi-regex@0.2.1)

    source-map-support@0.2.8 node_modules/source-map-support
    └── source-map@0.1.32 (amdefine@0.1.0)

    fibers@1.0.5 node_modules/fibers
    Waiting for MongoDB to initialize. (5 minutes)
    connected
    SUTDreddit start/running, process 11103
    Waiting for 15 seconds while app is booting up
    Checking is app booted or not?

Any help would be appreciated.

JuusoV commented 9 years ago

I am getting pretty much the same error on our production when I am trying to redeploy.

Could you post your logs by typing mup logs -n 300 have you tried to deploy with a different nodeJS than 0.10.29?

Let me know if you find a solution!

yogiben commented 9 years ago

Getting the same.

Logs read:

Session terminated, terminating shell... ...terminated.
Meteor requires Node v0.10.36 or later.
error: Forever detected script exited with code: 1
Angarsk8 commented 8 years ago

Did you find a solution to this issue?? I'm having the same error and haven't found a solution to it yet! :scream:

MasterJames commented 8 years ago

This looks like it could be that you need to use node version 0.10.40 with Meteor 1.2.

Angarsk8 commented 8 years ago

Ok, I'm gonna try it

Angarsk8 commented 8 years ago

Thanks! It worked!! :smile: :v:

boomcan90 commented 8 years ago

Ah. Nice to hear that! I gave up after about a week of trying to get this to work haha :smile:

Angarsk8 commented 8 years ago

Dude that was literally driving me crazy! Thankfully found the way, I was just about to give up...

MasterJames commented 8 years ago

Please don't give up. https://youtu.be/VjEq-r2agqc Congratulations on your success and perseverance.

"Patience is the most valuable computer skill I have." -MJ