Open dafi87 opened 12 months ago
Hi @dafi87 - Thanks for the report.
Use correct path like /remote.php/dav/files, not /files
Well neither of those would be the correct path. :) But, yeah, something seems not right.
It should be the full absolute path, for the actual files, on your underlying filesystem in most cases.
Unless you're using Object Storage maybe.
Is Nextcloud itself as well as the configured datadirectory
all under /abc/
(or /dfhg/
from your other log entries) on the underlying OS filesystem? No parent folders?
Also, any symbolic links involved anywhere?
Thanks for looking into it!
Yes, the datadirectory is at /var/www/vhosts/abc/nextcloud/data and nextcloud itself under /var/www/vhosts/abc/nextcloud
open_basedir is set as /var/www/vhosts/abc/:/tmp/:/proc/
Yes, files can be accessed via web, NC client for Windows and I also tested via WebDAV. Right now I can not say what exactly triggers these PHP errors.
We updated to NC27 coming from 24 or 25 and the error was not being logged with the old version. I'm sorry for not being able to exactly say what the old version was.
On my side, the error appeared with the upgrade to 28.0.1:
file_exists(): open_basedir restriction in effect. File(/files) is not within the allowed path(s): (/<wwwroot>/:/tmp/:/dev/urandom:/usr/bin/clamscan:/proc/meminfo:/proc/cpuinfo) at /<wwwroot>/<subdomain_docroot>/3rdparty/sabre/dav/lib/DAV/FS/Directory.php#78
I have the same problem. I think it started with the update to 26 and it's still there. My NextCloud is on a hosted webserver (Cloud86). I have no problems reaching files (with Mac client, in browser, on Android app). I don't use a news-app. The error is about "File(/backup/), but I don't use a back-up app in NextCloud, so unless that's a background task, I don't know where it comes from.
file_exists(): open_basedir restriction in effect. File(/backup/) is not within the allowed path(s): (/var/www/vhosts/my-root-domain/:/tmp/) at /var/www/vhosts/my-root-domain/my-subdomain/myfolder-with-nextcloud/lib/private/Files/Storage/Local.php#187
Also tried setting open-basedir to none in the PHP settings (and the two other available options) but that didn't make any difference. Asked my webhoster, but they couldn't help.
I see the same issue in 29.0.1 on Ubuntu 22.04.LTS with PHP 8.1 FPM and nginx:
file_exists(): open_basedir restriction in effect. File(/files) is not within the allowed path(s): (/var/www/nextcloud:/dev/urandom:/tmp:/proc/meminfo:/proc/cpuinfo) at /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/FS/Directory.php#78
To my knowledge, there are no issues accessing files, etc.
⚠️ This issue respects the following points: ⚠️
Bug description
Log is flooded with
file_exists(): open_basedir restriction in effect. File(/files) is not within the allowed path(s): (/abc/:/tmp/:/proc/) at /abc/xyz/nextcloud/3rdparty/sabre/dav/lib/DAV/FS/Directory.php#78
Steps to reproduce
Expected behavior
Use correct path like /remote.php/dav/files, not /files
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
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?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
Additional info
There was an older closed bug report here: https://github.com/nextcloud/server/issues/30479