team-container icon indicating copy to clipboard operation
team-container copied to clipboard

Exiting maintenance mode

Open Wollipolli opened this issue 3 years ago • 1 comments

My nextcloud stopped working today. It temporarily showed "Bad Gateway" and then a 404 on the Nextcloud website. I restarted the server, now it says:

Maintenance mode
This Nextcloud instance is currently in maintenance mode, which may take a while. This page will refresh itself when the instance is available again.
Contact your system administrator if this message persists or appeared unexpectedly.

How/where can I turn off the maintenance mode in this setup?

I appreciate your help!! :)

Wollipolli avatar Nov 27 '22 16:11 Wollipolli

First question: when was the last time you started the server before this error occurred? I asked this because every time, when you do a restart, kubernets will look for an update of the docker images. Since MariaDB was updated to 10.6x it goes incompatible to Nextcloud because they disabled the row compression feature needed by Nextcloud. This can be easily fixed: You have to change image: mariadb to image: mariadb:10.5 in /blob/master/team-nextcloud/templates/deploy_database.yaml To lock mariadb to Version 10.5.

After this, update the pod: First enter the folder containing the the team- container files and type: helm upgrade Nextcloud team-Nextcloud/ --values values-Nextcloud.yaml For disabling maintenance mode you have to find out the name of the nexcloud-data pod: kubectl get pods Then enter this pod: kubectl exec -c web -it nextcloud-team-nextcloud-nc-bb6744cf9-c9x2w web -- /bin/bash To disable maintenance mode use this command inside the pod: su -s /bin/bash www-data -c "php occ maintenance:mode --off" You should get the answer: Maintenance mode disabled After this you can leave the pod with exit

Tomtiger66 avatar Nov 30 '22 21:11 Tomtiger66