Categories
Technology Tutorial Ubuntu

How to Fix Owncloud Maintenance Mode Message Ubuntu Server

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:

  1. Access your server via terminal (ssh in)
  2. move to your owncloud directory.  Mine is default and if yours is too copying and pasting this should work: cd /var/www/owncloud/config
  3. edit the config.php file: sudo nano config.php
  4.  scroll down and change the word ‘true’ to ‘false’ besides maintenance mode
  5. control x to exit
  6. ‘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…