Comments (8)
This is a bug in the require-analyzer
. I have committed a fix here: nodejitsu/require-analyzer@cdbbad1. I will deploy the fix in tomorrow.
Now that I have your app deploying, I'm seeing some unusual activity in the server logs. Can you try deploying this locally with haibu? I have created a simple script for you to use here along with a short brief of the server logs: https://gist.github.com/1009915
from jitsu.
{
stack: 'Error: haibu Error (500): Internal Server Error\n at [object Object].callback (/home/josh/Development/nodeFighter/node_modules/haibu/lib/haibu/drone/client.js:157:15)\n at IncomingMessage.<anonymous> (/home/josh/Development/nodeFighter/node_modules/haibu/node_modules/request/main.js:260:21)\n at IncomingMessage.emit (events.js:81:20)\n at HTTPParser.onMessageComplete (http.js:133:23)\n at Socket.ondata (http.js:1215:22)\n at Socket._onReadable (net.js:682:27)\n at IOWatcher.onReadable [as callback] (net.js:177:10)',
arguments: undefined,
type: undefined,
message: 'haibu Error (500): Internal Server Error',
result: {
error: '{"property":"user","message":"Property user is required"}',
stack: [
'Error: {"property":"user","message":"Property user is required"}',
' at Object.create (/usr/local/lib/node_modules/haibu/lib/haibu/repositories/index.js:33:11)',
' at [object Object].trySpawn (/usr/local/lib/node_modules/haibu/lib/haibu/core/spawner.js:84:78)',
' at [object Object].start (/usr/local/lib/node_modules/haibu/lib/haibu/drone/drone.js:39:16)',
' at Object.<anonymous> (/usr/local/lib/node_modules/haibu/lib/haibu/drone/service.js:83:13)',
' at Object.<anonymous> (/usr/local/lib/node_modules/haibu/node_modules/journey/lib/journey.js:257:46)',
' at Object.go (/usr/local/lib/node_modules/haibu/node_modules/journey/lib/journey.js:423:33)',
' at /usr/local/lib/node_modules/haibu/node_modules/journey/lib/journey.js:349:30',
' at /usr/local/lib/node_modules/haibu/node_modules/journey/lib/journey.js:281:39',
' at checkConstraints (/usr/local/lib/node_modules/haibu/node_modules/journey/lib/journey.js:247:28)',
' at Object.validateRoute (/usr/local/lib/node_modules/haibu/node_modules/journey/lib/journey.js:268:10)'
]
}
}
from jitsu.
@goatslacker Yes. This is to be expected. Please use this package.json:
{
"name": "nodefighter",
"subdomain": "nodefighter",
"repository": {
"type": "git",
"url": "https://github.com/goatslacker/nodeFighter.git"
},
"scripts": {
"start": "server.js"
},
"dependencies": {
"socket.io": "0.6.18"
},
"user": "haibu",
"version": "0.0.0"
}
from jitsu.
haibu-server
is crashing now with this message:
6 Jun 01:48:21 - info: service:incoming href=/drones/nodefighter/start,method=POST
6 Jun 01:48:21 - warn: repo:dir:notfound app=nodefighter,dir=/usr/local/lib/node_modules/haibu/local/haibu/nodefighter
6 Jun 01:48:21 - info: repo:dir:user:create app=nodefighter,dir=/usr/local/lib/node_modules/haibu/local/haibu
6 Jun 01:48:21 - info: repo:dir:user:success app=nodefighter,dir=/usr/local/lib/node_modules/haibu/local/haibu
6 Jun 01:48:21 - info: repo:dir:app:create app=nodefighter,dir=/usr/local/lib/node_modules/haibu/local/haibu/nodefighter
6 Jun 01:48:21 - info: repo:dir:app:success app=nodefighter,dir=/usr/local/lib/node_modules/haibu/local/haibu/nodefighter
6 Jun 01:48:21 - info: npm:load exit=false
6 Jun 01:48:21 - silly: npm:load:success
6 Jun 01:48:21 - info: npm:install:load app=nodefighter,dependencies=socket.io
6 Jun 01:48:21 - info: npm:install:start app=nodefighter,dependencies=socket.io
node.js:181
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'replace' of null
at mkdir (/usr/local/lib/node_modules/haibu/node_modules/npm/lib/utils/mkdir-p.js:28:19)
at Object.install (/usr/local/lib/node_modules/haibu/node_modules/npm/lib/install.js:181:3)
at installAll (/usr/local/lib/node_modules/haibu/lib/haibu/utils/npm.js:90:18)
at /usr/local/lib/node_modules/haibu/lib/haibu/utils/npm.js:119:7
at /usr/local/lib/node_modules/haibu/lib/haibu/utils/npm.js:71:5
at /usr/local/lib/node_modules/haibu/lib/haibu/utils/npm.js:47:5
at Array.<anonymous> (/usr/local/lib/node_modules/haibu/node_modules/npm/npm.js:178:38)
at EventEmitter._tickCallback (node.js:173:26)
And on the client's end I'm getting this:
$ node haibu-deploy.js
Error spawning app: nodefighter
{
stack: 'Error: socket hang up\n at Socket.<anonymous> (http.js:1274:45)\n at Socket.emit (events.js:64:17)\n at Array.0 (net.js:832:12)\n at EventEmitter._tickCallback (node.js:173:26)',
arguments: undefined,
type: undefined,
message: 'socket hang up'
}
from jitsu.
Thanks, I will investigate now and get back to you.
from jitsu.
So this was an error in haibu
having to do with residual npm 1.0 issues around git-based repositories in package.json
files. I have patched this and pushed [email protected]
. With this installed, I was able to deploy your program using the script and package.json in the gist I supplied.
I have pushed the fix to require-analyzer to npm, so you should be able to update jitsu: [sudo] npm update jitsu -g
I'm going to close this. We will open an issue internally to track why your application is still not starting in nodejitsu production.
Thanks for submitting this :)
from jitsu.
looking into it
On Mon, Jun 6, 2011 at 2:33 AM, goatslacker
[email protected]
wrote:
Here's the error I'm getting:
https://gist.github.com/1009875
I'm able to reproduce this error 100% of the time with the following app:
https://github.com/goatslacker/nodeFighter/blob/master/server.js
My package.json looks like this:
{
"name": "nodefighter",
"subdomain": "nodefighter",
"scripts": {
"start": "server.js"
},
"dependencies": {
"socket.io": "0.6.18"
},
"version": "0.0.0"
}Reply to this email directly or view it on GitHub:
#35
from jitsu.
Awesome, thanks for the prompt reply! Glad to help debug.
from jitsu.
Related Issues (20)
- Error when deploying HOT 2
- Feedback when streaming build logs are done
- Deployment exception HOT 2
- Read environment variables locally and set in app
- Save time by allowing domain and name parameters in jitsu deploy command HOT 2
- Build errors not properly displayed
- Cannot deploy applications with make files HOT 1
- Option to avoid writing to package.json HOT 1
- Allow optional delay to watch for immediate errors on deploy HOT 3
- Warn on wrong engine version HOT 5
- Jitsu throws err HOT 3
- When creating a package.json on jitsu deploy, jitsu skips analysing dependencies if entering details when prompted for 'scripts.start'
- Doesn't work behind a firewall with http proxy setup
- npm version and GH version out of sync HOT 1
- Update of *jitsu* docs and implementation needed
- Authentication error is not displayed HOT 1
- Support for "build metadata"? HOT 4
- Cannot update jitsu and unable to deploy app HOT 6
- jitsu deploy doesn't work HOT 3
- Nodejitsu Error 500
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jitsu.