darkpixlz
(darkpixlz)
November 10, 2022, 5:02am
1
Hello,
Recently, while upgrading, my site starts returning a 500.
This only happens while the site is upgrading.
This is the first time this has happened, but I would like to know how to prevent it, as an inconclusive page that mostly just says “Oops” isn’t exactly useful to users, and creates downtime.
1 Like
Jagster
(Jakke Lehtonen)
November 10, 2022, 5:22am
2
It has been that way all the time Because when it is under upgrading it is situation of error 500.
And that’s why we can do this:
This guide is intended for advanced users, who are already using nginx outside the docker container. By following this guide you make your setup more complicated and will loose some speed benefits like HTTP2 if you’re not running Ubuntu 16.04 or later. Proceed with caution!
When Discourse is rebuilding or starting up, your users will usually either see an error message from their browser…
[image]
…or a not-so-nice 502 error message from Nginx:
[image]
If you’re a perfectionist l…
Or am I missing now something?
darkpixlz
(darkpixlz)
November 10, 2022, 5:22am
3
Yeah, I think you’re missing something.
Before I was able to use my site while it was upgrading. Rebuilding isn’t the case but upgrading my site would stay alive
Am I wrong?
1 Like
merefield
(Robert)
November 10, 2022, 11:20am
4
I’ve seen this recently and it worried me. This is not normal. It prompted me to perform an “offline” command line upgrade (which was annoying)
I will keep an eye out for it happening again.
3 Likes