Hi, On Wed, Jan 26, 2011 at 12:30 AM, Roberto De Ioris <[email protected]> wrote:
> > First of all, lets rewrite you configuration in a more elegant way :) > > <uwsgi> > <chdir>/home/km/myproject/</chdir> > <env>DJANGO_SETTINGS_MODULE=settings</env> > <module>django.core.handlers.wsgi:WSGIHandler()</module> > <socket>127.0.0.1:3009</socket> > <logto>/var/log/cherokee.error</logto> > <master/> > <processes>4</processes> > </uwsgi> > > now run with: > > uwsgi -x /home/km/myproject/uwsgi.xml > > (no need of another file as django_wsgi.py) > > I have removed the pythonpath directive as for django i prefer to chdir to > the app directory. (the current directory is automatically added to the > pythonpath) > > Post the whole output of the new configuration run from the command line, > than we will check the cherokee part > > yes I have replaced the uwsgi.xml with the contents u suggested above and then run: $ uwsgi -x /home/km/myproject/uwsgi.xml [uWSGI] parsing config file /home/km/myproject/uwsgi.xml open(): Permission denied [utils.c line 148] So I tried to setuid to www-data (33) and then run the same The dir permissions of my django project dir, "/home/km/myproject" are km:www-data recursively. $ sudo uwsgi --uid www-data -x /home/km/myproject/uwsgi.xml [uWSGI] parsing config file /home/km/myproject/uwsgi.xml The /var/log/cherokee.error log says ################################ *** Starting uWSGI 0.9.6.6 (32bit) on [Wed Jan 26 15:04:04 2011] *** compiled with version: 4.4.5 Python version: 2.6.6 (r266:84292, Sep 15 2010, 16:02:57) [GCC 4.4.5] uWSGI running as root, you can use --uid/--gid/--chroot options setuid() to 33 your memory page size is 4096 bytes allocated 412 bytes (0 KB) for 1 request's buffer. binding on TCP port: 3009 your server socket listen backlog is limited to 64 connections initializing hooks...done. application 0 () ready setting default application to 0 spawned uWSGI master process (pid: 11479) spawned uWSGI worker 1 (pid: 11481) invalid request block size: 21573...skip ############################### (I have also tried to access 127.0.0.1:3009 in browser with no display but at the end of the logs, I notice "invalid request block size: 21573... skip" line.) pls let me know. regards, KM -- > Roberto De Ioris > http://unbit.it >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
