django - Error 503 in OpenShift server -


that's first django project , i'm trying deploy openshift, have problem: when i'm trying open app's page, see "503: service temporarily unavailable" message. thought app wasn't started tried launch 'ctl_app start' in ssh , i've got this:

python: can't open file 'app.py': [errno 2] no such file or directory 

i tried start app way: rhc app start customerquiz , got this:

result: customerquiz started 

but took no effect. well, tried state of app:

$ rhc app show --state customerquiz cartridge python-2.7, mysql-5.1, phpmyadmin-3.4 started 

and that's in server logs:

$ rhc tail customerquiz ==> mysql-5.1/log/mysql_error.log <== 130519 17:32:54 [note] /usr/libexec/mysqld: shutdown complete  130519 17:32:54 mysqld_safe mysqld pid file /var/lib/openshift/000005//mysql-5.1/pid/mysql.pid ended 130519 17:33:04 mysqld_safe starting mysqld daemon databases /var/lib/openshift/000005//mysql-5.1/data/ 130519 17:33:04  innodb: initializing buffer pool, size = 16.0m 130519 17:33:05  innodb: completed initialization of buffer pool 130519 17:33:05  innodb: started; log sequence number 0 44233 130519 17:33:05 [note] event scheduler: loaded 0 events 130519 17:33:05 [note] /usr/libexec/mysqld: ready connections. version: '5.1.69'  socket: '/var/lib/openshift/000005//mysql-5.1/socket/mysql.sock'  port: 3306  source distribution  ==> python-2.7/logs/appserver.log <== python: can't open file 'app.py': [errno 2] no such file or directory  ==> phpmyadmin-3.4/logs/access_log-20130519-000000-est <== 109.254.107.11 - - [19/may/2013:17:14:13 -0400] "get /phpmyadmin/themes/pmahomme/img/error.ico http/1.1" 200 5430 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/phpmyadmin.css.php?server=1&token=436aa&js_frame=right&nocache=5471357898" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" - - - [19/may/2013:17:14:13 -0400] "options * http/1.0" 200 - "-" "apache/2.2.15 (red hat) (internal dummy connection)" 109.254.107.11 - admin [19/may/2013:17:14:18 -0400] "get /phpmyadmin/ http/1.1" 200 2580 "-" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - admin [19/may/2013:17:14:19 -0400] "get /phpmyadmin/main.php?token=436aa http/1.1" 200 35472 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - adminb [19/may/2013:17:14:21 -0400] "get /phpmyadmin/version_check.php?&_nocache=1368998062197204658 http/1.1" 200 44 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/main.php?token=436aa" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - admin [19/may/2013:17:14:19 -0400] "get /phpmyadmin/navigation.php?token=436aa http/1.1" 200 5029 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - admin [19/may/2013:17:20:49 -0400] "get /phpmyadmin/ http/1.1" 200 2580 "-" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - admin [19/may/2013:17:20:50 -0400] "get /phpmyadmin/navigation.php?token=436aa http/1.1" 200 5029 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - admin [19/may/2013:17:20:50 -0400] "get /phpmyadmin/main.php?token=436aa http/1.1" 200 35472 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0" 109.254.107.11 - admin [19/may/2013:17:20:52 -0400] "get /phpmyadmin/version_check.php?&_nocache=1368998453881950766 http/1.1" 200 44 "https://customerquiz-unclelem.rhcloud.com/phpmyadmin/main.php?token=8436aa" "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:21.0) gecko/20100101 firefox/21.0"  ==> phpmyadmin-3.4/logs/error_log-20130519-000000-est <== [sun may 19 17:12:56 2013] [notice] digest: done [sun may 19 17:12:56 2013] [notice] apache/2.2.15 (unix) php/5.3.3 configured -- resuming normal operations [sun may 19 17:28:00 2013] [notice] selinux policy enabled; httpd running context unconfined_u:system_r:openshift_t:s0:c6,c356 [sun may 19 17:28:00 2013] [notice] digest: generating secret digest authentication ... [sun may 19 17:28:00 2013] [notice] digest: done [ sun may 19 17:28:00 2013] [notice] apache/2.2.15 (unix) php/5.3.3 configured -- resuming normal operations [sun may 19 17:33:17 2013] [notice] selinux policy enabled; httpd running context unconfined_u:system_r:openshift_t:s0:c6,c356 [sun may 19 17:33:17 2013] [notice] digest: generating secret digest authentication ... [sun may 19 17:33:17 2013] [notice] digest: done [sun may 19 17:33:17 2013] [notice] apache/2.2.15 (unix) php/5.3.3 configured -- resuming normal operations 

does have ideas can wrong?

p.s. that's deployed project source code, if need it: https://github.com/unclelem/customerquiz (i changed database connection parameters).

p.p.s. oh, btw, if open https://customerquiz-unclelem.rhcloud.com/phpmyadmin/ directly, can see phpmyadmin page.

we not using mod_wsgi these new carts. 2.7 uses gevent , 3.3 uses webob

take @ how set app.py in 2.7 cart
https://github.com/openshift/openshift-community-cartridge-python-2.7/blob/master/template/app.py

and 3.3
https://github.com/openshift/openshift-community-cartridge-python-3.3/blob/master/template/app.py

can review following blog post see if helps?
https://www.openshift.com/blogs/host-python-in-a-community-cart


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -