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…

Tagged , , , ,

2 thoughts on “How to Fix Owncloud Maintenance Mode Message Ubuntu Server

  1. 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

    1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *