Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exiting maintenance mode #77

Open
Wollipolli opened this issue Nov 27, 2022 · 1 comment
Open

Exiting maintenance mode #77

Wollipolli opened this issue Nov 27, 2022 · 1 comment

Comments

@Wollipolli
Copy link

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!! :)

@Tomtiger66
Copy link

Tomtiger66 commented Nov 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants