In read-only mode changing the settings fails silently

This is probably related to https://meta.discourse.org/t/read-only-mode-bugs/12708.

I tried to set in the settings, Backups, allow restore. But it did not allow to save it.
Because there is no error message, I first thought something was wrong with my nginx reverse proxy, showing 405 (Method Not Allowed) errors.
It took a while until I realised that I had set the read-only mode, and that was the reason why all POST and DELETE (user logout) requests failed.

It would be good if there was an error message showing that currently changing the settings or logging out is not available due to read-only mode.

This sounds more related to the terrible error handling that we have.

2 Likes

Isn’t there a giant banner that says

An administrator enabled read-only mode. You can continue to browse the site but interactions may not work.

At the top of every page when read only mode is enabled? Isn’t that a clear enough indication?

Or are you referring to API calls not made through a web browser?

You are probably right. But even being a developer myself, I did somehow not get the connection that interactions also means administrative tasks.

But perhaps this thread might help people who wonder about the same thing…