nextcloud / server

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

[Bug]: File deleted when moved into an overfilled S3 bucket #46405

Open elzody opened 2 weeks ago

elzody commented 2 weeks ago

⚠️ This issue respects the following points: ⚠️

Bug description

When a document is moved to an S3 bucket which is at its quota, the file simply disappears into the void with no error message displayed to the user. There is an error displayed in the log file, however. This issue does not affect larger files, e.g. 128 MB. Maybe it has to do with the chunking mechanism for larger files or something.

Steps to reproduce

  1. Have an S3 bucket which is already filled to its quota.
  2. Move a small document there (a few kilobytes in size maybe)
  3. It should disappear without an error

Expected behavior

The document / file should remain present, and an error message should be shown to the user just as it is with larger files.

Installation method

None

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

joshtrichards commented 2 weeks ago

Happen to have that mentioned log file entry?

Also, are you referring to S3 via External Storage or Primary Storage?

And are you referring to a quota within Nextcloud or a quota within your S3 platform?

It would help if you filled out the issue template. Particularly since there are numerous other variables such as file versioning config, groupfolders, etc. :)

elzody commented 2 weeks ago

I would have filled out the rest of the issue template but the issue was provided by the customer, and I did not want to leak any of their data and they also did not provide me with some of the information from the start. The support ticket is linked in the appropriate Nextcloud GmbH issue tracker if you want to take a look at the ticket and get the log file there.

EDIT: Not sure if you have access to that actually? I messaged the files team lead with the information.

@joshtrichards