Nextcloud version 23.0.3.2
Operating system and version: Ubuntu 20.04.6 LTS
Apache or nginx version: 2.4.41
PHP version: 8.2.15
The issue you are facing: Every time I try to update my docker image, through the web interface, or manually, or even starting from scratch, I get the same error which eventually does not allow my next cloud to load. It seems my Docker image is always stuck on 23.0.3.2.
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- Running web update or
- Running manual update or
- Starting new docker image from scratch
The output of your Nextcloud log in Admin > Logging:
Can't start Nextcloud because the version of the data (23.0.12.2) is higher than the docker image version (23.0.3.2) and downgrading is not supported. Are you sure you have pulled the newest image version?
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocybd3gf745v',
'passwordsalt' => 'XXXXXX',
'secret' => 'XXXXXX',
'trusted_domains' =>
array (
0 => 'XXXXXXXXX',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'sqlite3',
'version' => '23.0.3.2',
'overwrite.cli.url' => 'XXXXXXXXX',
'installed' => true,
);
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.
cat nextcloud.log
{"reqId":"4Ypil1PhpjrGpKR0Qg78","level":2,"time":"2024-02-25T06:44:01+00:00","remoteAddr":"XXXXX","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15","version":""}
Here is my docker-compose.yml:
version: '3'
volumes:
nextcloud-data:
nextcloud-db:
npm-data:
npm-ssl:
npm-db:
networks:
frontend:
backend:
services:
nextcloud-app:
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- nextcloud-data:/var/www/html
environment:
- MYSQL_PASSWORD=xxx
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextcloud-db
networks:
- frontend
- backend
nextcloud-db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- nextcloud-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxx
- MYSQL_PASSWORD=xxx
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- OVERWRITEPROTOCOL=https
networks:
- backend
npm-app:
image: jc21/nginx-proxy-manager:latest
restart: always
ports:
- "80:80"
- "81:81"
- "443:443"
environment:
- DB_MYSQL_HOST=npm-db
- DB_MYSQL_PORT=3306
- DB_MYSQL_USER=npm
- DB_MYSQL_PASSWORD=xxx
- DB_MYSQL_NAME=npm
volumes:
- npm-data:/data
- npm-ssl:/etc/letsencrypt
networks:
- frontend
- backend
npm-db:
image: jc21/mariadb-aria:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=xxx
- MYSQL_DATABASE=npm
- MYSQL_USER=npm
- MYSQL_PASSWORD=xxx
volumes:
- npm-db:/var/lib/mysql
networks:
- backend