uWSGI Permission denied

36 views
Skip to first unread message

Dmitrii Ermolaev

unread,
Nov 4, 2020, 8:10:52 AM11/4/20
to web...@googlegroups.com

Clemens

unread,
Nov 4, 2020, 8:33:33 AM11/4/20
to web2py-users
Is your Python version compatible with you uWSGI lib?
https://groups.google.com/g/web2py/c/cr2HmXYNieg/m/2YYHFmr_BAAJ

Have a look to "my personal step-by-step deployment guide for web2py and Nginx" (mainly inspired by the shell script setup-web2py-nginx-uwsgi-ubuntu). This configuration works well.
https://groups.google.com/g/web2py/c/BFvo2tn9IAI/m/GsIBbiVkAwAJ

Or you can even use the Ansible Playbook provided by Jim:
https://groups.google.com/g/web2py/c/BFvo2tn9IAI/m/nQMgO7HRBAAJ

Hope, this helps!

Best regards
Clemens


On Wednesday, November 4, 2020 at 2:10:52 PM UTC+1 ermolaev...@gmail.com wrote:

Roberto Perdomo

unread,
Nov 4, 2020, 12:34:13 PM11/4/20
to web...@googlegroups.com
Try adding this to "[Service]":

User=root
Group=www-data

I think is not a good idea have your app running as root user, you can
change the user, first move your .ini (don't forget change this path
in your uwsgi.service file) to your app path and do a recursive chown
to define user and group, something like:

chown your_user:www-data -R /var/www/html/your_app
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7861350d-7b69-4d6d-af7c-a36bb79cc788n%40googlegroups.com.

Carlos A

unread,
Nov 4, 2020, 10:12:56 PM11/4/20
to web2py-users
You are not using the default directories, please run those commands into your CLI:

chmod a+x  setup-web2py-nginx-uwsgi-ubuntu.sh 
./setup-web2py-nginx-uwsgi-ubuntu.sh   

Then you can use the next commands:

systemctl stop emperor.uwsgi.service  
systemctl start emperor.uwsgi.service   

The scripts are a little bit outdated, if this doesn't works, maybe we need to fix it.

Best regards.
El miércoles, 4 de noviembre de 2020 a las 6:10:52 UTC-7, ermolaev...@gmail.com escribió:
Reply all
Reply to author
Forward
0 new messages