Autoclosing topic causes 50x errors

As spotted over yonder.

At least 3 instances today where, as the autoclosure time hits, the server experiences “issues” with 500, 502, 504 errors being thrown for approx 10-15minutes.


Hmm, we don’t see that here with autoclosing topics. Perhaps a volume of autoclose issue.

1 Like

We’ve had (that I can see) 4 topics autoclose today.

I think something bad is happening on your instance unrelated to this. trying to debug again now.


Let me rephrase that a bit:

Today we had multiple occasions of 504-errors with varying length over at our instance of Discourse. We noticed that every time the errors occured a topic had been closed (and sometimes people tried to write in said closed topic).
So we came to the conclusion that the closure of topics was probably the thing causing the problem.
We would appreciate if some dev could check any logs and either verify or deny our suspicion.

Thanks in advance,


Addendum: Now @Sam has already replied and seems to checking things out. I will post this regardless as phrasing it took effort

1 Like

This is super odd @codinghorror we are also seeing this on BBS and bbs has the “auto closure” in common with WTF.

I am going to dig in to this code now.


This particular issue with auto close is now fixed:

Leaving this open while I investigate if I can speed up the global consistency check


Closing as TopicUser.ensure_consistncy never fires outside of pretend_read, ensure_db_consistency is skipping it.

I still want to speed it up, but this issue is fixed

1 Like
1 Like