> looking at /var/log/cherokee/error_log that is what I get:
>
>
> [uWSGI] parsing config file /var/web2py/config.xml
> *** Starting uWSGI 0.9.6 (32bit) on [Thu Sep  9 23:37:45 2010] ***
> compiled with version: 4.4.4 20100630 (Red Hat 4.4.4-10)
> Python version: 2.6.4 (r264:75706, Jun  4 2010, 18:20:16)
> [GCC 4.4.4 20100503 (Red Hat 4.4.4-2)]
> uWSGI running as root, you can use --uid/--gid/--chroot options
>  *** WARNING: you are running uWSGI as root !!! (use the --uid flag)
> ***
> your memory page size is 4096 bytes
>  *** WARNING: you have enabled harakiri without post buffering. Slow
> upload could be rejected on post-unbuffered webservers ***
> allocated 404 bytes (0 KB) for 1 request's buffer.
> Setting PythonHome to /var...
> 'import site' failed; use -v for traceback
> binding on TCP port: 36986
> your server socket listen backlog is limited to 64 connections
> initializing hooks...done.
> 'import site' failed; use -v for traceback
> added /var/web2py/ to pythonpath.
> interpreter for app 0 initialized.
> Traceback (most recent call last):
>   File "/var/web2py/wsgihandler.py", line 20, in <module>
>     import os
> ImportError: No module named os
> *** uWSGI is running in multiple interpreter mode ***
> spawned uWSGI master process (pid: 3360)
> spawned uWSGI worker 1 (pid: 3361)
> 'import site' failed; use -v for traceback
> added /var/web2py/ to pythonpath.
> interpreter for app 0 initialized.
> ImportError: No module named �O�^H^P^G�^H^P
> [pid: 3361|app: -1|req: -1/1] 127.0.0.1 () {54 vars in 879 bytes} [Thu
> Sep  9 23:37:46 2010] GET / => generated 46 bytes in 2 msecs (HTTP/1.1
> 500) 2 headers in 63 bytes (0 async switches on async core 0)
>
>
>



Please run uWSGI independently from cherokee (its wizard is broken) with
one of the configuration you find on the official uWSGI site.

Then simply add a 'remote source' that point to the socket you have
choosen and map it to the directory /

All of your pythonpath and virtualenv are wrong.

In one of the previous post you managed to run flawlessly with the
embedded http server. Simply substitute --http with --socket

-- 
Roberto De Ioris
http://unbit.it

Reply via email to