Note that there are some explanatory texts on larger screens.

plurals
  1. POcherrypy wsgi app is not running on dotcloud
    primarykey
    data
    text
    <p>I'm writing cherrypy application it's running fine on localhost with apache and mod_wsgi but it's not running on dotcloud it gives me Error 502 Application not responding</p> <p>I have wsgi.py in my approot which contains</p> <pre><code>application = cherrypy.Application(Root(), script_name=None, config=None) </code></pre> <p>unfortunately there are no errors in log here it is</p> <pre><code>==&gt; /var/log/supervisor/supervisord.log &lt;== 2012-10-19 06:54:53,689 CRIT Set uid to user 1000 2012-10-19 06:54:53,689 WARN Included extra file "/etc/supervisor/conf.d/uwsgi.conf" during parsing 2012-10-19 06:54:53,850 INFO RPC interface 'supervisor' initialized 2012-10-19 06:54:53,850 WARN cElementTree not installed, using slower XML parser for XML-RPC 2012-10-19 06:54:53,850 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2012-10-19 06:54:53,855 INFO daemonizing the supervisord process 2012-10-19 06:54:53,861 INFO supervisord started with pid 145 2012-10-19 06:54:54,867 INFO spawned: 'uwsgi' with pid 150 2012-10-19 06:54:56,057 INFO success: uwsgi entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs) ==&gt; /var/log/supervisor/uwsgi.log &lt;== Fri Oct 19 06:54:55 2012 - your server socket listen backlog is limited to 100 connections Fri Oct 19 06:54:55 2012 - *** Operational MODE: preforking *** Fri Oct 19 06:54:55 2012 - added /home/dotcloud/current/ to pythonpath. Fri Oct 19 06:54:55 2012 - *** no app loaded. going in full dynamic mode *** Fri Oct 19 06:54:55 2012 - *** uWSGI is running in multiple interpreter mode *** Fri Oct 19 06:54:55 2012 - spawned uWSGI master process (pid: 161) Fri Oct 19 06:54:55 2012 - spawned uWSGI worker 1 (pid: 168, cores: 1) Fri Oct 19 06:54:55 2012 - spawned uWSGI worker 2 (pid: 169, cores: 1) Fri Oct 19 06:54:55 2012 - spawned uWSGI worker 3 (pid: 170, cores: 1) Fri Oct 19 06:54:55 2012 - spawned uWSGI worker 4 (pid: 171, cores: 1) ==&gt; /var/log/nginx/access.log &lt;== ==&gt; /var/log/nginx/error.log &lt;== ==&gt; /var/log/nginx/salesinfo-default-www-0.access.log &lt;== ** (-) - - [19/Oct/2012:06:54:53 +0000] "-" 400 0 "-" "-" ==&gt; /var/log/nginx/salesinfo-default-www-0.error.log &lt;== ==&gt; /var/log/supervisor/uwsgi.log &lt;== Fri Oct 19 06:55:42 2012 - WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x68ae00 pid: 170 (default app) ==&gt; /var/log/nginx/salesinfo-default-www-0.access.log &lt;== *** (::ffff:****) - - [19/Oct/2012:06:56:11 +0000] "GET / HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" </code></pre> <p>only thing I noticed is "no app loaded. going in full dynamic mode" but it doesn't make sense to me maybe you could help</p> <p>thanks</p> <pre><code>import sys, os, platform import atexit import cherrypy import cherrys from controllers import Root cherrypy.config.update({'environment': 'embedded', 'tools.sessions.on': True, 'tools.sessions.storage_type': "file", 'tools.sessions.storage_path': "./sessions" }) application = cherrypy.Application(Root(), script_name=None, config=None) </code></pre> <p>also requirements.txt looks like</p> <pre><code>CherryPy==3.2.2 cherrys jinja2 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload