Open Dr-Escher opened 2 years ago
If, like me, you found this issue when searching this error because an ownership transfer that should have worked because user quotas were sufficiently large but they failed anyway both via the UI and the command line, the problem may be that the php script examines free space on the hard disk as well as the user quota. I kept receiving this error trying to move ~45GB from one user to another but there was only ~40GB free space on the storage partition. Extending the disk partition solved the problem for me and allowed me to successfully run the script.
Just to add that @cerealkella was right and that was my issue too. NextCloud 24.0.3 - silent fail on a 90gb folder transfer and it was due to the host OS not having enough free space
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+
Hi @szaimen I have both problem on 24.0.7 instance:
Hi @szaimen I juste tested on updated Nextcloud (25.0.4):
I can't reproduce the second case right now. I will do if possible.
Hi, please update to 25.0.7 or better 26.0.2 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 26-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+
Hi @szaimen
I won't upgrade to 26 until 26.0.3 or 26.0.4, I am not confident enough to do so.
But I will with 25.0.8 soon. I keep you in touch.
Hello @szaimen
Just tested with 25.0.8 and I can confirm that:
Nothing in Nextcloud logs.
⚠️ This issue respects the following points: ⚠️
Bug description
Transfering ownership from one user to another fails silently, if the receiving user accepts the transfer while the data to be moved exceeds the target users personal storage quota. No additional error message is provided.
The cronjob fails with the following unspecific error:
{"reqId":"ckD2T5De9pxLEsnIST5Z","level":3,"time":"2022-04-07T06:25:01+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Files\\BackgroundJob\\TransferOwnership, arguments: Array\n(\n [id] => 10\n)\n)","userAgent":"--","version":"23.0.3.2","exception":{"Exception":"Exception","Message":"Execution terminated.","Code":0,"Trace":[{"file":"/srv/web/apps/files/lib/Service/OwnershipTransferService.php","line":159,"function":"analyse","class":"OCA\\Files\\Service\\OwnershipTransferService","type":"->"},{"file":"/srv/web/apps/files/lib/BackgroundJob/TransferOwnership.php","line":115,"function":"transfer","class":"OCA\\Files\\Service\\OwnershipTransferService","type":"->"},{"file":"/srv/web/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\Files\\BackgroundJob\\TransferOwnership","type":"->"},{"file":"/srv/web/lib/public/BackgroundJob/QueuedJob.php","line":47,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/srv/web/cron.php","line":150,"function":"execute","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"}],"File":"/srv/web/apps/files/lib/Service/OwnershipTransferService.php","Line":243,"CustomMessage":"Error while running background job (class: OCA\\Files\\BackgroundJob\\TransferOwnership, arguments: Array\n(\n [id] => 10\n)\n)"}}
Using occ files:transfer-ownership results in a proper error message:
Validating quota: Target user does not have enough free space available.
Steps to reproduce
Expected behavior
Either validate and notify about the exceeding storage quota on initiation or confirmation of the ownership transfer in the web interface, visible for the users.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
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
Additional info
none