Hi, I'm getting this errors in web2py 2.0.8 using nginx + uwsgi
File "/opt/web2py/gluon/admin.py", line 463, in create_missing_folders
os.mkdir(path)
OSError: [Errno 13] Permission denied: '/applications'
unable to load app 0 (mountpoint='') (callable not found or import error)
other error:
File "/opt/web2py/gluon/main.py", line 114, in <module>
raise RuntimeError, "Cannot determine web2py version"
RuntimeError: Cannot determine web2py version
unable to load app 0 (mountpoint='') (callable not found or import error)
is trying to create applications folder on /
> --
> -- mail from:GoogleGroups "web2py-developers" mailing list
> make speech: web2py-d...@googlegroups.com
> unsubscribe: web2py-develop...@googlegroups.com
> details : http://groups.google.com/group/web2py-developers
> the project: http://code.google.com/p/web2py/
> official : http://www.web2py.com/
>
>
dont have any, is a fresh install
I need the Spoller from uwsgi,
so in my app I have a module that imports stuff for sending Email
from gluon.tools import Mail
when I comment this line the error goes away, so I suppose that importing gluon is somewhere trying to create the /applications
Francisco Costa
http://franciscocosta.com
Hi Simone,
I traced the error,
In /etc/init.d/uwsgi (where I start uwsgi) I have this
DAEMON_OPTS="-s 127.0.0.1:9001 -M 2 -t 30 -A 2 -p 2 -d /var/log/uwsgi.log
--pythonpath $PYTHONPATH --module $MODULE --harakiri-verbose
--spooler /opt/web2py/applications/welcome/spooler/
--import /opt/web2py/applications/welcome/modules/spooler.py"
where I import the spooler modukle. The error was on it, because I was not changing the folder before importing gluon stuff
I add this os.chdir('/opt/web2py') and everything is working now
Francisco Costa
http://franciscocosta.com
On Sun, Sep 9, 2012 at 6:41 PM, Niphlod <nip...@gmail.com> wrote:e the problem is the same of the other thread. Something in your system is "non-standard" and we have to pinpoint the cause. Something about the initialization of your app is screwing with the base folder setting. Normally the first thing called (web2py.py or wsgihandler.py in this case) sets the current work directory to the dir of the file, where it is supposed to be the rest of web2py framework.
This was resolved. right?