Username is invalid because files already exist for this user - After update

Hi guys,

So after having problems to update to the latest version of Nextcloud. I decided to download the zip file and overwrite the Nextcloud folder. This led me to the initial webpage (the one where you set your user and password and database info). After that I received:

Error

Username is invalid because files already exist for this user

Ubuntu: 21.04
Apache: 2.4.46
PHP 7.4.16

Thanks

Hi @ebiscaia

Sorry, but I have to say, this was not a good idea. Upgrading is not as simple as just overwriting the existing version with the new one. There is a process that must be followed.

Do you have a backup of your previous working installation?

Hi,

No, I don’t. I will try to follow the guidelines and see if I can still recover it. Otherwise I will reinstall it. Nothing major will be lost if that is the case.

Thanks

If it’s the same major version, then it can work. Major upgrades are more problematic. But in both cases it is better to use the linked procedure in the docs.