How to downgrade Nextcloud? (I understand Nextcloud does not support it. But it has to be done)

Steps to replicate it:

  1. Update from Nextcloud 13 to 14.

  2. cd /var/www/html/nextcloud

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

    An unhandled exception has been thrown:
    OCP\AutoloadNotAllowedException: Autoload path not allowed: /var/www/html/nextcloud/apps/zimbradrive/lib/auth/zimbrausersbackend.php in /var/www/html/nextcloud/lib/autoloader.php:137
    Stack trace:
    #0 /var/www/html/nextcloud/lib/autoloader.php(162): OC\Autoloader->isValidPath(’/var/www/html/n…’)
    #1 [internal function]: OC\Autoloader->load(‘OCA\ZimbraDrive…’)
    #2 [internal function]: spl_autoload_call(‘OCA\ZimbraDrive…’)
    #3 /var/www/html/nextcloud/lib/private/legacy/user.php(138): class_exists(‘OCA\ZimbraDrive…’)
    #4 /var/www/html/nextcloud/lib/base.php(721): OC_User::setupBackends()
    #5 /var/www/html/nextcloud/lib/base.php(1068): OC::init()
    #6 /var/www/html/nextcloud/console.php(46): require_once(’/var/www/html/n…’)
    #7 /var/www/html/nextcloud/occ(11): require_once(’/var/www/html/n…’)
    #8 {main}root@cloud:/var/www/html/nextcloud# cd lib

I rely heavily on Zimbra for mail server and Nextcloud for cloud. Then, I found Deck. I immediately dump Trello over Deck. Then, I found Calendar. Then, I found Mail. I decide to update to Nextcloud 14. It’s a death sentence.

Zimbra-Nextcloud-OnlyOffice Document Server is a crucial apps for me as of right now.

Did you run the occ command to upgrade first ?

sudo -u www-data php -f /var/www/html/nextcloud/occ upgrade

If the answer is yes so you should disable (temporary) the zimbra app. Leave the maintenance mode. If it’s working then upgrade to the v15 and so on to v16. Then give a try back to the zimbra app

This link give the answer :

You should disable maintenance mode from the config.php file not from the command line.

So modify in /var/www/html/nextcloud/config/config.php
The line maintenance_mode from true to false.
And refresh your browser.

Thank you.

with zimbra drive enable maintaince mode give us internal server errror

sudo -u www-data php /var/www/nextcloud/occ app:disable zimbradrive
zimbradrive disabled
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
Maintenance mode enabled