I am following this tutorial on how to deploy to Digital Ocean using mup
but hitting an error on mup setup
. My mup.json file is as follows.
{
// Server authentication info
"servers": [
{
"host": "***.***.***.***", //IP address redacted
"username": "root",
//“password": "password"
// or pem file (ssh based authentication)
"pem": "~/.ssh/id_rsa"
}
],
// Install MongoDB in the server, does not destroy local MongoDB on future setup
"setupMongo": true,
// 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.36",
// 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": “workshop”,
// Location of app (local directory)
"app": “.”,
// Configure environment
"env": {
"ROOT_URL": "http://***.***.***.***" //IP address redacted
},
// 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
}
When I run mup setup
, I see this error:
/usr/local/lib/node_modules/mup/node_modules/cjson/index.js:226
throw err;
^
SyntaxError: No value found for key appName at 30:14
"appName": “workshop”,
^
File: "/Users/myname/WebstormProjects/Workshop/mup.json"
at SyntaxError (native)
at Object.parseJSON (/usr/local/lib/node_modules/mup/node_modules/cjson/node_modules/json-parse-helpfulerror/node_modules/jju/lib/parse.js:745:13)
at Object.parse (/usr/local/lib/node_modules/mup/node_modules/cjson/node_modules/json-parse-helpfulerror/index.js:10:13)
at Object.exports.parse (/usr/local/lib/node_modules/mup/node_modules/cjson/index.js:90:28)
at Object.load (/usr/local/lib/node_modules/mup/node_modules/cjson/index.js:223:24)
at Object.exports.read (/usr/local/lib/node_modules/mup/lib/config.js:12:25)
at Object.<anonymous> (/usr/local/lib/node_modules/mup/bin/mup:20:23)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
Is this tutorial out of date or might I be making another error?
Should be invalid character? “
?
1 Like
Well that started to fix it, which is strange since I hadn’t edited the quote marks, just the text. But now when I run mup setup
, I’m getting:
Started TaskList: Setup (linux)
[104.236.197.201] - Installing Node.js
[104.236.197.201] x Installing Node.js: FAILED
-----------------------------------STDERR-----------------------------------
. .......... .......... .......... .......... 91% 66.5M 0s
5050K .......... .......... .......... .......... .......... 91% 63.5M 0s
5100K .......... .......... .......... .......... .......... 92% 97.1M 0s
5150K .......... .......... .......... .......... .......... 93% 82.4M 0s
5200K .......... .......... .......... .......... .......... 94% 58.5M 0s
5250K .......... .......... .......... .......... .......... 95% 67.8M 0s
5300K .......... .......... .......... .......... .......... 96% 85.0M 0s
5350K .......... .......... .......... .......... .......... 97% 72.7M 0s
5400K .......... .......... .......... .......... .......... 98% 97.7M 0s
5450K .......... .......... .......... .......... .......... 99% 48.7M 0s
5500K .......... .......... .......... .......... ... 100% 106M=0.1s
2016-05-11 01:39:45 (46.3 MB/s) - ‘node-v0.10.36-linux-x64.tar.gz’ saved [5676610/5676610]
mv: cannot move ‘node-v0.10.36-linux-x64’ to ‘/opt/nodejs’: No such file or directory
-----------------------------------STDOUT-----------------------------------
js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/link.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/install.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/uninstall.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/cache.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/star.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/search.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/docs.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/config.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/owner.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/init.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/faq.js
node-v0.10.36-linux-x64/lib/node_modules/npm/lib/dedupe.js
node-v0.10.36-linux-x64/lib/node_modules/npm/LICENSE
node-v0.10.36-linux-x64/lib/node_modules/npm/AUTHORS
node-v0.10.36-linux-x64/lib/node_modules/npm/.npmrc
node-v0.10.36-linux-x64/lib/node_modules/npm/.npmignore
node-v0.10.36-linux-x64/lib/node_modules/npm/cli.js
node-v0.10.36-linux-x64/LICENSE
I’m out of my league with this one. I’m on a Mac for what it’s worth.
What is the version of mup you are using?
btw, I am on mup@0.11.3 and my config node version is 0.10.40, maybe you can try that one?
I saw my error was already reported as an issue for meteor-up on github. I think I’m resolving using mupx
instead, looks like everything installed fine using that.
All good - took two tries but now deployed. Just so I know, how would I change the version of mup and node if I needed to?
In the config, you have posted. For mup, just npm install should be pulling the latest.