Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

503 error for hello world example #252

Closed
prolificcoder opened this Issue Dec 19, 2011 · 13 comments

Comments

Projects
None yet
6 participants

I followed the steps to create a new test app from the welcome email but I am seeing 503 - application offline error.
Not sure if I am doing it wrong or its nodester issue.

The steps I followed are

  1. npm install nodester-cli -g
  2. nodester user setup
  3. nodester app create
  4. nodester app init

Not sure if this will be helpful but the output I am seeing is

 selltwob@sell2buy.org [~/node/test_blog]# nodester app init test_blog
 The "sys" module is now called "util". It should have a similar interface.
 nodester info initializing git repo for test_blog into folder test_blog
 nodester info cloning the repo git clone git@nodester.com:/node/git/prolificcoder/xxxx.git test_blog
 nodester info clone complete
 nodester info Writing app data to config in test_blog/.nodester.appconfig
 nodester info writing app files
 nodester info processing the initial commit
 Enter passphrase for key '/home3/selltwob/.ssh/id_rsa':
 nodester info test_blog started. 
 nodester info Some helpful app commands:

 cd ./test_blog
 curl http://test_blog.nodester.com/
  nodester app info
  nodester app logs
  nodester app stop|start|restart

Either with curling or going to test_blog.nodester.com I keep on seeing the same 503 error.

Contributor

contra commented Dec 19, 2011

Can you post your app logs?

selltwob@sell2buy.org [~/node/test_blog]# nodester app logs
The "sys" module is now called "util". It should have a similar interface.
nodester info { response: '{"status":"failure","message":"No logs available."}\n',
errorCode: 500 }
nodester ERROR Fatal Error! API Response: {"status":"failure","message":"No logs available."}

Reason: No logs available.

Contributor

contra commented Dec 20, 2011

Restart the app and see if you get any logs

Same problem.

$ nodester app create permdemo
nodester info creating app: permdemo server.js
nodester info successfully created app permdemo to will run on port 13119 from server.js
nodester info run nodester app init permdemo to setup this app.

$ nodester app init permdemo
nodester info initializing git repo for permdemo into folder permdemo
nodester info cloning the repo git clone git@nodester.com:/node/git/pirxpilot/4966-bef961d959eeeee1fbed6f7bb27207d8.git permdemo
nodester info clone complete
[...]

Trying to check status

$ curl http://permdemo.nodester.com/
<html><head><title id="title">503 - Application offline</title></head><body><br/><br/><br/><br/><br/><center><img src="http://nodester.com/images/rocket-down.png" alt="logo" /><br/><h1 style ="color:#000;font-family:Arial,Helvetica,sans-serif;font-size:38px;font-weight:bold;letter-spacing:-2px;padding:0 0 5px;margin:0;">503</h1><h3 style ="color:#000;font-family:Arial,Helvetica,sans-serif;font-size:24px;font-weight:bold;padding:0 0 5px;margin:0;">Application offline</h3></center></body></html>dkrzemin@yano:~/delme/permdemo$ 

No logs are available:

$ cd permdemo
$ nodester app logs
  nodester info { response: '{"status":"failure","message":"No logs available."}\n',
  errorCode: 500 }
nodester ERROR Fatal Error! API Response: {"status":"failure","message":"No logs available."}
Reason: No logs available.

Tried 'git push' some changes but it does not help.
'nodester npm install' complains about permissions.

$ nodester npm install jsdom
nodester info installing to app: permdemo
nodester info installing these npm packages: jsdom
nodester /bin/sh: line 0: cd: /node/app/pirxpilot/4966-bef961d959eeeee1fbed6f7bb27207d8_rw: No such file or directory
nodester npm WARN crypto@0.0.1 package.json: bugs['web'] should probably be bugs['url']
nodester npm ERR! Could not create /node_modules/___jsdom.npm
nodester npm ERR! error installing jsdom@0.2.10 Error: EACCES, Permission denied '/node_modules/___jsdom.npm'
nodester npm ERR! Error: EACCES, Permission denied '/node_modules/___jsdom.npm'

And 'nodester npm list' reports missing folder

nodester info list npm packages for app: permdemo
nodester ├── crypto@0.0.1 
nodester ├─┬ express@2.4.3 
nodester │ ├── connect@1.6.0 
nodester │ ├── mime@1.2.2 
nodester │ └── qs@0.3.0 
nodester ├── imageable@0.3.4 
nodester └── jade@0.13.0 
nodester /bin/sh: line 0: cd: /node/app/pirxpilot/4966-bef961d959eeeee1fbed6f7bb27207d8_rw: No such file or directory
nodester npm WARN crypto@0.0.1 package.json: bugs['web'] should probably be bugs['url']
Collaborator

chrismatthieu commented Dec 21, 2011

Here are several questions to solicit more data:

Which OS are you running?
Which version of Node.JS are you running locally?
Is git installed locally?
Did you provide Nodester with a valid RSA key?

Some version info:

$ uname -a
Linux yano 2.6.35-31-generic #63-Ubuntu SMP Mon Nov 28 19:23:11 UTC 2011 i686 GNU/Linux
$ node -v
v0.4.11
$ npm -v
1.0.27
$ git --version
git version 1.7.1
$ nodester -v
0.2.34

Nodester has my public key (I am able to perform various operations like creating an app or pushing to git repo).
I can try to reproduce this using REST API only if that helps.

Here's mine

selltwob@sell2buy.org [~]# nodester -v
The "sys" module is now called "util". It should have a similar interface.
0.2.34
selltwob@sell2buy.org [~]# git --version
git version 1.7.6
selltwob@sell2buy.org [~]# node -v
v0.6.5
selltwob@sell2buy.org [~]# uname -a
Linux host276.hostmonster.com 2.6.32-46.1.BHsmp #1 SMP Tue Sep 6 12:18:02 MDT 2011 x86_64 x86_64 x86_64 GNU/Linux
selltwob@sell2buy.org [~]# npm -v
1.1.0-alpha-6
Contributor

contra commented Dec 30, 2011

Working on it now, seems to be another elusive permissions issue. Will update when fixed!

Contributor

contra commented Dec 30, 2011

Seems to be fixed. Let me know if you guys have any more issues! You might have to git push before starting your app again

Works for me now. Thanks!

@contra contra closed this Jan 3, 2012

I have the same problem, dont seem to find a solution.

http://nodejsapp.nodester.com/

I had a 503 issue too in relation to an express app.

If you check the logs "nodester app logs " then you should get some useful info there. My error was relating to express not installing on nodester. I had to re-init the app "nodester app init yourappname" then run "nodester npm install express yourappname".

Problem sorted, hope this helps

Ian

Thanks for the help, will try it tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment