Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to process query" errors #31

Open
rosnfeld opened this issue Feb 10, 2014 · 8 comments
Open

"Failed to process query" errors #31

rosnfeld opened this issue Feb 10, 2014 · 8 comments
Assignees

Comments

@rosnfeld
Copy link
Owner

Production repro case: "truthtelling" search seems to hang for a long time, and then brings up an error. What is going on?

@rosnfeld rosnfeld added this to the 2014-02-15 Milestone milestone Feb 10, 2014
@rosnfeld rosnfeld self-assigned this Feb 10, 2014
@rosnfeld
Copy link
Owner Author

Looks like it is timing out..? The same query will often work if re-tried.

Indexes were rebuilt, and unfortunately not much has changed.

Concurrent users? Something about postgresql versions?

@rosnfeld
Copy link
Owner Author

Maybe the connection (rather than the query) is timing out and needs to be re-established. Once it's working, it seems to stay working. This is not something you would normally see in development unless you let it stay up for a long time.

@rosnfeld
Copy link
Owner Author

https://docs.djangoproject.com/en/1.6/ref/databases/ even says that the development server doesn't keep persistent connections, since a new thread handles each request.

@rosnfeld
Copy link
Owner Author

Unfortunately still happening.

@rosnfeld rosnfeld reopened this Feb 11, 2014
@rosnfeld
Copy link
Owner Author

Given more experience with it, I don't think it's due to the database connections going stale. Current best guess is that the postgres instance is overloaded (probably shared with too many other hobby users, or a few 'hyperactive' ones) and the jQuery ajax call is timing out.

@rosnfeld
Copy link
Owner Author

Hopefully disabling jQuery timeout fixes this, if not I can always add debug logging to the jQuery ajax error handler.

@rosnfeld
Copy link
Owner Author

Sadly just saw this again.

@rosnfeld rosnfeld reopened this Feb 13, 2014
@rosnfeld
Copy link
Owner Author

Now I suspect it's actually happening between the Heroku router and the web app:
https://devcenter.heroku.com/articles/request-timeout

The Heroku logs have various alerts with the text "[CRITICAL] WORKER TIMEOUT" in them.

Not exactly sure what the next course of action is.

@rosnfeld rosnfeld removed this from the 2014-02-18 Milestone milestone Feb 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant