Can write to DigitalOcean's Space as S3 external storage, but files folders won't show up in nextcloud

Nextcloud version (eg, 20.0.5): 25.0.4 image: nextcloud
Operating system and version (eg, Ubuntu 20.04): image: nextcloud Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.54
PHP version (eg, 7.4): 8.1.16

The issue you are facing:
Can write into DigitalOcean’s space (s3) as external storage.
But can’t see any written files/folders after page refresh.
The space page in digital ocean can show file/folder list, details, size, number of files etc.
But on nextcloud’s webpage it says no files here.
Same no files show up on windows client.

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

Steps to replicate it:

  1. clean docker compose install as per How To Install Nextcloud With Redis On Docker | Apache-IoT
version: '2'

volumes:
  nextcloud:
  db:

networks:
  nextcloud_network:
    external: false

services:
  db:
    image: mariadb
    restart: unless-stopped
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=random_msql_root_password
      - MYSQL_PASSWORD=must_match_1
      - MYSQL_DATABASE=must_match_2
      - MYSQL_USER=must_match_3
    networks:
      - nextcloud_network

  app:
    image: nextcloud
    restart: unless-stopped
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - /path/to/your/config/folder:/var/www/html
      - /path/to/your/storage/data/folder:/var/www/html/data
    environment:
      - MYSQL_PASSWORD=must_match_1
      - MYSQL_DATABASE=must_match_2
      - MYSQL_USER=must_match_3
      - MYSQL_HOST=db
      - REDIS_HOST=redis
    networks:
      - nextcloud_network

  redis:
    image: redis:alpine
    container_name: redis
    volumes:
      - /docker/nextcloud/redis:/data
    networks:
      - nextcloud_network
    restart: unless-stopped
  1. add DigitalOcean space as external storage S3
  2. added some files from windows client / web page into the newly added external storage

The output of your Nextcloud log in Admin > Logging:

No server logs
Everything is working fine

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'password' => '',
    'port' => 6379,
  ),
  'instanceid' => 'ocfi6czsxdze',
  'passwordsalt' => 'salt+58cBaN',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => '14.1.84.75:8080',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '25.0.4.1',
  'overwrite.cli.url' => 'http://14.1.84.75:8080',
  'dbname' => 'dbname',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => 'dbpass',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

docker logs docker-nextcloud-app-1 |grep -i error
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 18 09:09:07.638541 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.1.16 configured -- resuming normal operations
[Sat Mar 18 09:09:07.638627 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
[Sat Mar 18 09:10:32.044301 2023] [access_compat:error] [pid 46] [client client-ip-address:44547] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
[Sat Mar 18 09:21:28.230572 2023] [access_compat:error] [pid 89] [client client-ip-address:44783] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
[Sat Mar 18 09:31:05.275983 2023] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 18 09:31:36.044593 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.1.16 configured -- resuming normal operations
[Sat Mar 18 09:31:36.045010 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
[Sat Mar 18 09:32:17.284141 2023] [access_compat:error] [pid 54] [client client-ip-address:44605] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
[Sat Mar 18 09:36:25.194574 2023] [access_compat:error] [pid 67] [client client-ip-address:44586] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
[Sat Mar 18 09:38:13.349300 2023] [access_compat:error] [pid 84] [client client-ip-address:44631] AH01797: client denied by server configuration: /var/www/html/data/.ocdata

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE