Skip to content

Instantly share code, notes, and snippets.

@dscape
Created November 14, 2012 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dscape/5555a3642b2efb9400b9 to your computer and use it in GitHub Desktop.
Save dscape/5555a3642b2efb9400b9 to your computer and use it in GitHub Desktop.
$ jitsu deploy
info: Welcome to Nodejitsu dscape
info: jitsu v0.11.3, node v0.8.12
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
warn:
warn: The package.json file is missing required fields:
warn:
warn: subdomain
warn:
warn: Prompting user for required fields.
warn: Press ^C at any time to quit.
warn:
prompt: subdomain: (dscape.statsd) statsd.******
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd/available',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{"name":"statsd","description":"A simple, lightweight network daemon to collect metrics over UDP","author":"Etsy","scripts":{"test":"./run_tests.sh","start":"node stats.js config.js","install-windows-service":"node_modules\\\\.bin\\\\winser -i","uninstall-windows-service":"node_modules\\\\.bin\\\\winser -r"},"repository":{"type":"git","url":"https://github.com/etsy/statsd.git"},"version":"0.5.0","dependencies":{},"devDependencies":{"nodeunit":"0.6.x","async":"0.1.x","underscore":"1.2.x","temp":"0.4.x"},"optionalDependencies":{"node-syslog":"1.1.3","winser":"=0.0.11"},"engines":{"node":">=0.4"},"bin":{"statsd":"./bin/statsd"},"subdomain":"statsd.nodejitsu"}' }
debug: { statusCode: 200,
debug: result: { available: true } }
warn: About to write /Users/dscape/Desktop/dev/nodejitsu/statsd/package.json
data:
data: {
data: devDependencies: {
data: underscore: '1.2.x',
data: async: '0.1.x',
data: temp: '0.4.x',
data: nodeunit: '0.6.x'
data: },
data: engines: { node: '>=0.4' },
data: name: 'statsd',
data: subdomain: 'statsd.nodejitsu',
data: scripts: {
data: start: 'node stats.js config.js',
data: test: './run_tests.sh',
data: install-windows-service: 'node_modules\\.bin\\winser -i',
data: uninstall-windows-service: 'node_modules\\.bin\\winser -r'
data: },
data: repository: { url: 'https://github.com/etsy/statsd.git', type: 'git' },
data: bin: { statsd: './bin/statsd' },
data: description: 'A simple, lightweight network daemon to collect metrics over UDP',
data: version: '0.5.0',
data: optionalDependencies: { winser: '=0.0.11', node-syslog: '1.1.3' },
data: dependencies: {},
data: author: 'Etsy'
data: }
data:
prompt: Is this ok?: (yes) yes
info: Analyzing application dependencies in node stats.js config.js
debug: { method: 'GET',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000 }
debug: { statusCode: 404,
debug: result:
debug: { error: 'not_found',
debug: reason: 'missing',
debug: status: 404 } }
info: Checking app availability statsd
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd/available',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{"name":"statsd","description":"A simple, lightweight network daemon to collect metrics over UDP","author":"Etsy","scripts":{"test":"./run_tests.sh","start":"node stats.js config.js","install-windows-service":"node_modules\\\\.bin\\\\winser -i","uninstall-windows-service":"node_modules\\\\.bin\\\\winser -r"},"repository":{"type":"git","url":"https://github.com/etsy/statsd.git"},"version":"0.5.0","dependencies":{},"devDependencies":{"nodeunit":"0.6.x","async":"0.1.x","underscore":"1.2.x","temp":"0.4.x"},"optionalDependencies":{"node-syslog":"1.1.3","winser":"=0.0.11"},"engines":{"node":">=0.4"},"bin":{"statsd":"./bin/statsd"},"subdomain":"statsd.nodejitsu","analyzed":true,"state":"stopped"}' }
debug: { statusCode: 200,
debug: result: { available: true } }
info: Creating app statsd
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{"name":"statsd","description":"A simple, lightweight network daemon to collect metrics over UDP","author":"Etsy","scripts":{"test":"./run_tests.sh","start":"node stats.js config.js","install-windows-service":"node_modules\\\\.bin\\\\winser -i","uninstall-windows-service":"node_modules\\\\.bin\\\\winser -r"},"repository":{"type":"git","url":"https://github.com/etsy/statsd.git"},"version":"0.5.0","dependencies":{},"devDependencies":{"nodeunit":"0.6.x","async":"0.1.x","underscore":"1.2.x","temp":"0.4.x"},"optionalDependencies":{"node-syslog":"1.1.3","winser":"=0.0.11"},"engines":{"node":">=0.4"},"bin":{"statsd":"./bin/statsd"},"subdomain":"statsd.nodejitsu","analyzed":true,"state":"stopped"}' }
debug: { statusCode: 201, result: undefined }
info: Creating snapshot 0.5.0
info Uploading: [=============================] 100%
info: Updating app statsd
debug: { method: 'PUT',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{"name":"statsd","description":"A simple, lightweight network daemon to collect metrics over UDP","author":"Etsy","scripts":{"test":"./run_tests.sh","start":"node stats.js config.js","install-windows-service":"node_modules\\\\.bin\\\\winser -i","uninstall-windows-service":"node_modules\\\\.bin\\\\winser -r"},"repository":{"type":"git","url":"https://github.com/etsy/statsd.git"},"version":"0.5.0","dependencies":{},"devDependencies":{"nodeunit":"0.6.x","async":"0.1.x","underscore":"1.2.x","temp":"0.4.x"},"optionalDependencies":{"node-syslog":"1.1.3","winser":"=0.0.11"},"engines":{"node":">=0.4"},"bin":{"statsd":"./bin/statsd"},"subdomain":"statsd.nodejitsu","analyzed":true,"state":"stopped"}' }
debug: { statusCode: 204, result: undefined }
info: Activating snapshot 0.5.0 for statsd
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd/snapshots/0.5.0/activate',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{}' }
debug: { statusCode: 200,
debug: result:
debug: { active:
debug: { id: '0.5.0',
debug: md5: '03358fee5f6590d08820f39587dfcb82',
debug: filename: 'dscape-statsd-0.5.0.tgz',
debug: ctime: 1352910542363,
debug: active: false,
debug: running: false } } }
info: Starting app statsd
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/dscape/statsd/start',
debug: headers:
debug: { Authorization: 'Basic bG9vayBhd2F5IHNpciwgaW0gbmFrZWQK',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{}' }
debug: { statusCode: 500,
debug: result:
debug: { message: 'haibu Error (500): Internal Server Error',
debug: stack: 'Error: haibu Error (500): Internal Server Error\n at Request.Client._request [as _callback] (/root/nodejitsu/node_modules/haibu/node_modules/haibu-api/lib/client/client.js:95:15)\n at Request.init.self.callback (/root/nodejitsu/node_modules/haibu/node_modules/request/main.js:119:22)\n at Request.EventEmitter.emit (events.js:99:17)\n at Request.<anonymous> (/root/nodejitsu/node_modules/haibu/node_modules/request/main.js:521:16)\n at Request.EventEmitter.emit (events.js:96:17)\n at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/root/nodejitsu/node_modules/haibu/node_modules/request/main.js:483:14)\n at IncomingMessage.EventEmitter.emit (events.js:126:20)\n at IncomingMessage._emitEnd (http.js:366:10)\n at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)\n at Socket.socketOnData (http.js:1367:20)',
debug: result:
debug: { error:
debug: { message: 'package.json error: can\'t find starting script: node stats.js config.js',
debug: stack: 'Error: package.json error: can\'t find starting script: node stats.js config.js\n at Spawner.spawn (/root/haibu-orchestra/node_modules/haibu/lib/haibu/core/spawner.js:232:17)\n at Object.oncomplete (fs.js:297:15)',
debug: blame:
debug: { type: 'user',
debug: message: 'Package.json start script declared but not found' },
debug: event: 'error:service' } },
debug: status: '500' } }
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: package.json error: can't find starting script: node stats.js config.js
error: Package.json start script declared but not found
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
error: Error: package.json error: can't find starting script: node stats.js config.js
error: at Spawner.spawn (/root/haibu-orchestra/node_modules/haibu/lib/haibu/core/spawner.js:232:17)
error: at Object.oncomplete (fs.js:297:15)
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
help: email: <support@nodejitsu.com>
help:
help: Copy and paste this output to a gist (http://gist.github.com/)
info: Nodejitsu not ok
dscape in ~/Desktop/dev/nodejitsu/statsd on master* node v0.8.12
$ ll
total 104
drwxr-xr-x 20 dscape staff 680 Nov 8 22:34 .
drwxr-xr-x 31 dscape staff 1054 Nov 9 02:29 ..
drwxr-xr-x 14 dscape staff 476 Nov 14 16:29 .git
-rw-r--r--@ 1 dscape staff 13 Nov 8 22:29 .gitignore
-rw-r--r--@ 1 dscape staff 137 Nov 8 22:29 .travis.yml
-rw-r--r--@ 1 dscape staff 1309 Nov 8 22:29 Changelog.md
-rw-r--r-- 1 dscape staff 1067 Nov 8 22:29 LICENSE
-rw-r--r-- 1 dscape staff 11956 Nov 8 22:29 README.md
drwxr-xr-x 5 dscape staff 170 Nov 8 22:29 backends
drwxr-xr-x 3 dscape staff 102 Nov 8 22:29 bin
-rw-r--r--@ 1 dscape staff 2854 Nov 9 15:39 config.js
drwxr-xr-x 15 dscape staff 510 Nov 8 22:29 debian
drwxr-xr-x 14 dscape staff 476 Nov 8 22:29 examples
drwxr-xr-x 5 dscape staff 170 Nov 8 22:29 lib
drwxr-xr-x 9 dscape staff 306 Nov 8 22:34 node_modules
-rw-r--r--@ 1 dscape staff 807 Nov 14 16:28 package.json
-rwxr-xr-x 1 dscape staff 342 Nov 8 22:29 run_tests.sh
-rw-r--r--@ 1 dscape staff 9863 Nov 9 15:31 stats.js
drwxr-xr-x 4 dscape staff 136 Nov 8 22:29 test
drwxr-xr-x 3 dscape staff 102 Nov 8 22:29 utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment