[Bug]: Shared Collectives cause "Path not found" when scannig files with "occ files:scan --all" #42496
Open
5 of 8 tasks
Labels
3. to review
Waiting for reviews
28-feedback
bug
feature: circles
Related to circles
feature: filesystem
feature: occ
Bug description
When a Collective is shared with one or more users and you start a manual file scan using
occ files:scan --all
, this leads to the following error message for each user who is member of a Collective circle:Where
username
is the name of the affected user.Steps to reproduce
occ files:scan --all
in a terminalExpected behavior
occ files:scan --all
runs without "Path not found" error messagesInstallation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
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?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
There is a workaround to fix this. In
/server/lib/private/Files/Utils/Scanner.php
the following code needs to be added, so Collectives mounts will be ignored during a file scan:Also see https://help.nextcloud.com/t/occ-files-scan-outputs-path-not-found-for-some-users/177507/12 and
server/lib/private/Files/Utils/Scanner.php
Lines 237 to 239 in 5125c34
The text was updated successfully, but these errors were encountered: