-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed as not planned
Description
When upgrading from Nextcloud 28 to Nextcloud 29 I got these warnings. As they relate to stuff inside of the image and no plugins or configs, which are thought to be adjusted, I thought this might be wrong (or it would not be a warning, would it?):
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Initializing finished
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/apcu.config.php differs from the latest version of this image at /usr/src/nextcloud/config/apcu.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/apps.config.php differs from the latest version of this image at /usr/src/nextcloud/config/apps.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/autoconfig.php differs from the latest version of this image at /usr/src/nextcloud/config/autoconfig.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/redis.config.php differs from the latest version of this image at /usr/src/nextcloud/config/redis.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/reverse-proxy.config.php differs from the latest version of this image at /usr/src/nextcloud/config/reverse-proxy.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/s3.config.php differs from the latest version of this image at /usr/src/nextcloud/config/s3.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/smtp.config.php differs from the latest version of this image at /usr/src/nextcloud/config/smtp.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/swift.config.php differs from the latest version of this image at /usr/src/nextcloud/config/swift.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: Warning: /var/www/html/config/upgrade-disable-web.config.php differs from the latest version of this image at /usr/src/nextcloud/config/upgrade-disable-web.config.php
Jul 19 01:46:44 *********** nextcloud_nc_1[16123]: => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
Compose file (with podman-compose):
version: '3.7'
services:
caddy:
image: docker.io/caddy
restart: unless-stopped
ports:
- "1001:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro,z
- caddy_data:/data
- caddy_config:/config
- nc_data:/var/www/html
networks:
- caddynet
depends_on:
- nc
healthcheck:
# https://stackoverflow.com/a/47722899/5008962
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/status.php", "||", "exit", "1"]
interval: 1m30s
timeout: 30s
retries: 3
start_period: 40s
labels:
- io.containers.autoupdate=registry
nc:
image: docker.io/nextcloud:29-fpm
restart: unless-stopped
volumes: &nextcloud_volumes
- nc_data:/var/www/html
# better tmp fs for better performance, see https://github.com/nextcloud/recognize#tmp
- type: tmpfs
target: /tmp:exec
- type: bind
source: /var/mnt/external/@/nextcloud
target: /var/mnt/userdata:z
- type: bind
source: ${HOME:?HOME variable missing}/nextcloud_config
target: /var/www/html/config:z
# workaround for php-fpm issue https://github.com/nextcloud/docker/pull/1766
- type: bind
source: ./php-fpm-config/zz-prevent-servererror-onload.conf
target: /usr/local/etc/php-fpm.d/zz-prevent-servererror-onload.conf:z
networks:
- caddynet
- redisnet
- dbnet
environment: &nextcloud_environment
- REDIS_HOST=redis
- REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable missing}
- MYSQL_HOST=db
env_file: &nextcloud_env_file
- db-shared.env
depends_on: &nextcloud_depends_on
- db
- redis
expose:
- 9000
labels:
- io.containers.autoupdate=registry
redis:
image: docker.io/redis:alpine
command: redis-server --requirepass ${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable missing}
restart: unless-stopped
networks:
- redisnet
expose:
- 6379
labels:
- io.containers.autoupdate=registry
cron:
image: docker.io/nextcloud:29-fpm
restart: unless-stopped
volumes: *nextcloud_volumes
entrypoint: /cron.sh
networks:
- redisnet
- dbnet
environment: *nextcloud_environment
env_file: *nextcloud_env_file
depends_on: *nextcloud_depends_on
labels:
- io.containers.autoupdate=registry
db:
image: docker.io/mariadb:10.6
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
restart: unless-stopped
volumes:
- db_data:/var/lib/mysql
# workaround for "Too many connections"
- type: bind
source: ./mariadb-config/increase-active-connections.cnf
target: /etc/mysql/conf.d/increase-active-connections.cnf:z
networks:
- dbnet
environment:
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:?MYSQL_ROOT_PASSWORD variable missing}
env_file:
- db-shared.env
expose:
- 3306
labels:
- io.containers.autoupdate=registry
volumes:
db_data:
nc_data:
caddy_data:
caddy_config:
networks:
caddynet:
dbnet:
redisnet:Startup command for testing is: podman-compose -p nextcloud down&&podman-compose --in-pod=0 -p nextcloud up -d
Config
{
"system": {
"memcache.local": "\\OC\\Memcache\\Redis",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
# ...
"app_install_overwrite": [
"ransomware_protection",
"bookmarks_fulltextsearch",
"news"
],
"maintenance_window_start": 1
}
}Images used
$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[…]
1b9b98b17158 docker.io/library/redis:alpine redis-server --re... 18 minutes ago Up 18 minutes 6379/tcp nextcloud_redis_1
e3b3df7d8cd7 docker.io/library/mariadb:10.6 --transaction-iso... 18 minutes ago Up 18 minutes 3306/tcp nextcloud_db_1
20ca0cfb875e docker.io/library/nextcloud:29-fpm php-fpm 18 minutes ago Up 18 minutes 9000/tcp nextcloud_nc_1
e91d4a1132e1 docker.io/library/nextcloud:29-fpm 18 minutes ago Up 17 minutes 9000/tcp nextcloud_cron_1
2beaab8b3406 docker.io/library/caddy:latest caddy run --confi... 17 minutes ago Up 17 minutes (healthy) 0.0.0.0:1001->80/tcp, 80/tcp, 443/udp, 443/tcp, 2019/tcp nextcloud_caddy_1
$ podman inspect nextcloud_nc_1
[
{
"Id": "20ca0cfb875e2f068c24c50167b9b74ddc18c3dd400ae4ca7093b4f97c144f58",
"Created": "2024-07-19T01:43:08.855975341+02:00",
"Path": "/entrypoint.sh",
"Args": [
"php-fpm"
],
"State": {
"OciVersion": "1.2.0",
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 16125,
"ConmonPid": 16123,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-07-19T01:43:20.167168212+02:00",
"FinishedAt": "0001-01-01T00:00:00Z",
"CgroupPath": "/user.slice/user-1002.slice/user@1002.service/user.slice/libpod-20ca0cfb875e2f068c24c50167b9b74ddc18c3dd400ae4ca7093b4f97c144f58.scope",
"CheckpointedAt": "0001-01-01T00:00:00Z",
"RestoredAt": "0001-01-01T00:00:00Z"
},
"Image": "ef280332235c73485674637060ffbe0154d3d60a7da345114e0424dca9da15e6",
"ImageDigest": "sha256:d2dc74b2ce5fc6b06e1bf454320bb6388817757b41314a0214af4eac278a3c42",
"ImageName": "docker.io/library/nextcloud:29-fpm",
[…]System
$ podman --version
podman version 5.1.1
$ podman-compose --version
podman-compose version 1.2.0
podman version 5.1.1
$ rpm-ostree status -b
[…]
● fedora:fedora/x86_64/coreos/stable
Version: 40.20240701.3.0 (2024-07-16T16:03:29Z)
BaseCommit: 45982eca152d020f23a547813538939e9bfdcfefc8c059e88970d1bbf4ada0bb
GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
LayeredPackages: ***Fedora CoreOS 40
Expected result
IMHO no warnings about such a file should be issued if I am using an official container image. In such an image, I expect all files to pass the validity check for obvious reasons… this warning is thus somewhat disturbing.
Current result
Warning, see above
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels