This is a freshly bootstrapped docker system, database folder was removed so the database is new. I want to restore from backup, but now I’m locked out of the fresh instance - how do I disable this?
I suppose I should explain what I did.
As per Sam and my upgrade issue, I needed to (after backing the site up) destroy my containers and re-bootstrap them after renaming the
/var/docker/shared/postgres_data folder. This I did, and I successfully gained access in to a fresh Discourse instance.
I enabled restore mode in settings, switched to backups tab, but the restore button was disabled on my backup files, citing ‘Restore mode is not enabled in settings’. I uploaded my backup file, which was successful, but was still unable to click the Restore button. Did a full refresh of the page (using Firefox), and the restore buttons enabled. I started the restore of my most recent backup.
It just sat on the log screen with the perpetual circle, with the last entry being [Creating Indexes] or something similar.
Using Chrome, I attempted to access the site, it was more or less back to normal, but missing a whole bunch of site settings and customized CSS, although there was a system message saying that the restore was complete.
I then went back to the backups tab (using Chrome), and wanted to try restoring again, but the restore buttons are again disabled, citing that ‘Restore is disabled in site settings’. I checked, and it IS enabled. So I tried unchecking it, and re-setting it, full re-freshing the page, but the Restore buttons would not enable under Chrome. I figured it might be because the site is active, so I clicked the ‘Enable Read Only Mode’. Nope, still no luck with the Restore buttons.
I then decided to start again from scratch. Destroyed the containers, deleted the postgres_data folder, and re-bootstrapped everything, only to be presented with ‘Login is disabled while the site is in read-only mode’ issue.