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

I’m facing this problem - I’m building my own image with docker-compose build --pull

Initially, I used nextcloud:latest which broke my compatibility with php because I didn’t update since major version 24…

In my yaml I tried using label 26.0.2-ls246:

version: ‘3’
services:
app:
image: nextcloud:26.0.2-ls246
build: .
container_name: nextcloud-app
labels:
- “com.centurylinklabs.watchtower.enable=false”
networks:
- nextcloud_network
ports:
- 444:443
depends_on:
- db
volumes:
- /srv/dev-disk-by-uuid-5802bb05-8f91-48c7-9d69-40141b872005/Appdata/nextcloud:/var/www/html
- /etc/ssl/nextcloud:/etc/ssl/nextcloud
- /etc/localtime:/etc/localtime:ro

restart: unless-stopped

db:
image: yobasystems/alpine-mariadb:latest
container_name: nextcloud-db
networks:
- nextcloud_network
volumes:
- /srv/dev-disk-by-uuid-5802bb05-8f91-48c7-9d69-40141b872005/Appdata/nextclouddb:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- PATH
env_file:
- db.env
restart: unless-stopped
networks:
nextcloud_network:

My Dockerfile:

FROM nextcloud:apache

RUN apt-get update && apt-get install -y
supervisor nano
&& rm -rf /var/lib/apt/lists/*
&& mkdir /var/log/supervisord /var/run/supervisord /etc/ssl/nextcloud

COPY supervisord.conf /

COPY setssl.sh /usr/local/bin/

RUN /usr/local/bin/setssl.sh webmaster@xxx.duckdns.org xxx.duckdns.org

# ENV NEXTCLOUD_UPDATE=1

CMD [“/usr/bin/supervisord”, “-c”, “/supervisord.conf”]

but after building and bringing container up with docker-compose up -d there ist still

NEXTCLOUD_VERSION 29.0.5

in the ENV-Section of the container (see screenshot)

  • and still the PHP-message

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

WHAT AM I DOING WRONG??

I’m confused about what you’re trying to do.

If you’re building an image, the image reference in your Dockerfile is what matters.

Also this tag looks like one for the third-party LSIO image, but your other image references suggest your using the Nextcloud project’s micro-services image (your Dockerfile appears to be using it for example). You definitely don’t want to mix images, since they have completely different structures.

My Dockerfile:

FROM nextcloud:apache

This says to load the latest (well latest you’ve pulled) of the micro-services image. I presume that isn’t what you want in your current situation.

Maybe you want nextcloud:24-apache then do a rebuild to get to the latest 24. Then bump the tag to 25 and so on incrementally?

P.S. When posting code content, use preformatted text in the editor so that it remains readable and formatted reasonably.

1 Like

Thank you, that’s the solution - I upgraded step by step by using the respective image-tag in the Dockerfile :innocent:

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.