arunoda / meteor-up-legacy

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

Mup Setup rmx2 and sudo x2 #1034

Open theone581 opened 8 years ago

theone581 commented 8 years ago

Hi, I seem to be having the following issue everytime I try and setup my mup:

Meteor Up: Production Quality Meteor Deployments

“ Checkout Kadira! It's the best way to monitor performance of your app. Visit: https://kadira.io/mup

Started TaskList: Setup (linux) [198.1.83.82] - Installing Node.js [198.1.83.82] x Installing Node.js: FAILED

-----------------------------------STDERR-----------------------------------
rm: cannot remove `/var/lib/dpkg/lock': No such file or directory
rm: cannot remove `/var/cache/apt/archives/lock': No such file or directory
sudo: dpkg: command not found
sudo: apt-get: command not found
-----------------------------------STDOUT-----------------------------------
----------------------------------------------------------------------------

I'm new to mup and meteor and simply want to deploy a react project I made... I don't know why but every method of deploying that I've tried has failed.. I just want to deploy it into my Bluehost server.

bellow is my mup.json:

{ // Server authentication info "servers": [ { "host": "****",(hiding these) "username": "***",(hiding these) "password": "***!"(hiding these) } ],

// Install MongoDB on the server. Does not destroy the local MongoDB on future setups "setupMongo": true,

"setupNode": true,

"nodeVersion": "0.10.36",

"setupPhantom": true,

"enableUploadProgressBar": true,

// Application name (no spaces). "appName": "react",

// Location of app (local directory). This can reference '~' as the users home directory. // i.e., "app": "~/Meteor/my-app", // This is the same as the line below. "app": "/Users/*****/******",(hiding these)

// Configure environment // ROOT_URL must be set to your correct domain (https or http) "env": { "ROOT_URL": "http://beta.************.com",(hiding these) "MONGO_URL": "mongodb://arunoda:fd8dsjsfh7@hanso.mongohq.com:10023/MyApp" },

// Meteor Up checks if the app comes online just after the deployment. // Before mup checks that, it will wait for the number of seconds configured below. "deployCheckWaitTime": 35,

// show a progress bar while uploading. // Make it false when you deploy using a CI box. "enableUploadProgressBar": true }

Please let me know how to fix this, I've googled everything I could on the topic :S

MasterJames commented 8 years ago

First try setting the node version in settings set to 0.10.40 not 36 Note kadirahq/meteor-up is the new version.

theone581 commented 8 years ago

another error using https://github.com/arunoda/meteor-up/tree/mupx

***\ = hidden

**_--Pro-2:meteor-up **$ sudo npm link npm WARN lifecycle mup@1.0.0~prepublish: cannot run in wd %s %s (wd=%s) mup@1.0.0 nofat make /Users/***/_/meteor-up npm ERR! Darwin 15.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "link" npm ERR! node v4.4.3 npm ERR! npm v3.8.6 npm ERR! path /usr/local/bin/mup npm ERR! code EEXIST

npm ERR! Refusing to delete /usr/local/bin/mup: ../lib/nodemodules/mup/bin/mup symlink target is not controlled by npm /Users/****/_/meteor-up npm ERR! File exists: /usr/local/bin/mup npm ERR! Move it away, and try again.

npm ERR! Please include the following file with any support request: npm ERR! /Users/*_/_**/meteor-up/npm-debug.log

see attached debug.log

lol.txt

aa21 commented 8 years ago

Hi @theone581, did you figure out how to solve this? I'm having the same issue:


Started TaskList: Setup (linux)
[100.166.230.84] - Installing Node.js
[100.166.230.84] x Installing Node.js: FAILED

    -----------------------------------STDERR-----------------------------------
    bash: line 4: sudo: command not found
    bash: line 5: sudo: command not found
    bash: line 6: sudo: command not found
    bash: line 10: sudo: command not found
    -----------------------------------STDOUT-----------------------------------
    ----------------------------------------------------------------------------
MasterJames commented 8 years ago

If you SSH into your target machine and type which sudo Does it find one? Like /usr/bin/sudo Only Ubuntu 14+ is supported.

aa21 commented 8 years ago

@MasterJames Thanks. My machine is a new Debian from DigitalOcean. You were right, Sudo wasn't installed. After installing sudo on target machine, "mup setup" is working on my local machine.

If I figure out how to set up meteor on Debian properly I'll post back here.