Upgrade 10.3 container to 10.9.1 fails

Hi!

(Starting new thread to discuss problems with the container upgrade.)

I’ve upgraded my docker owncloud/server from 10.3.2 to 10.9.1

New container runs using old data/files plus new config. In theory, should just work.

When I runuser -u www-data php occ upgrade, I get:

Your Data directory must be an absolute path
Check the value of "datadirectory" in your configuration

Your Data directory  is invalid
Please check that the data directory contains a file ".ocdata" in its root.

Cannot create "data" directory
This can usually be fixed by <a href="https://doc.owncloud.com/server/10.9/go.php?to=admin- 
dir_permissions" target="_blank" rel="noreferrer">giving the webserver write access to the root 
directory</a>.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in 
/var/www/owncloud/lib/private/Console/Application.php:139
Stack trace:
#0 /var/www/owncloud/console.php(115): OC\Console\Application->loadCommands()
#1 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
#2 {main}

I’ve been searching all afternoon and don’t see anything obvious.

My config file points datadirectory to /mnt/data/files

I do have a .ocdata in that directory.

My /mnt/data/files directory is owned by www-data:root

Any suggestions for fixing?

Thanks,

Bobby

oot@5648fbaedc0c: /var/www/owncloud # ls -l /mnt/data/files
total 1044
drwxr-xr-x 4 www-data root 4096 Feb 20 2020 admin
drwxrwxr-x 4 www-data root 4096 Feb 27 2020 avatars
drwxr-xr-x 5 www-data root 4096 Feb 20 2020 fbd86c2e-37a0-1031-9141-7b1d55b0828a
drwxrwxr-x 2 www-data root 4096 Feb 20 2020 files_external
-rw-r–r-- 1 www-data root 145 Feb 20 2020 htaccesstest.txt
-rw-r–r-- 1 www-data root 0 Apr 27 18:37 index.html
-rw-r----- 1 www-data root 1043611 Apr 27 19:26 owncloud.log

why? you can discuss your problems in the original thread: