Bad performance upload S3 bucket External Storage

Nextcloud version (eg, 20.0.5): 28
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): 8.2

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Configure S3 Bucket as an external storage
  2. set max_chunk_size to 80 Mo
  3. Upload a big file
  4. See the xhr (in dev tool browser)
  5. We can see a very slow last query, .file

I tested NextCloud and one S3 bucket on Primary Storage, I had better performance, specially in the last .file query (XHR).

To reproduce my need : need 3 bucket S3, one per directory, I created 3 users, I shared 3 directory. With an other user, I uploaded in a shared directory, ok fine, it works. BUT !!! In this use case, I had bad performance… again…

Summary : 1 bucket configured as Primary Storage, 3 directory, so NextCloud created 1 bucket per user/directory.
When a other user upload a file → bad performance. When it’s the owner directory user uplaod file → better performance.
(sorry about my bad english)
Thanks for your help :slight_smile:

Coucou.

  • Please post occ config:list system
  • What S3 platform are you using?
  • Can you define what you mean precisely by “bad performance”? How slow are we talking about?

My S3 plateform is Scaleway, a french cloud provider.

“bad performance” → 30 mns for a file 5 Go (External Storage or Primary Storage but in a share directory)
“good performance” → 12 mns for a file 5 Go (Primary Storage → bucket’s user account)

Is it a bug in a “share” library used by NextCloud to use sharing options ?