-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: occ files:scan uses huge memory and throws php error #35209
Comments
you likely have an infinite loop of sorts for that user, usually caused by misplaced mount points please check the following for this user:
|
thank you, her in short the answers:
I tried other users whos are in the same group of the first user and with each of them I have the same issue (looping until php memory is exhausted) Is there a kind of trace mode for Regards |
@roadrunnerjb thanks for checking. With overlapping mount point it would be like having these two mount points:
you have already confirmed that there were no such scenarios, so am unsure where the loop is sadly there is no easy way to get a trace from the current code and require adding a lot of extra noisy logging statements before we debug further, please keep an eye on #34752 and the WIP PR #35218 because that one will fix some behavior with mount points. |
@roadrunnerjb you can apply https://github.com/nextcloud/server/pull/35255.patch now and let me know if the scan still crashes |
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. |
Bug description
After upgrading NC from 24.0.7 to 25.0.1 we had several files related issues (some shares are missing) so I wanted to do a
occ files:scan
. First I tried with --all but it never comes to an end (even not after 24 hours). It stucks at one particular user so I tried with this user and gave plenty of php memory. That gives me the following result:For me it seems there is a endless loop consuming memory over and over.
The user itself has no personal files in the filesystem:
How can I dig deeper into this issue, is the an sql that I can use ?
Any Ideas are welcome
Steps to reproduce
Expected behavior
occ files:scan should not terminate with php error
Installation method
Community Web installer on a VPS or web space
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
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
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: