winlin
Goto Top

Nextcloud timeout mit docker compose

Hallo Zusammen,

ich habe das Problem das ich auf meiner RPi4 8GB mit RaspianOS 64Bit Lite, Docker, Docker-Compose kein Nextcloud deployen kann. Der Fehler nach "docker-compose up -d" ist folgender:
8423e681abf2: Pull complete
c59065933afb: Pull complete
cec8a10f8398: Pull complete
7ac0584f935a: Pull complete
0de090d7f7d7: Pull complete
9c9579c6537b: Pull complete
Digest: sha256:3a583f97aaec9973b69b0f4696d40f8a330a9f1d6066631c1f3902c8c55cd01f
Status: Downloaded newer image for nextcloud:latest
Creating nextcloud-redis ...
Creating nextcloud-db    ...

ERROR: for nextcloud-redis  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)  

ERROR: for nextcloud-db  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)  

ERROR: for nextcloud-redis  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)  

ERROR: for nextcloud-db  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)  
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

Zuvor habe ich nur traefik installiert - was auch geklappt hatte und ich drauf zugreifen kann. Die Docker Compose File siehjt so aus:
version: '3.3'  
services:
  nextcloud-db:
    image: mariadb
    container_name: nextcloud-db
    command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /home/rpi/docker/containers/nextcloud/database:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=nextcloud #SQL root Passwort eingeben
      - MYSQL_PASSWORD=nextcloud #SQL Benutzer Passwort eingeben
      - MYSQL_DATABASE=nextcloud #Datenbank Name
      - MYSQL_USER=nextcloud #SQL Nutzername
      - MYSQL_INITDB_SKIP_TZINFO=1
    networks:
      - default
  nextcloud-redis:
    image: redis:alpine
    container_name: nextcloud-redis
    hostname: nextcloud-redis
    networks:
        - default
    restart: unless-stopped
    command: redis-server --requirepass test # Redis Passwort eingeben
  nextcloud-app:
    image: nextcloud
    container_name: nextcloud-app
    restart: unless-stopped
    depends_on:
      - nextcloud-db
      - nextcloud-redis
    environment:
        REDIS_HOST: nextcloud-redis
        REDIS_HOST_PASSWORD: test # Redis Passwort von oben wieder eingeben
    volumes:
      - /home/rpi/docker/containers/nextcloud/config:/var/www/html
      - /media/NVMe_1TB/nextcloud/data:/var/www/html/data:rw

    labels:
      - "traefik.enable=true"  
      - "traefik.http.routers.nextcloud-app.entrypoints=http"  
      - "traefik.http.routers.nextcloud-app.rule=Host(`ncp-cloud.duckdns.org`)"  
      - "traefik.http.middlewares.nextcloud-app-https-redirect.redirectscheme.scheme=https"  
      - "traefik.http.routers.nextcloud-app.middlewares=nextcloud-app-https-redirect"  
      - "traefik.http.routers.nextcloud-app-secure.entrypoints=https"  
      - "traefik.http.routers.nextcloud-app-secure.rule=Host(`ncp-cloud.duckdns.org`)"  
      - "traefik.http.routers.nextcloud-app-secure.tls=true"  
      - "traefik.http.routers.nextcloud-app-secure.tls.certresolver=http"  
      - "traefik.http.routers.nextcloud-app-secure.service=nextcloud-app"  
      - "traefik.http.services.nextcloud-app.loadbalancer.server.port=80"  
      - "traefik.docker.network=proxy"  
      - "traefik.http.routers.nextcloud-app-secure.middlewares=nextcloud-dav,secHeaders@file"  
      - "traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav"  
      - "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/"  
    networks:
      - proxy
      - default
networks:
  proxy:
    external: true

Hatte auch schon die RPi komplett platt gemacht und neu installiert aber immer kommt dieser Fehler auch wenn ich den docker und composer timeout hochsetze. Hat jemand eine Idee an was das liegen könnte?

Content-ID: 3082583581

Url: https://administrator.de/contentid/3082583581

Ausgedruckt am: 22.11.2024 um 10:11 Uhr