Best upgrade path from version 15 with legacy encryption

Nextcloud version (eg, 20.0.5): 15
Operating system and version (eg, Ubuntu 20.04): Ubuntu

The issue you are facing:
Hello everyone!

I inherited a nextcloud environment thats been neglected far too long. I am perfectly capable of upgrading most of it to modern era, but nextcloud is a bit of a hesitation.

Currently its running “bare metal” (so its no docker instance) and its neglect is beginning to show. Since its version 15, i cant upgrade it through the web interface anymore. And since its using the legacy encryption im a bit “afraid” of doing an upgrade to version 24.

Can anyone tell me what the best way forward is? ultimatly it would be nice if i could move it to docker, but heh, i’ll be glad enough if i can upgrade it to the last supported version (version 20?)

You must upgrade all versions e.g. 16, 17, 18, 19, 20, … or if possible 21, 22, 23, 24 .

If you have only data and you can re-create other stuff e.g. shares, contacts, … then i recommend to backup all data, install a new Nextcloud (e.g. Docker), create the users, copy the data back in their directorys and
sudo -u www-data php occ files:scan --all
that your Nextcloud knows all copied files.
E.g. all shares are lost.

Ladder, it is to be feared that your upgrade will go wrong somewhere. Then you will have to reinstall anyway.

You can use e.g. the Nextcloud client for Windows to sync all files from your Nextcloud 15 and copy to another location (backup). You can also upload the files to the new Nextcloud 24 again via the client. (video)

1 Like

unfortunatly, its too big to just start over :slight_smile: the sync client only allows you to sync your own files, not that of others i assume? if i could somehow move everyone’s files into a subdirectory of my own account, then yes maybe this could work :slight_smile:

For now, i suppose i’ll just have to spend a few hours doing the manual upgrades to every version :slight_smile:

Nothing better for a sleepless night i suppose :slight_smile:
Thank you!

I think then the better way is to use the first part of my post above. Copy/backup all files, install an new Nextcloud, create the users again, restore the files to the directorys and use
sudo -u www-data php occ files:scan --all
that Nextcloud knows the copied files. You will lose all shares and other informations stored in your old database.

1 Like

Sorry do you use server-side-encryption? Unfortunately, I am not familiar with it. But could lead to other problems.

yeah, i was afraid of that :slight_smile: i suppose a new install is the only way to go :slight_smile: thanks!

If you host all data on your own server and not e.g. at an external S3 Server-side encryption makes no really sense. The admin of the nextcloud server always has theoretical access to the unencrypted data. The access is only a little more difficult and not so obvious.

like i said… i inhereted it… i didn’t implement it :wink:

Sorry. My english is not so good. Some words like “inhereted” i overead. :wink:

But if you use encryption, you will probably have to get rid of it first.

Not tested: video
Make a backup first.
Mabe a big risk.

If every user copy the files self (Nextcloud Client) than you do not need this action.

1 Like