Hello list

I'm having a play with the namespaces feature in the uWSGI. I can get the simple example working fine ( http://uwsgi-docs.readthedocs.org/en/latest/Namespaces.html). However the more complicated configuration we use in production just doesn't work and it's quite difficult to debug what is going on.

The errors are all related to not being able to find files (which are in the chroot). Or permission denied trying to open log files. For example:

IOError: [Errno 13] Permission denied: '/var/log/www.somesite.com.error.log'

Which makes me think it's trying to open the log files before it has been chrooted. Though weirdly if I give the user permission both inside and outside of the chroot it still gives that error.

So, if anyone has any ideas I would be much obliged.

Also, which specific namespaces are being created and joined with the "namespaces = /path/to/chroot:hostname" in the .ini file? I'm assuming PID, and IPC?

Cheers

--
Hansel Dunlop
Developer
[email protected] @hanseldunlop

PythonAnywhere - a fully browser-based Python development and hosting 
environment
<http://www.pythonanywhere.com/>

PythonAnywhere LLP
17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number OC378414.
Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to