Fix – OwnCloud is in Maintenance Mode After Upgrade

I’m running Ubuntu, I just updated my OwnCloud instance and after the install finished I opened the web GUI and it says, “This ownCloud instance is currently in maintenance mode, which may take a while”.

This ownCloud instance is currently in maintenance mode, which may take a while

Here are 2 simple methods to disable maintenance mode:

Using OCC Command

1. First change the directory to owncloud using the following command:

cd /var/www/owncloud

OwnCloud-is-in-Maintenance-Mode-After-Upgrade-2

2. Once there run:

sudo -u www-data php occ maintenance:mode --off

OwnCloud-is-in-Maintenance-Mode-After-Upgrade-1

Done! that should disable maintenance mode.

Another option is editing the config.php here is how:

Edit the Config.php

In the terminal run:

gksu gedit /var/www/owncloud/config/config.php

OwnCloud-is-in-Maintenance-Mode-After-Upgrade

You’ll be prompted to enter admin password.

OwnCloud-is-in-Maintenance-Mode-After-Upgrade-6

Now edit maintenance mode ==> false

OwnCloud-is-in-Maintenance-Mode-After-Upgrade-5

Video Tutorial:

Miguel

I started this tech blog back in 2011 as a place to write down processes I took to fix my client systems and network. Now I write some tips and tricks to help others with the tech issues that one might encounter.

You may also like...

3 Responses

  1. neil says:

    In point 2/ above there is a slight typo – a hyphen is missing in command:
    sudo -u www-data php occ maintenance:mode –off

    It should read:
    sudo -u www-data php occ maintenance:mode –off

    Thank you for this fix, I really appreciate what you do on here 🙂

    • Miguel says:

      Thanks for noticing but I dont see a difference in the command you suggest and the one I wrote.

  2. Peer says:

    In case you don’t have SSH-access to your webserver or the server is not your own
    1. Use FTP to get the file “config/config.php”
    2. Change “maintenance” to “false”
    3. Upload the new version of the file to the server