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.