Closed leolivier closed 3 weeks ago
I didn't rerun the scan after changing the file owner, now the error disappeared, but still I should not have to change myself the owner of this file.
This file isn't created by Nextcloud, but by community Docker image's entrypoint.sh
How are your underlying volume mounts defined in your Docker? Either your Docker compose or command-line?
Because the resulting ownership should be more like:
-rw-r--r-- 1 root root 0 Sep 19 15:24 nextcloud-init-sync.lock
And are you by chance running Docker under a different user or rootless?
Related: #2057
Thanks fo₹your answer @joshtrichards My docker is running as a Linux service so they are root:
UID PID PPID C STIME TTY STAT TIME CMD
root 2692 1347 0 oct.02 ? Sl 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8081 -container-ip 172.20.0.2 -container-port 80
root 2704 1347 0 oct.02 ? Sl 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8081 -container-ip 172.20.0.2 -container-port 80
and the mounts are done like this (docker compose extract):
volumes:
- nextcloud2:/var/www/html
- ./config:/var/www/html/config
- /hdd/nextcloud:/var/www/html/data
- ./apps:/var/www/html/apps
What is your underlying host OS/version, host hardware platform, libseccomp
version, and Docker Engine version?
When you restart the Nextcloud app container are there any interesting bits in the Docker logs for the container during startup?
I'm running Nextcloud on a Raspberry Pi 4 with RaspberryPi OS
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
$ dpkg-query -s libseccomp2
Package: libseccomp2
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 146
Maintainer: Kees Cook <kees@debian.org>
Architecture: arm64
Multi-Arch: same
Source: libseccomp
Version: 2.5.1-1+deb11u1
Depends: libc6 (>= 2.17)
$ docker -v
Docker version 24.0.6, build ed223bc
After a docker restart on the container, I don't get anything interesting in the logs (knowing that the error disappeared since I chmoded myself the file)
192.168.1.8 - olivier [31/Oct/2023:10:08:15 +0000] "PROPFIND /remote.php/dav/files/olivier/ HTTP/1.1" 207 1116 "-" "Mozilla/5.0 (Windows) mirall/3.10.1stable-Win64 (build 20231025) (Nextcloud, windows-10.0.22635 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
[Tue Oct 31 10:08:15.867480 2023] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully
192.168.1.8 - - [31/Oct/2023:10:08:16 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 785 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0"
Configuring Redis as session handler
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
==> but the hook folder "before-starting" is empty, so nothing to do
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 31 10:08:32.107508 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.57 (Debian) PHP/8.2.12 configured -- resuming normal operations
[Tue Oct 31 10:08:32.107656 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
Have you had this reoccur since?
(Outside of v30.0.0 which was unrelated and due to an upstream change that is fixed in the upcoming v30.0.1).
Outside of the recent regression (which we know the cause of), there haven't been any similar reports since your report.
No, I didn't... I have it currently with 30.0.0 but I don't think I had it before (although I didn't check this for quite a long time)
Alright. I'm going to close this since there haven't been other reports either so there isn't anything actionable at this point.
⚠️ This issue respects the following points: ⚠️
Bug description
I get a warning that some file don't pass the integrity checks and when I look at the details, I get:
Looking at the logs, I can see:
but this file is created by nextcloud itself in the container so it's weird Checking the file permissions inside the container:
-rw------- 1 root root 0 Sep 23 08:02 /var/www/html/nextcloud-init-sync.lock
I changed the ownership to www-data:www-data in the container and the above error disappeared but the integrity check continue to failSteps to reproduce
Expected behavior
This file should not be considered in the integrity check
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response