I have gone through two nextcloud installations over the course of the last 2 or so years, and both have broken for unknown reasons. One day, it just stops working, and I have to restart from ground zero and create an admin account. I am running nextcoud in a docker container, and this happens without me even restarting the container.
I don’t know what to do.
When I try making an account with the same name as the account I was using before, it just gives me an error, stating that “the user could not be created because there are already files associated with the account,” or something a little like that.
I know there’s not a lot of information here, but it’s because I haven’t been given much information either. All I have are the files from my previous installation.
My server consists of a raspberry pi 4b, running off two nvme drives attached over USB for boot and additional storage. When I update the container with docker-compose, I just do docker-compose pull and docker-compose restart. As for your second question, no. I do not think the breakage relates to updates, as I do not update the container very frequently (only 3 or 4 times per year), for fear of breakage or shifts in how the system works, like this. There are occasions that I restart the host system for maintenance and kernel updates, requiring that the container restart too, but those are not that frequent either.
Alright, I think I figured out why my nextcloud installation was breaking: I wasn’t running a few occ commands that you’re supposed to run after updates (link to documentation that told me this). Here are the commands I now run after major version updates:
To someone in the future: if these commands don’t work for you, check the occ help and occ list commands to see if there’s something else in there related to your problem. Also, look in the nextcloud manual (linked above) for things you think might have caused your problem, it’s very helpful.
Thank you for your reply, @just. I apologize if I came across as frustrated in any of my messages.