User shantaram reported an “Oops” error on their Discourse forum when page requests exceeded 5 seconds, suspecting a timeout restriction. sam suggested the issue stemmed from their custom Nginx proxy configuration. shantaram confirmed using an external Nginx proxy and shared configs, noting the site worked normally under 5 seconds but failed beyond that. They suspected a hard timeout limit, but Falco advised testing without the proxy to isolate the issue. shantaram explained they needed the proxy due to port constraints. Testing inside the container with curl revealed the same error, pointing to backend delays. shantaram then suspected slow database performance and increased DISCOURSE_DB_TIMEOUT to 10000 and DISCOURSE_DB_CONNECT_TIMEOUT to 10, which extended the timeout to 10 seconds — confirming the timeout was DB-related. Ultimately, shantaram resolved the issue by migrating the database from Windows to Linux for better performance and thanked the community, praising Discourse. The root cause was not the Nginx proxy but slow database response triggering Discourse’s default 5-second DB timeout.
we always get the error Oops
Is there any restriction about a request exceed 5 seconds, or any other restriction?thanks!
Oops
The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.
Detailed information about the error was logged, and an automatic notification generated. We’ll take a look at it.
No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site’s feedback category.
so all the config can work right.
but when the request exceed 5 seconds we just get Oops
I doubt there is some restiction about the reqeust exceed 5 seconds.
curl http://localhost:3000/forum then I get the same error
---
# # # curl http://localhost:3000/forum
<!DOCTYPE html>
<html>
<head>
<title>Oops - Error 500</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>Oops</h1>
<p>The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.</p>
<p>Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.</p>
<p>No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.</p>
</body>
</html>
maybe there are some reason about the db
I find the db is very slowly.
I have changed the db_timeout = 10 ,then we get error after 10 seconds.
maybe I should let the db fast.