Open artonge opened 2 years ago
I am running into this error as well. I use a Nextcloud snap, version 24.0.3. Is there any way to empty the trash from the command line? Edit: as a workaround I doubled the memory limit for PHP, from 512 to 1024M. https://github.com/nextcloud-snap/nextcloud-snap/issues/959 In my case there were 30 folders and 67139 files in the trash.
Hm, I don't think that "paginating results" would work (e.g. the desktop client uses the same method to find files to be synced). Streaming the result should be the best solution and the ability to turn off compression by configuration. The latter would help unless the uncompressed PROPFIND-result is getting bigger than the allowed memory size, though.
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+
Problem still present.
{
"reqId": "JmW6z0haJkTbbYp89wWy",
"level": 3,
"time": "2023-02-16T12:28:54+01:00",
"app": "PHP",
"method": "PROPFIND",
"url": "/remote.php/dav/trashbin/xxxxx/trash",
"message": "Allowed memory size of 536870912 bytes exhausted (tried to allocate 158008736 bytes) at /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php#1649",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36",
"version": "24.0.9.2",
"data": {
"app": "PHP"
},
"id": "63ee13771b264"
}
Fixed with 28
Wrong issue, this is about backend! :robot:
Bug description
When listing the files contained in a folder, the following errors will be triggered if the number of file is big (> ~150 000, depends on the memory limit):
Server log:
Web GUI error:
The issue mostly exist for the trashbin, but once it exists, the user can't even access its files to clean them up.
Links:
OC\Files\Cache\Cache::getFolderContentsById
Steps to reproduce
for i in {1..150000}; do echo "New File $i" > file$i.txt; done
occ files:scan --all
Expected behavior
The query should not exhaust the allowed memory by paginating the results.
Nextcloud Logs