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

cannot upgrade to the last version #169

Closed
sarce666 opened this issue Dec 7, 2021 · 3 comments
Closed

cannot upgrade to the last version #169

sarce666 opened this issue Dec 7, 2021 · 3 comments
Labels
externalDatabase Topics related to external databases, such as mariaDB or PostgreSQL upgrades

Comments

@sarce666
Copy link

sarce666 commented Dec 7, 2021

hello

i m using the version 2.8.3
i have mariadb
when i upgrade to 2.10.2 i get this error :

Failed to install app nextcloud-services. Error: UPGRADE FAILED: cannot patch "nextcloud-services-mariadb" with kind StatefulSet: StatefulSet.apps "nextcloud-services-mariadb" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden

i understand that the statefulset cannot be upgrade but it the helm chart that create the mariadb as a stateful
how can i fix this ?

thanks

@huerlisi
Copy link

It is normally safe to delete a StatefulSet resource. Then you should be able to re-deploy.

Persisted data in PVCs, Secrets etc. is not affected. But it will create downtime between the deletion of the resource and when the resource gets recreated.

@ftab
Copy link

ftab commented Jul 21, 2022

I deleted my StatefulSet and it deleted my whole database. Not sure what went wrong there. I was on chart 2.8.2 and upgraded to chart 2.12.2, maybe upgraded too many chart versions at once? I thought I had checked everything

Luckily, my instance isn't used much, and I had a backup from last night. Highly recommend caution prior to performing a Nextcloud update through the chart.

@jessebot jessebot added the externalDatabase Topics related to external databases, such as mariaDB or PostgreSQL label Jul 26, 2024
@jessebot
Copy link
Collaborator

We'll be adding some additional info on upgrades to our docs soon in #602, and in the meantime, we recommend that you walk your upgrades forward slowly from one minor version to the next, and then to the next major version, when it comes to databases or the nextcloud docker tag. As this is an old issue from a couple of years ago, with no response from the original poster since 2021, I'm going to close it. We apologize for any confusion with this chart in the past 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
externalDatabase Topics related to external databases, such as mariaDB or PostgreSQL upgrades
Projects
None yet
Development

No branches or pull requests

4 participants