Installation via Portainer: Probleme bei Zugriffsrechten

Nextcloud version: 25.0.3
Operating system and version Raspian lite, OMV, Portainer
Apache or nginx version: nicht installiert (ist dies das Problem?)
PHP version

The issue you are facing:

Is this the first time you’ve seen this error? Ja:

Steps to replicate it:

  1. Rufe IP:443
  2. Nextcloud gui kommt
  3. Ich fülle alles gewissenhaft aus
  4. Meldung

Das Datenverzeichnis /srv/dev-disk-by-XXXXF/media/usb/appdata/nextcloud kann nicht erstellt oder es kann darin nicht geschrieben werden.

Log beim entsprechenden Container auf Portainer

migrations] started

[migrations] 01-nginx-site-confs-default: skipped

[migrations] done

-------------------------------------

          _         ()

         | |  ___   _    __

         | | / __| | |  /  \

         | | \__ \ | | | () |

         |_| |___/ |_|  \__/

Brought to you by linuxserver.io

-------------------------------------

To support LSIO projects visit:

https://www.linuxserver.io/donate/

-------------------------------------

GID/UID

-------------------------------------

User uid:    1000

User gid:    1000

-------------------------------------

using keys found in /config/keys

[custom-init] No custom files found, skipping...

[ls.io-init] done.

Exception: Not installed in /config/www/nextcloud/lib/base.php:284


Mein Docker compose:

---
version: "2.1"
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /srv/XXX/media/usb/appdata/nextcloud:/config
      - /srv/XXX/media/usb/nextclouddata:/data
    ports:
      - 443:443
    restart: unless-stopped

Versuche Probleme zu lösen:

  • chmod -R auf den entsprechenden Ordner
  • redeploy des Stacks auf Portainer

linuxserver container sind sehr start angepasst, ich würde die Fragen dort platzieren.

Danke für den Hinweis

Ich habe jetzt mal das offizielle Dockerimage verwendet. Mein Docker compose sieht jetzt so aus:

version: '2'

services:
  db:
    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /var/lib/docker/volumes/Nextcloud_Database:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=xxx
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - /var/lib/docker/volumes/Nextcloud_Application:/var/www/html
    environment:
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

Ich bekomme diese Fehlermeldung:

Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: Name or service not known 

Ich habe verschiedene Lösungsvorschläge versucht, namentlich bei den Ports des db-hosts, aber keine funktioniert. Das Problem bleibt bestehen. Übesehe ich etwas?