I rebuilt my website, and when I opened the browser, I saw the following message:
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.
I remember that before this issue appeared, I clicked on the AI plugin configuration page.
For the containers/app.yml file, I only added the following at the end:
params:
version: esr
Now I’ve tried rebuilding multiple times, but every time I refresh, I get this error message.
Now, I’m not a specialist, so I don’t know if what you did in your app.yml file is correct, but to get your forum running again as quickly as possible, remove your changes and run a rebuild.
Maybe it’s a downgrade issue. I redeployed this server a few weeks ago while testing features for a specific version, but I now believe ESR is the best practice. Then I ran into this Oops.
However, it was running smoothly for several weeks before, and suddenly started throwing errors just now.
How can I resolve this? Is upgrading to the latest version the only option?
Unfortunately downgrading is not supported. So yes, you’ll either need to restore an earlier backup from when you were running ESR, or you’ll need to run latest until the next ESR release (July)
Yes, exactly. The database schema is changed regularly. So if your database schema has already been updated to latest, it will be incompatible with the older code on ESR.
So, if I install a new server, since the default standard installation is the latest version, attempting to deploy ESR at this point could lead to this issue.
If it’s an older server with a version like 3.5.0, upgrading to ESR should work without problems, correct?
Alternatively, I could delete all the data and then deploy the ESR version, which should also work.
This scenario applies when the data is inconsequential or on a newly deployed server that hasn’t generated any data yet. It will result in the loss of all data, so please proceed with caution!!!
Here are the specific steps:
# Delete the mount directory
rm -rf /var/discourse/shared/standalone
# Destroy the old container (I'm not sure if this step is necessary)
./launcher destroy app
# Modify app.yml, then rebuild the container
./launcher rebuild app