Migrating from ownCloud 10.x to NextCloud 12.x while using Docker containers

While there are plenty of examples of how to migrate a traditional setup, I can’t seem to find much help migrating to NextCloud using Docker containers. My setup is deployed into a Kubernetes cluster.

Has anyone been able to accomplish migrating in this scenario? I tried running nextcloud:12.0.13 on top of the existing ownCloud volumes and database, but that didn’t work. NextCloud thinks it’s a fresh install and keeps trying to create its database from scratch. I’d expect the official Docker container to be able to handle the upgrade, but that doesn’t seem to be the case.

This is what I get in the nextcloud container log:

Initializing nextcloud 12.0.13.2 ...
Initializing finished
New nextcloud instance
Installing with MySQL database
starting nexcloud installation
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...
Nextcloud is not installed - only a limited number of commands are available
The username is already being used
retrying install...

Thank you for any help.

2 Likes

Did you find a neat way to do this?