Git Product home page Git Product logo

Comments (8)

indexzero avatar indexzero commented on June 16, 2024

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.

goatslacker avatar goatslacker commented on June 16, 2024
{
    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.

indexzero avatar indexzero commented on June 16, 2024

@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.

goatslacker avatar goatslacker commented on June 16, 2024

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.

indexzero avatar indexzero commented on June 16, 2024

Thanks, I will investigate now and get back to you.

from jitsu.

indexzero avatar indexzero commented on June 16, 2024

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.

bmeck avatar bmeck commented on June 16, 2024

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.

goatslacker avatar goatslacker commented on June 16, 2024

Awesome, thanks for the prompt reply! Glad to help debug.

from jitsu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.