W2P NGINX ERROR

56 views
Skip to first unread message

Áureo Dias Neto

unread,
Feb 7, 2017, 4:17:45 PM2/7/17
to web2py-users
I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's great, but after restart the server system, i get the error.. i atached the config files and nginx error log

any ide0?
error.log
routes.py
uwsgi_for_nginx.conf
web2py.xml

Áureo Dias Neto

unread,
Feb 7, 2017, 4:42:10 PM2/7/17
to web...@googlegroups.com
And, the nginx conf file

2017-02-07 19:17 GMT-02:00 Áureo Dias Neto <aureod...@gmail.com>:
I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's great, but after restart the server system, i get the error.. i atached the config files and nginx error log

any ide0?

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nginx.conf

Jim S

unread,
Feb 7, 2017, 9:27:31 PM2/7/17
to web2py-users
What about the uwsgi log?

-Jim


On Tuesday, February 7, 2017 at 3:42:10 PM UTC-6, Áureo Dias Neto wrote:
And, the nginx conf file
2017-02-07 19:17 GMT-02:00 Áureo Dias Neto <aureod...@gmail.com>:
I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's great, but after restart the server system, i get the error.. i atached the config files and nginx error log

any ide0?

--
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.

Áureo Dias Neto

unread,
Feb 7, 2017, 9:35:33 PM2/7/17
to web...@googlegroups.com
Is here, sorry

To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
Sem título.png

Áureo Dias Neto

unread,
Feb 8, 2017, 8:12:56 AM2/8/17
to web...@googlegroups.com
Anyone can help

Jim Steil

unread,
Feb 8, 2017, 8:35:13 AM2/8/17
to web...@googlegroups.com
Seems to me there was a problem importing MySQLdb.  Is there more to this log?  Seems like there should be more to that traceback.

If I had to guess I'd say it's an issue with permissions.

Can you go to the python shell and import MySQLdb?  Can you do it as the user running uwsgi?

-Jim

Anyone can help
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/DfeDT6AyEmg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

Áureo Dias Neto

unread,
Feb 8, 2017, 8:40:49 AM2/8/17
to web...@googlegroups.com
i dont want mysql, i use sqlite.. how to desactive mysqldb?

and if is permission, how to set, and what's the paths?

Jim Steil

unread,
Feb 8, 2017, 8:49:55 AM2/8/17
to web...@googlegroups.com
Is MySQLdb installed on the server?


Also, was that they entire uwsgi log?  If not, can you upload it?

-Jim

Áureo Dias Neto

unread,
Feb 8, 2017, 8:55:07 AM2/8/17
to web...@googlegroups.com
How to check if mysqldb is installed ? i dont need this for sqlite, right?

i will check now the log and reupload it, thanks

Jim Steil

unread,
Feb 8, 2017, 9:10:18 AM2/8/17
to web...@googlegroups.com
Open a python shell

import MySQLdb

Does it work or give you an error?

-Jim

Jim Steil

unread,
Feb 8, 2017, 9:11:12 AM2/8/17
to web...@googlegroups.com
Or, from a linux shell type:

pip list

To see what packages are installed.

Anyone else know how to disable MySQLdb in web2py?

-Jim

Áureo Dias Neto

unread,
Feb 8, 2017, 9:25:35 AM2/8/17
to web...@googlegroups.com
on a python shell the import work.. 

from the command 'pip list' :  pip: command not found

Áureo Dias Neto

unread,
Feb 8, 2017, 9:29:04 AM2/8/17
to web...@googlegroups.com
and the log is only this 
log.png

Áureo Dias Neto

unread,
Feb 8, 2017, 10:04:45 AM2/8/17
to web...@googlegroups.com
I restart the nginx, and it is the new log file
uwsgi.log

Jim Steil

unread,
Feb 8, 2017, 10:26:14 AM2/8/17
to web...@googlegroups.com
Looks like an issue with paste.deploy here.  If it were me I'd try reinstalling uwsgi.  Did you use a web2py script to install everything on centos?  I'm more of an ubuntu guy and am not familiar with the specifics of a centos install or how to get web2py on it.

-Jim

Áureo Dias Neto

unread,
Feb 9, 2017, 5:20:32 AM2/9/17
to web...@googlegroups.com
Guys, after analyze the whm panel, i found the problem, after any reboot os the server, the http_ssl start with the system.. the problem is this. after i remove the module, nginx can work again..

thanks and sorry for this!
Reply all
Reply to author
Forward
0 new messages