Nextcloud stuck in maintenance mode (FreeNAS)

Nextcloud version (14.03 rc1):
Operating system and version (FreeNAS 11.2 beta 3):
Apache or nginx version (Apache 2.4.?):
PHP version (7.?):

The issue you are facing: Stuck in maintenance mode

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Upgrade Nextcloud via web interface
  2. Tell Nextcloud you wanna keep maintenance mode active so you can use the command line
  3. Realize you can’t use the command line tool cause you’re running FreeNAS
  4. There should be a warning to users that this will lock them out of Nextcloud server. Grr.

I’m relatively new to FreeNAS and Nextcloud. What I am after is simply the command I need to enter on the console for Nextcloud to exit maintenance mode. I’ve done some looking around, but it seems people mostly aren’t curious enough to leave maintenance mode active to see this command line tool the people at Nextcloud mention. Lesson learned. Grr.

I’m been using Terminal on my Mac for some FreeNAS stuff. I know that in order to access the Nextcloud console I need to enter iocage console nextcloud.

Found something regarding a ‘locate’ command. Interesting… and something about editing a config.php file to turn maintenance mode off.

[root@nextcloud ~]# locate config.php
(removed six other results)

Now to figure out which one.

Find the line that says 'maintenance' =>; true,, change it to false.


Perhaps a bit of a follow up: Manually updating NC15 beta to RC2