Nextcloud version (eg, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Debian 11.6
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.54
PHP version (eg, 7.4): 8.1.16
The issue you are facing: After upgrading to the latest docker image, I am getting an error message “This version of Nextcloud is not compatible with PHP>=8.2.”.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- docker stop my_cloud
- docker rm my_cloud
- docker pull nextcloud:latest
- docker create --name my_cloud --volume $ROOT/html/:/var/www/html/ nextcloud:latest
- docker start
The output of your Nextcloud log in Admin > Logging: N/A - Can’t get into the web interface.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => 'some_id',
'passwordsalt' => 'some_salt',
'secret' => 'some_secret',
'trusted_domains' =>
array (
0 => 'my_domain',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.3.2',
'overwrite.cli.url' => 'https://my_domain',
'installed' => true,
'default_phone_region' => 'us',
'maintenance' => false,
'dbname' => 'my_cloud',
'dbhost' => 'mysql',
'dbuser' => 'cloud_user',
'dbpassword' => 'NotTheRealPass',
'mysql.utf8mb4' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'support',
'mail_domain' => 'my_domain',
'mail_smtphost' => 'smtp.my_domain',
'mail_smtpport' => '587',
'simpleSignUpLink.shown' => false,
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
0 => 'admin',
),
'theme' => '',
'loglevel' => 2,
'updater.secret' => 'some_secret',
);
I tried to recreate our docker container which has /var/www/html/ mounted to a local directory. It looks like creating the container from the latest image updated everything but the data in the volume, which I believe to be expected docker behavior. As a result, it looks like I got a new version of PHP, without actually having updated Nextcloud itself.
Next time I tried to connect to Nextcloud, I got an error message: “This version of Nextcloud is not compatible with PHP>=8.2.”.
What is the correct approach to upgrading a container that has all of /var/www/html/ in a volume?
Thanks.