My application constantly shuts down

191 views
Skip to first unread message

KLiDE

unread,
Jul 3, 2012, 8:30:11 AM7/3/12
to node...@googlegroups.com
My application constantly shuts down. I can't understand what's the reason. This is my logs:

New PID: 25684
chroot_runner
chroot_runner
Spawing /app/index.js
 [1m [31mWARN [39m [22m :: You are running in node-0.4.9. You might want to upgrade to node-v0.6.17
Running node v-0.4.9
SERVER:  | Welcome to qZee v0.1a
SERVER:  | Server started at localhost:18060
CNTRL:   | 200: index
ROUTER:  | 200: /css/style.css
ROUTER:  | 200: /css/general.css
ROUTER:  | 200: /js/my.js
ROUTER:  | 200: /js/jquery-1.7.2.min.js
ROUTER:  | 404: /favicon.ico
ROUTER:  | 404: /favicon.ico
3
CNTRL:   | 200: posts
ROUTER:  | 200: /css/style.css
ROUTER:  | 200: /css/general.css
ROUTER:  | 200: /js/my.js
ROUTER:  | 200: /js/jquery-1.7.2.min.js
events.js:45
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/node_modules/mysql/lib/protocol/Protocol.js:63:13)
    at Socket.onend (stream.js:74:10)
    at Socket.emit (events.js:81:20)
    at Socket._onReadable (net.js:658:51)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
Process died with exit code 1. Restarting...
Spawing /app/index.js
 [1m [31mWARN [39m [22m :: You are running in node-0.4.9. You might want to upgrade to node-v0.6.17
Running node v-0.4.9
SERVER:  | Welcome to qZee v0.1a
SERVER:  | Server started at localhost:18060
ROUTER:  | 200: /robots.txt
CNTRL:   | 200: index
events.js:45
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/node_modules/mysql/lib/protocol/Protocol.js:63:13)
    at Socket.onend (stream.js:74:10)
    at Socket.emit (events.js:81:20)
    at Socket._onReadable (net.js:658:51)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
Process died with exit code 1. Restarting...
Spawing /app/index.js
 [1m [31mWARN [39m [22m :: You are running in node-0.4.9. You might want to upgrade to node-v0.6.17
Running node v-0.4.9
SERVER:  | Welcome to qZee v0.1a
SERVER:  | Server started at localhost:18060
CNTRL:   | 200: index
events.js:45
        throw arguments[1]; // Unhandled 'error' event
     
 
       
    
    
  
^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/node_modules/mysql/lib/protocol/Protocol.js:63:13)
    at Socket.onend (stream.js:74:10)
    at Socket.emit (events.js:81:20)
    at Socket._onReadable (net.js:658:51)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
Process died with exit code 1. Restarting...
Spawing /app/index.js
 [1m [31mWARN [39m [22m :: You are running in node-0.4.9. You might want to upgrade to node-v0.6.17
Running node v-0.4.9
SERVER:  | Welcome to qZee v0.1a
SERVER:  | Server started at localhost:18060
ROUTER:  | 200: /robots.txt
3
CNTRL:   | 200: posts
events.js:45
        throw arguments[1]; // Unhandled 'error' event
    
     
     
     
    
^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/node_modules/mysql/lib/protocol/Protocol.js:63:13)
    at Socket.onend (stream.js:74:10)
    at Socket.emit (events.js:81:20)
    at Socket._onReadable (net.js:658:51)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
Process died with exit code 1. Restarting...
Spawing /app/index.js
 [1m [31mWARN [39m [22m :: You are running in node-0.4.9. You might want to upgrade to node-v0.6.17
Running node v-0.4.9
SERVER:  | Welcome to qZee v0.1a
SERVER:  | Server started at localhost:18060
CNTRL:   | 200: posts
events.js:45
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/node_modules/mysql/lib/protocol/Protocol.js:63:13)
    at Socket.onend (stream.js:74:10)
    at Socket.emit (events.js:81:20)
    at Socket._onReadable (net.js:658:51)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
Process died with exit code 1. Restarting...
Spawing /app/index.js
 [1m [31mWARN [39m [22m :: You are running in node-0.4.9. You might want to upgrade to node-v0.6.17
Running node v-0.4.9
SERVER:  | Welcome to qZee v0.1a
SERVER:  | Server started at localhost:18060
CNTRL:   | 200: feedbacks
events.js:45
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Connection lost: The server closed the connection.
    at Protocol.end (/node_modules/mysql/lib/protocol/Protocol.js:63:13)
    at Socket.onend (stream.js:74:10)
    at Socket.emit (events.js:81:20)
    at Socket._onReadable (net.js:658:51)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
Error: Restarted too many times, bailing.

Alejandro Morales Gámez

unread,
Jul 3, 2012, 12:37:36 PM7/3/12
to node...@googlegroups.com
Looks like your mysql module is getting disconnected by the remote db.
You should handle this error a little bit better so your app don't crash a lot.

Also you may want to add to your package.json the node version (probably that's the origin of the error)

Adding this to the top level of your package.json:


{
 "name":"....",
  "node":"0.6.17",
  "dependencies":{
      ....
  }
}

The "node":"0.6.17" is the most important.
Reply all
Reply to author
Forward
0 new messages