Closed nagmat84 closed 2 months ago
I noticed that the data directory contains a .htaccess file now which hasn't been there before (it seems to be new since NC 29). The file .ocdata exists, has proper ownership and size zero. However from looking at the new .htaccess file it is obvious, that access is denied to everything inside the data directory.
That .htaccess
file is not new.
note: i haven't yet figured out for sure which client causes the error, but I suspect the Linux client)
Your web server access log will have the attempts in it with the IP address as well as the user agent info so you can confirm where it's coming from. If you can't find that, please use the help forum: https://help.nextcloud.com
NC29:
test-nc29-app-1 | [Sun Jul 14 14:19:29.077206 2024] [access_compat:error] [pid 85] [client 192.168.128.1:53632] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
test-nc29-app-1 | 192.168.128.1 - - [14/Jul/2024:14:19:29 +0000] "HEAD /data/.ocdata HTTP/1.1" 404 2174 "-" "Nextcloud Server Crawler"
NC28:
test-nc28-app-1 | [Sun Jul 14 14:19:10.610063 2024] [access_compat:error] [pid 195] [client 192.168.XX.YY:49392] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
test-nc28-app-1 | 192.168.XX.YY - - [14/Jul/2024:14:19:10 +0000] "GET /data/.ocdata?t=1720966750544 HTTP/1.1" 404 15650 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
After upgrading to NC 29, my Apache log is flooded The error did not exist on NC 28.
It's likely being generated by the data directory security setup check (well, or bots).
Each access of the setup checks (e.g. Administration settings->Overview or accessing the checks via occ
) will trigger it. In v28 the same thing happened. The only difference was the query came from the browser instead of from the server itself (i.e. the checks are server-side now).
Are you perhaps triggering setup checks automatically?
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
⚠️ This issue respects the following points: ⚠️
Bug description
After upgrading to NC 29, my Apache log is flooded with
The error did not exist on NC 28. I noticed that the
data
directory contains a.htaccess
file now which hasn't been there before (it seems to be new since NC 29). The file.ocdata
exists, has proper ownership and size zero. However from looking at the new.htaccess
file it is obvious, that access is denied to everything inside thedata
directory.What is the purpose of the file
.ocdata
? What client tries to access that file and why? Is this a bug in the new.htaccess
file because rights are set too restrictive and should be relaxed for.ocdata
or is this a client bug which tries to access a file it shouldn't anymore?I am using the Web UI, the Windows NC client, the Android client and the Linux NC client 3.13.0 to access my NC account.
Steps to reproduce
Expected behavior
No error in Apache log.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Other
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response