I'm pulling my hair off with this :P

My app serves a news website. The database is in postgresql, and I'm using 
redis for caching resulting views.

I have a controller/function that renders the view of an article.
Everything works great. In fact, I have an exact same copy of the app 
running for several websites. All of them are publishing articles 
correctly, no problem at all.

Yesterday we installed a new website, that is, the same app. 
After publishing some articles, some of them are inaccessible: the browser 
just hangs until 504 gateway timeout is triggered (I'm using uwsgi with 
nginx).

I already tried:
- flusing redis cache
- using cache.ram
- using no cache at all
- activated LOGGING=True in my wsgihandler.py


The server has a lot of available resources. Also, it's not a problem of 
nginx connections or uwsgi workers, as I said, the app still renders ok all 
the articles, except for some of them.

I don't know where to look for more details. Nginx error log shows this:
2015/12/15 11:17:28 [error] 26865#0: *1817630 upstream timed out (110: 
Connection timed out) while reading response header from upstream, client: 
24.232.71.5, server: mydomain.com.ar, request: "GET /noticia/108/bbb-beta 
HTTP/1.1", upstream: "uwsgi://unix:///tmp/medios.socket", host: 
"mydomain.com.ar", referrer: "http://mydomain.com.ar/";

which is ok, considering the configuration. Basically, the error says that 
uwsgi didn't send a response to nginx within 60 seconds.
In the uwsgi log, I don't see any errors. It seems like web2py isn't 
responding with anything, but I don't know where to check what is web2py 
doing.

If there is a senior developer, I wouldn't mind to contact by private and 
agree some price for the job. I really need to find the cause of the 
problem.

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

Reply via email to