nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.69k stars 4k forks source link

[Bug]: Broken uploads overflow the server #47208

Open haeki1 opened 1 month ago

haeki1 commented 1 month ago

⚠️ This issue respects the following points: ⚠️

Bug description

Hi,

I encountered my 1TB nextcloud server to be almost out of space while nextcloud only shows the usage of ~500gb in the user table. As version should only take up to 50% of the free space I asked the cloudprovider (Hetzner) for a list of files. There was a folder with around 500gb which seemed to be empty with 0kb in the browser view. When deleting the folder the space got freed up. We found there were lots of broken uploads hidden inside that folder. All of the same file.

3.7G DJI_0568.MP4.ocTransferId1006277266.part 3.7G DJI_0568.MP4.ocTransferId1031769047.part 3.7G DJI_0568.MP4.ocTransferId103262427.part 3.7G DJI_0568.MP4.ocTransferId1049305076.part 3.7G DJI_0568.MP4.ocTransferId1061398193.part 3.7G DJI_0568.MP4.ocTransferId1085181558.part 3.7G DJI_0568.MP4.ocTransferId1085841304.part 3.7G DJI_0568.MP4.ocTransferId1110290658.part … Summed up: 591GB

I am using the virtual files client (Nextcloud Desktop-Client 3.13.2) on mac and also used the virtual files folder for uploading that file. When using the regular folder without virtual files for uploading everything works fine.

Kind regards, Fabian

Steps to reproduce

  1. Upload a large file via virtual files client (in my case 3.7GB)
  2. Free space at /settings/admin/serverinfo keeps filling up with broken uploads till no space is left
  3. deleting the parentfolder results is freeing up the space

Expected behavior

Upload should work without creating broken files filling up the drive.

Installation method

None

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MySQL

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

provokateurin commented 3 weeks ago

These "aborted" uploads are normally taken care of and removed after 24 hours. Do you know if uploading that particular file was broken or aborted in some other way? Can you make sure that your cronjobs run normally as expected? You already deleted the folder, but can you check older logs if there were some errors when running cronjobs?