Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot deploy test project #33

Closed
Mirodil opened this issue Jul 12, 2012 · 6 comments
Closed

cannot deploy test project #33

Mirodil opened this issue Jul 12, 2012 · 6 comments

Comments

@Mirodil
Copy link

Mirodil commented Jul 12, 2012

when i tried to deploy server.js i got the following error:

jitsu deploy
info: Welcome to Nodejitsu miro
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
warn: There is no package.json file in D:\Mirodil\chat\myapp
warn: Creating package.json at D:\Mirodil\chat\myapp\package.json
help:
help: A package.json stores meta-data about your application
help: In order to continue we'll need to gather some information about your a
pp
help:
help: Press ^C at any time to quit.
help: to select a default value, press ENTER
prompt: App name: (myapp) myapp
prompt: subdomain: (miro.myapp) myapp
prompt: scripts.start: (server.js) server.js
prompt: version: (0.0.0) 0.0.1
error: Unable to add properties to package description.
error: [TypeError: Object function valid(version) {
if (typeof version !== "string") return null
return exports.parse(version) && version.trim().replace(/^[v=]+/, '')
} has no method 'test']
error: TypeError: Object function valid(version) {
if (typeof version !== "string") return null
return exports.parse(version) && version.trim().replace(/^[v=]+/, '')
} has no method 'test'
error: Error running command deploy
info: Nodejitsu not ok

@Marak
Copy link
Contributor

Marak commented Jul 12, 2012

What does your current jitsu -v report?

It looks like you have an outdated version of jitsu. Try running npm install jitsu -g and trying again.

@Marak Marak closed this as completed Jul 12, 2012
@Mirodil
Copy link
Author

Mirodil commented Jul 12, 2012

i have current version is 0.9.2

@Marak
Copy link
Contributor

Marak commented Jul 12, 2012

Current version is 0.9.3.

Run npm install jitsu -g

@Mirodil
Copy link
Author

Mirodil commented Jul 12, 2012

after re-install i have got another error:

D:\Mirodil\chat\myapp>jitsu deploy
info: Welcome to Nodejitsu miro
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in server.js
warn: Local version appears to be old
warn: Your package.json version will be incremented for you automatically
warn: About to write D:\Mirodil\chat\myapp\package.json
data:
data: {
data: subdomain: 'miro.myapp',
data: version: '0.0.0-2',
data: engines: { node: '0.8.0' },
data: scripts: { start: 'server.js' },
data: name: 'myapp'
data: }
data:
prompt: Is this ok?: (yes) yes
info: Creating snapshot 0.0.0-2
info: Updating app myapp
info: Activating snapshot 0.0.0-2 for myapp
info: Starting app myapp
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: Error spawning drone: no matching engine found
error: Repository configuration
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
error: Error: Error spawning drone: no matching engine found
error: at [object Object].getSpawnOptions (/root/haibu-orchestra/node_modu
les/haibu/lib/haibu/core/spawner.js:34:17)
error: at [object Object].getSpawnOptions (/root/haibu-orchestra/node_modu
les/haibu/lib/haibu/plugins/useraccounts.js:34:31)
error: at Spawner.spawn (/root/haibu-orchestra/node_modules/haibu/lib/haib
u/core/spawner.js:169:30)
error: at /root/haibu-orchestra/node_modules/haibu/lib/haibu/core/spawner.
js:131:12
error: at /root/haibu-orchestra/node_modules/haibu/lib/haibu/repositories/
tar.js:70:11
error: at ChildProcess. (/root/haibu-orchestra/node_modules/hai
bu/lib/haibu/plugins/useraccounts.js:239:15)
error: at ChildProcess.emit (events.js:70:17)
error: at maybeExit (child_process.js:362:16)
error: at Process.onexit (child_process.js:398:5)
info: Nodejitsu not ok

@Marak
Copy link
Contributor

Marak commented Jul 12, 2012

That's because you are trying to deploy using node version 0.8.0 which isn't available yet ( as the error poorly states). Try using 0.6.x instead.

If you need support please email support@nodejitsu.com, or visit #nodejitsu irc.freenode.net. While I am glad to help, the handbook repository is not a clearing house for all support issues.

@Mirodil
Copy link
Author

Mirodil commented Jul 12, 2012

Ok thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants