You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Unsetting maintenance mode using occ doesn't work #3301
I think he used the occ config:system:set maintenance command, but in an incorrect way.
The complete command for that is: occ config:system:set maintenance --value=false --type=bool
I agree on the incorrect way I was using the commands. It feels like a bug however that setting the mode without the type option works and unsetting without does not work.
Activity
[-]Usetting maintenance mode using occ doesn't work[/-][+]Unsetting maintenance mode using occ doesn't work[/+]tflidd commentedon Jan 29, 2017
I tried to reproduce it on Nextcloud 11.0.1 with php 5.6 and 7.0 (dot-deb packages) on debian 8 with apache.
sudo -u www-data php occ maintenance:mode --on-> config/config.php, maintenance was set to
truesudo -u www-data php occ maintenance:mode --off-> config/config.php, maintenance was set to
falseOnly used the occ-command to enable and disable the maintenance mode, the value was always set correctly (without quotes around
trueorfalse).Do you still have a different php version installed on your system as well? Perhaps it's a bug with php 7.1?
nickvergessen commentedon Jan 30, 2017
I think he used the
occ config:system:set maintenancecommand, but in an incorrect way.The complete command for that is:
occ config:system:set maintenance --value=false --type=boolbertmelis commentedon Jan 31, 2017
I agree on the incorrect way I was using the commands. It feels like a bug however that setting the mode without the type option works and unsetting without does not work.
nickvergessen commentedon Jan 31, 2017
Well "setting" only works, because php says that
'true' == true, but'false' != falsegabrielklein commentedon Jan 27, 2019
The value in config.php was 'maintenance' => 'false',
(I don't know why as I have not edited this file manually.)
These commands didn't work
sudo -u www-data php occ maintenance:mode --onsudo -u www-data php occ maintenance:mode --offThis command fixed the problem (Thank you @nickvergessen for the help)
occ config:system:set maintenance --value=false --type=boolVersion: Nextcloud 15.0.2