Sunday, 15 January 2012

NODE.JS - OpenShift 503 Service is Temporarily Unavilable: Server.js and Package.json files are fine -


Project running on Node.js server:

I'm crazy here.

"post-text" itemprop = "text">

I can not understand why I am getting a 503 error, when I have done the fix, what is the open shift? To do.

Server.js:

  var server_port = process.env.OPENSHIFT_NODEJS_PORT || 8080; Var server_ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1'; Listening to server.listen (server_port, server_ip_address, function () {console.log ("+ server_ip_address +", server_port "+ server_port";});  

package.json : "Server.js"} >

I have gone through my logs and everything, and it says that there is a problem on line 5 at server.js. How does this happen? Am I being mad, or am I forgetting something I am cleared NPM module, and the application says that it is okay.

This is someone The new post is not replicated because I have done all of them.

Server log trail error:

  Reference: defined on server object No. & Lt; Anonymous & gt; (/ var / lib / OpenShift / 550764f6e0b8cd8a8a00007e / app- root / order / repo / server.js: 4: 1) on Module._compile (module.js: 456: 26) Object On Module._extensions..js (module .js: 474: 10) Module.load (at module.js: 356: 32) Function.Module._load (at module.js: 312: 12) Function.Module.runMain (At module.js: 497: 10) at startup (Node.js: 119: 16) at Node.js: 902: 3 debug: 'node server.js' / var / lib / openshift / 550764f6e0b8cd8a8a00007e Child Process: The program exited with the node server.js code 8 debug / app-root / order / repo / server.js: 4 server.listen (server_port, server_ip_address, function () {^  

I do not know what is happening, so I am getting it. A server is undefined issue, and everything is done properly from what I can see.

Your string is opened at the end of row 5 and you do not close it at any time. Change it to

  var server_port = process.env.OPENSHIFT_NODEJS_PORT <8080 Var server_ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1' server.listen (server_port, server_ip_address, function () {console.log (+ server_ip_address + ", server_port" + "listening on server_port");});  

And it would be nice to go to


No comments:

Post a Comment