Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.4):
The issue you are facing:
In the user folder there is a folder calles “uploads”, it contains tons of cryptic folders and has a size of ~50GB.
What is that? Can I delete the folder manually? What is the purpose of this folder? The user uploaded only ~100MB
I’m not sure all my users upload folders are empty.
I don’t know if you have any encryption enabled.
if the user has all his files i would rename or backup his upload folder create a empty new upload folder. after a week delete the renamed (backedup) folder if no issues have arose.
also check that his new upkoad folder is still empty as is should be when there’ s no upload taking place.
After testing it as recommended I can say:
- The folder is needed, even if it`s full of data
- renaming it throws an “folder-error” for the nextcloud user beeing unable to upload more files
- setting it back to the original folder fixes the issue of folder-error
- The original issue of big folder size remains, I will observe this for more days to see what happens
Has anyone an idea what its about with this folder? all uploads are completed
the folder reduced automatically down to 11GB, hopefully it will do more
have you created a new empty uploads folder for the user with the correct permissions. after renaming the original?
I just created a new folder uploads, which permissions are needed an howcan I do that? @Vincent_Stans
the folder should be owned by the webserver user www-data
eighter create the folder with that user
sudo -u www-data mkdir /path/to/nc-data/user/uploads
or change it afterwards
sudo chown www-data:www-data /path/to/nc-data/user/uploads
more over in the docs Local — Nextcloud latest Administration Manual latest documentation
Finally the folder got flushed by itself and is empty now. This means I´m not able to test further things anymore.
The folder becomes empty by itself after a few days.