I’m trying to debug recurring 500 Internal Server Error.
First the setup (I know this is not ideal and not the recommended deployment using docker):
- discourse 2.3.8
- ruby 2.7.2 (using the snap)
- redis-server 5:4.0.9-1ubuntu0.2 (ubuntu package)
- postgresql 10.15 (on another host)
I edited the config/environments/production.rb file to set
config.log_level = :debug
A sample of the kind of error we see (mixed with 200) can be found here (also the rest as I cannot put more than 2 links in a post): Ubuntu Pastebin
I tried to determine if a particular kind of request was generating the 500 and there is some kind of pattern indeed (see previous pastebin).
I’m failing to find a way to debug further for now.
I’m not quite sure this is a bug, and I sadly don’t have a way to reproduce. Those errors happen randomly through the day, in between 200. This might be some lock/contention issue, but without further logs, I’m not really able to find where the issue lies.
Here are the limits currently used for the process, in case this is the issue : Ubuntu Pastebin
Any help on how to debug further would be much appreciated.