Did and upgrade to your Ubuntu packages and owncloud is mucked up? Same. So I blogged this because it happens all the time and I always forget how to do it quickly. Hope this helps you, too:
- Access your server via terminal (ssh in)
- move to your owncloud directory. Mine is default and if yours is too copying and pasting this should work: cd /var/www/owncloud/config
- edit the config.php file: sudo nano config.php
- scroll down and change the word ‘true’ to ‘false’ besides maintenance mode
- control x to exit
- ‘y’ to save it
Done.
There is apparently an even easier way to do this in a single command which I have not yet tried found here which I will try next time. Command looks like this. Again, I have *not* tested this but it looks promising:
sudo -u www-data php occ maintenance:mode –on
and I’m further guessing that you could change the last part to read –off to turn maintenance mode off…
UPDATE: I tested the above command and it couldn’t seem to find said ‘occ’ in the command. Not sure. So the top of my tutorial works, though steps 1 to 6…
This always happens to me, too. Is it intentional? I cannot find any explanation why. I am using Ubuntu Xenial, and I just upgraded owncloud to version 9.0.3.
Your occ command is almost correct. Here is what I do:
$ cd /var/www/owncloud
$ sudo -u www-data ./occ maintenance:mode –off
Howdy, thanks for the extra. that looks quite a bit easier than what I was doing. It happens pretty much every time I upgrade still. I’ll be switching to Nextcloud, it looks like so hopefully this will not happen there when I/we make the transition. Thanks for the comments and suggestion