Ok.
SSH to the server, and then:
cd /var/discourse ./launcher enter app rails c Discourse.disable_readonly_mode