Nextcloud 26.0.5-fpm on docker throws incompatible php error (This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.9)

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26.0.5-fpm official image on dockerhub
Operating system and version (eg, Ubuntu 20.04): Docker
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): 8.2.9

The issue you are facing:
Updating from 25.0.6-fpm ot 26.0.5-fpm using docker. Image builds fine, but when server is started an error message appears on the hosting url:

“This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.9”

Running any command “php occ …” inside the docker container throws the same error.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Update to 26.0.5-fpm using docker
  2. Open url
  3. Observe error

The output of your Nextcloud log in Admin > Logging:

cant get any log as web ui is not accessible.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'password' => 'REDACTED',
    'port' => REDACTED,
  ),
  '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' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => REDACTED,
  'trusted_domains' =>
  array (
    0 => REDACTED,
    1 => REDACTED,
  ),
  'overwrite.cli.url' => 'http://REDACTED',
  'overwriteprotocol' => 'https',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '25.0.6.1',
  'dbname' => 'REDACTED',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'loglevel' => 1,
  'logfile' => '/var/www/html/nextcloud.log',
  'logdateformat' => 'F d, Y H:i:s',
  'memories.exiftool' => '/var/www/html/custom_apps/memories/exiftool-bin/exiftool-amd64-glibc',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/exiftool-bin/go-vod-amd64',
  'preview_max_memory' => 4096,
  'preview_max_filesize_image' => 256,
  'memories.vod.disable' => false,
  'memories.vod.ffmpeg' => '/usr/local/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/local/bin/ffprobe',
  'maintenance' => false,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\HEIC',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\TXT',
    8 => 'OC\\Preview\\MarkDown',
    9 => 'OC\\Preview\\Image',
    10 => 'OC\\Preview\\Movie',
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memories.vod.vaapi' => true,
  'memories.video_default_quality' => '-1',
  'updater.release.channel' => 'beta',
);

The output of your Apache/nginx/system log in /var/log/____:


PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

I wanted to update here. I have solved the issue by rebuilding removing the cron job from the docker-compose file and removing all other commands except pulling the nextcloud:26.0.5-fpm docker image. This somehow triggered the update.