MinIO - strange naming and it gets more and more full

Nextcloud version: 23 (Docker)
Operating system and version: Ubuntu 20.04

Hi community,

I have setup nextcloud with an external primary storage via minio.
In nextcloud everything works fine but my minio bucket looks strange to me.
I only get file names like urn:oid:1004 and my buckets becomes more and more full without storing more files in my nextcloud.

My config.php section for minio looks like this:

 'objectstore' => 
  array (
    'class' => 'OC\\Files\\ObjectStore\\S3',
    'arguments' => 
    array (
      'bucket' => 'nextcloud',
      'autocreate' => false,
      'key' => 'SecretKey',
      'secret' => 'SuperSecretKey',
      'hostname' => 'minio',
      'port' => 9000,
      'use_ssl' => false,
      'use_path_style' => true,
    ),
  ),

Did anybody experienced a similar behavior while using minio as an primary storage?

If you are using docker then you should not have to touch the config files. As per the latest nextcloud there should be a s3.config.php file in /var/www/html/config which picks up all its values from env variables. For minio running on truenas the following are the env values nextcloud expects to be initialized in docker container for nextcloud:

OBJECTSTORE_S3_HOST=
OBJECTSTORE_S3_PORT=<host port, this 9001 for minio running on truenas>
OBJECTSTORE_S3_BUCKET=
OBJECTSTORE_S3_KEY=
OBJECTSTORE_S3_SECRET=
OBJECTSTORE_S3_SSL=
OBJECTSTORE_S3_REGION=
OBJECTSTORE_S3_USEPATH_STYLE=<true | false>
OBJECTSTORE_S3_LEGACYAUTH=<true| false>
OBJECTSTORE_S3_OBJECT_PREFIX=
OBJECTSTORE_S3_AUTOCREATE=<false|true>

docker run
–name nc
-dp 8080:80
-v nextcloud:/var/www/html
-e OBJECTSTORE_S3_HOST=
-e OBJECTSTORE_S3_PORT=9001
-e OBJECTSTORE_S3_BUCKET=<bucket_name>
-e OBJECTSTORE_S3_KEY=
-e OBJECTSTORE_S3_SECRET=
-e OBJECTSTORE_S3_SSL=<false | true>
-e OBJECTSTORE_S3_REGION=
-e OBJECTSTORE_S3_USEPATH_STYLE=<true|false>
-e OBJECTSTORE_S3_LEGACYAUTH=<true|false>
-e OBJECTSTORE_S3_OBJECT_PREFIX=<somethink like “urn:oid:”>
-e OBJECTSTORE_S3_AUTOCREATE=<false|true>
nextcloud

While the above does not specifically answer your query specifically , I feel this approach is may give you the results.

Nextcloud does install some test files by default and these files appear with a separate object naming convention in s3 buckets. In other words your files in s3 will not be stored with its original names, if that was the question.