Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Version is 8.2.6 on nextcloud:26.0.2-fpm #2005

Closed
JackBailey opened this issue Jun 8, 2023 · 9 comments
Closed

PHP Version is 8.2.6 on nextcloud:26.0.2-fpm #2005

JackBailey opened this issue Jun 8, 2023 · 9 comments

Comments

@JackBailey
Copy link

I'm using nextcloud:26.0.2-fpm with the following Dockerfile:

FROM nextcloud:26.0.2-fpm
USER root
RUN apt-get update && apt-get install -y ffmpeg

USER www-data

However, when nextcloud starts I get the following error:

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

How do I resolve this? I haven't changed anything except going from 26.0.1 to 26.0.2 and it appears to have this issue with either version.

@pganansia
Copy link

I have also the same problem with linuxserver/nextcloud:latest
Is there someone who has an idea or a solution ?
Rgds

@J0WI
Copy link
Contributor

J0WI commented Jun 13, 2023

@JackBailey
Copy link
Author

It's weird as version 8.2.6 does match PHP>=8.2

@pganansia
Copy link

It is written "This version of Nextcloud is not compatible with PHP>=8.2."
It means Next cloud has to use a php version < 8.2

@JackBailey
Copy link
Author

Oh yep oops, ignore my message lol

@jmigual
Copy link

jmigual commented Jun 18, 2023

I've checked my /var/www/html/version.php and it has the following content:

<?php
$OC_Version = array(25,0,6,1);
$OC_VersionString = '25.0.6';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
  'nextcloud' =>
  array (
    '24.0' => true,
    '25.0' => true,
  ),
  'owncloud' =>
  array (
    '10.11' => true,
  ),
);
$OC_Build = '2023-04-19T15:56:33+00:00 df9a14d1d63ad8f46d65c19c67736ef922bdbdfe';
$vendor = 'nextcloud';

So, somehow the upgrade process is never triggered.

@jmigual
Copy link

jmigual commented Jun 18, 2023

Okay I solved it by adding the following to the docker call: NEXTCLOUD_UPDATE=1 this forces the update

@JackBailey
Copy link
Author

Yep looks like nextcloud just needed an update either ran by that flag or docker exec -it nextcloud updater.phar, fixed it for me.

@ghost
Copy link

ghost commented Sep 9, 2023

This problem still presents itself for me on 26.0.5-fpm

/var/www/html $ ./occ 
This version of Nextcloud is not compatible with PHP>=8.2.<br/>You are currently running 8.2.10./var/www/html $ 

The env var is also set. I'll just stick to nextcloud v25 for now and abort the update

/var/www/html $ echo $NEXTCLOUD_UPDATE
1

Edit: Nope, that won't work

Can't start Nextcloud because the version of the data (26.0.5.1) is higher than the docker image version (25.0.10.1) and downgrading is not supported. Are you sure you have pulled the newest image version?

Edit2: Dunno what happened, but I went from 26, to 25, and back to 26, the auto-update didn't work, but ./occ update finally worked 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants