Skip to content

Instantly share code, notes, and snippets.

@kevmo
Created September 12, 2013 03:02
Show Gist options
  • Save kevmo/6532626 to your computer and use it in GitHub Desktop.
Save kevmo/6532626 to your computer and use it in GitHub Desktop.
Error: Cannot find module '/opt/run/snapshot/package/make'
~/Desktop/spreadit: jitsu deploy --debug
info: Welcome to Nodejitsu kevmo
info: jitsu v0.13.2, node v0.10.15
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in make start
debug: { method: 'GET',
debug: uri: 'https://api.nodejitsu.com/apps/kevmo/mean',
debug: headers:
debug: { Authorization: '*************************************************************',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: rejectUnauthorized: false }
debug: { statusCode: 200,
debug: result:
debug: { app:
debug: { _id: 'kevmo/mean',
debug: name: 'mean',
debug: scripts:
debug: { start: 'make start',
debug: test: 'make test',
debug: postinstall: 'node_modules/bower/bin/bower install' },
debug: user: 'kevmo',
debug: subdomain: 'spreadit',
debug: snapshots:
debug: [ { id: '1.0.0-5',
debug: md5: '5138c5eeeda4908ad533527c5fe13889',
debug: filename: 'kevmo-mean-1.0.0-5.tgz',
debug: ctime: 1378954477752 } ],
debug: env:
debug: { SUBDOMAIN: 'spreadit',
debug: NODE_ENV: 'production' },
debug: domains: [],
debug: databases: {},
debug: config:
debug: { cloud:
debug: [ { datacenter: 'us-east-1',
debug: provider: 'joyent',
debug: drones: 1,
debug: ram: 256 } ] },
debug: maxDrones: 1,
debug: drones: 0,
debug: ctime: 1378954397211,
debug: mtime: 1378954480482,
debug: resource: 'App',
debug: _rev: '5-29077f3e39f6b173952a4688830bc42f',
debug: version: '1.0.0-5',
debug: dependencies:
debug: { express: 'latest',
debug: jade: 'latest',
debug: mongoose: 'latest',
debug: 'connect-mongo': 'latest',
debug: 'connect-flash': 'latest',
debug: passport: 'latest',
debug: 'passport-local': 'latest',
debug: 'passport-reddit': 'latest',
debug: 'passport-facebook': 'latest',
debug: 'passport-twitter': 'latest',
debug: 'passport-github': 'latest',
debug: 'passport-google-oauth': 'latest',
debug: underscore: 'latest',
debug: async: 'latest',
debug: 'view-helpers': 'latest',
debug: 'mean-logger': 'latest',
debug: bower: 'latest',
debug: forever: 'latest',
debug: foreman: '0.0.25' },
debug: devDependencies:
debug: { supertest: 'latest',
debug: should: 'latest',
debug: mocha: 'latest',
debug: 'web-mocha': '0.0.10',
debug: grunt: '~0.4.1',
debug: 'grunt-contrib-compass': '~0.3.0',
debug: 'grunt-contrib-watch': '~0.4.4',
debug: 'grunt-contrib-jshint': '~0.6.0',
debug: 'grunt-nodemon': '0.0.8',
debug: 'grunt-concurrent': '~0.3.0' },
debug: description: 'Mongo',
debug: engines: { node: '0.10.x', npm: '1.2.x' },
debug: id: 'mean',
debug: active:
debug: { id: '1.0.0-5',
debug: md5: '5138c5eeeda4908ad533527c5fe13889',
debug: filename: 'kevmo-mean-1.0.0-5.tgz',
debug: ctime: 1378954477752,
debug: active: false,
debug: running: false },
debug: subscriptionId: 3864848 } } }
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/kevinmoore/Desktop/spreadit/package.json
data:
data: {
data: author: 'MEAN - A Modern Stack: MongoDB, ExpressJS, AngularJS, NodeJS. (BONUS: Passport User Support).',
data: dependencies: {
data: view-helpers: 'latest',
data: forever: 'latest',
data: connect-mongo: 'latest',
data: passport-facebook: 'latest',
data: foreman: '0.0.25',
data: mean-logger: 'latest',
data: bower: 'latest',
data: express: 'latest',
data: passport-google-oauth: 'latest',
data: underscore: 'latest',
data: passport-twitter: 'latest',
data: mongoose: 'latest',
data: async: 'latest',
data: connect-flash: 'latest',
data: passport-reddit: 'latest',
data: passport-github: 'latest',
data: passport-local: 'latest',
data: passport: 'latest',
data: jade: 'latest'
data: },
data: description: 'Mongo',
data: devDependencies: {
data: should: 'latest',
data: mocha: 'latest',
data: grunt-contrib-watch: '~0.4.4',
data: grunt-contrib-compass: '~0.3.0',
data: web-mocha: '0.0.10',
data: grunt-concurrent: '~0.3.0',
data: supertest: 'latest',
data: grunt: '~0.4.1',
data: grunt-contrib-jshint: '~0.6.0',
data: grunt-nodemon: '0.0.8'
data: },
data: engines: { node: '0.10.x', npm: '1.2.x' },
data: name: 'mean',
data: private: false,
data: scripts: {
data: start: 'make start',
data: test: 'make test',
data: postinstall: 'node_modules/bower/bin/bower install'
data: },
data: subdomain: 'spreadit',
data: version: '1.0.0-6'
data: }
data:
prompt: Is this ok?: (yes)
info: Creating snapshot 1.0.0-6
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/kevmo/mean/snapshots/1.0.0-6',
debug: headers:
debug: { Authorization: '*************************************************************',
debug: 'Content-Type': 'application/octet-stream',
debug: 'Content-Length': 259952 },
debug: timeout: 240000,
debug: rejectUnauthorized: false }
info Uploading: [=============================] 100%
debug: { statusCode: 201,
debug: result:
debug: { snapshot:
debug: { id: '1.0.0-6',
debug: md5: 'f379f17433909d687ae25949bf10d118',
debug: filename: 'kevmo-mean-1.0.0-6.tgz',
debug: ctime: 1378954810295 } } }
info: Updating app mean
debug: { method: 'PUT',
debug: uri: 'https://api.nodejitsu.com/apps/kevmo/mean',
debug: headers:
debug: { Authorization: '*************************************************************',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: rejectUnauthorized: false,
debug: body: '{"name":"mean","description":"Mongo","version":"1.0.0-6","private":false,"author":"MEAN - A Modern Stack: MongoDB, ExpressJS, AngularJS, NodeJS. (BONUS: Passport User Support).","engines":{"node":"0.10.x","npm":"1.2.x"},"scripts":{"start":"make start","test":"make test","postinstall":"node_modules/bower/bin/bower install"},"dependencies":{"express":"latest","jade":"latest","mongoose":"latest","connect-mongo":"latest","connect-flash":"latest","passport":"latest","passport-local":"latest","passport-reddit":"latest","passport-facebook":"latest","passport-twitter":"latest","passport-github":"latest","passport-google-oauth":"latest","underscore":"latest","async":"latest","view-helpers":"latest","mean-logger":"latest","bower":"latest","forever":"latest","foreman":"0.0.25"},"devDependencies":{"supertest":"latest","should":"latest","mocha":"latest","web-mocha":"0.0.10","grunt":"~0.4.1","grunt-contrib-compass":"~0.3.0","grunt-contrib-watch":"~0.4.4","grunt-contrib-jshint":"~0.6.0","grunt-nodemon":"0.0.8","grunt-concurrent":"~0.3.0"},"subdomain":"spreadit"}' }
debug: { statusCode: 204, result: undefined }
info: Activating snapshot 1.0.0-6 for mean
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/kevmo/mean/snapshots/1.0.0-6/activate',
debug: headers:
debug: { Authorization: '*************************************************************',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: rejectUnauthorized: false,
debug: body: '{}' }
debug: { statusCode: 200,
debug: result:
debug: { active:
debug: { id: '1.0.0-6',
debug: md5: 'f379f17433909d687ae25949bf10d118',
debug: filename: 'kevmo-mean-1.0.0-6.tgz',
debug: ctime: 1378954810295,
debug: active: false,
debug: running: false } } }
info: Starting app mean
debug: { method: 'GET',
debug: uri: 'https://api.nodejitsu.com/endpoints',
debug: headers:
debug: { Authorization: '*************************************************************',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: rejectUnauthorized: false }
debug: { statusCode: 200,
debug: result:
debug: { endpoints:
debug: { joyent:
debug: { 'us-east-1': 'api.nodejitsu.com',
debug: 'us-sw-1': 'api.jyt.us.sw1.nodejitsu.com',
debug: 'us-west-1': 'api.jyt.us.west1.nodejitsu.com',
debug: 'eu-ams-1': 'api.jyt.eu.ams1.nodejitsu.com' } } } }
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/kevmo/mean/start',
debug: headers:
debug: { Authorization: '*************************************************************',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: rejectUnauthorized: false,
debug: body: '{}' }
debug: { statusCode: 500,
debug: result:
debug: { message: 'Errors occured while starting the application',
debug: stack: 'Error: Errors occured while starting the application\n at onStarted (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:789:16)\n at respond (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:514:14)\n at AppController._startDrone.server (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:561:16)\n at _asyncMap (/root/nodejitsu/node_modules/async/lib/async.js:226:13)\n at async.eachSeries.iterate (/root/nodejitsu/node_modules/async/lib/async.js:136:25)\n at _asyncMap (/root/nodejitsu/node_modules/async/lib/async.js:223:17)\n at async.series.results (/root/nodejitsu/node_modules/async/lib/async.js:550:34)\n at Servers.free (/root/nodejitsu/node_modules/conservatory-api/lib/client/servers.js:89:5)\n at Request.onComplete [as _callback] (/root/nodejitsu/node_modules/conservatory-api/lib/client/client.js:161:7)\n at Request.init.self.callback (/root/nodejitsu/node_modules/conservatory-api/node_modules/request/main.js:127:22)',
debug: errors:
debug: [ { message: 'Application failed to start',
debug: stack: 'Error: Application failed to start\n at ChannelStream.exports.start (/root/nodejitsu/node_modules/nodejitsu-drone/lib/nodejitsu-drone/drone.js:69:31)\n at ChannelStream.EventEmitter.emit [as _emit] (events.js:96:17)\n at ChannelStream.emit (/root/nodejitsu/node_modules/nodejitsu-drone/node_modules/ssh2/lib/Channel.js:547:12)\n at Parser.<anonymous> (/root/nodejitsu/node_modules/nodejitsu-drone/node_modules/ssh2/lib/Channel.js:134:22)\n at Parser.EventEmitter.emit (events.js:96:17)\n at Parser.parseChRequest (/root/nodejitsu/node_modules/nodejitsu-drone/node_modules/ssh2/lib/Parser.js:360:10)\n at Parser.parsePacket (/root/nodejitsu/node_modules/nodejitsu-drone/node_modules/ssh2/lib/Parser.js:597:12)\n at Parser.execute (/root/nodejitsu/node_modules/nodejitsu-drone/node_modules/ssh2/lib/Parser.js:221:14)\n at Socket.Connection.connect._sock.once.err.level (/root/nodejitsu/node_modules/nodejitsu-drone/node_modules/ssh2/lib/Connection.js:1332:18)',
debug: name: 'Error',
debug: solenoid: 'info: Running start for app.\ninfo: Cleaning /opt/run\ninfo: Fetching application snapshot...\ninfo: Application snapshot fetched.\ninfo: Unpacking snapshot...\ninfo: Reading `package.json`...\nDetermining node engine...v0.10.17\ninfo: Starting application...\ninfo: Spawn: start --min-uptime 2000 -o /opt/run/forza.log -- forza -h 72.2.115.35:8556 -h 72.2.115.133:8556 -h 72.2.115.112:8556 -h 72.2.115.136:8556 -h 72.2.115.155:8556 --start-log /opt/run/start.log --app-user kevmo --app-name mean -- /opt/engines/node/v0.10.17/bin/node make start\ninfo: `aeternum` pid: 62488\ninfo: Writing pidfile: /root/app.pid\ninfo: Tailing forza log: /opt/run/start.log\ninfo: Tail closing..\ninfo: Success:start\n',
debug: output: '\nmodule.js:340\n throw err;\n ^\nError: Cannot find module \'/opt/run/snapshot/package/make\'\n at Function.Module._resolveFilename (module.js:338:15)\n at Function.Module._load (module.js:280:25)\n at Function.Module.runMain (module.js:497:10)\n at startup (node.js:119:16)\n at node.js:901:3\n',
debug: blame: 'application' } ] } }
error: Error running command deploy
error: Errors occured while starting the application
error: Error output from application. This is usually a user error.
error:
error: module.js:340
error: throw err;
error: ^
error: Error: Cannot find module '/opt/run/snapshot/package/make'
error: at Function.Module._resolveFilename (module.js:338:15)
error: at Function.Module._load (module.js:280:25)
error: at Function.Module.runMain (module.js:497:10)
error: at startup (node.js:119:16)
error: at node.js:901:3
error:
error: Error starting application. This could be a user error.
error: info: Running start for app.
error: info: Cleaning /opt/run
error: info: Fetching application snapshot...
error: info: Application snapshot fetched.
error: info: Unpacking snapshot...
error: info: Reading `package.json`...
error: Determining node engine...v0.10.17
error: info: Starting application...
error: info: Spawn: start --min-uptime 2000 -o /opt/run/forza.log -- forza -h 72.2.115.35:8556 -h 72.2.115.133:8556 -h 72.2.115.112:8556 -h 72.2.115.136:8556 -h 72.2.115.155:8556 --start-log /opt/run/start.log --app-user kevmo --app-name mean -- /opt/engines/node/v0.10.17/bin/node make start
error: info: `aeternum` pid: 62488
error: info: Writing pidfile: /root/app.pid
error: info: Tailing forza log: /opt/run/start.log
error: info: Tail closing..
error: info: Success:start
error:
~/Desktop/spreadit:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment