MIgrate Nextcloud from Docker to Openshift

I have initially installed Nextcloud to a docker environment and it’s working fine. Now, my company have purchased Openshift and I was demanaded to migrate Nextcloud to it. I have cloned MYSQL database so new installation can point to it and also copied nextcloud (var www html) and data (var www data) files to a PVC. The PVC uses a Storage Class that maps storage from Netapp via NFS. With all that set, when I try to start the pod I get the error “/entrypoint.sh: 137: cannot create /var/www/html/nextcloud-init-sync.lock: Permission denied”. I’m currently running “Nextcloud Hub 9 (30.0.2)” in Docker env.

It’s pretty much what it says. There is some permission matter with your NFS/underlying storage setup or ownership in the new environment.

Another possibility: Are you using the same image variant (i.e. alpine versus non-alpine) you were previously? I only ask because they use different UIDs.

I could migrate it, I’ve used rsync -a instead of tar, that seemed to carry all permissions in a proper way. Thanks @jtr . And yes, same image.