0

Nextcloud App: Unknown Error

Andi 2 months ago 0

Hi there

I'm having problems with my Nextcloud desktop 3.2.4 (macOS) folder sync. It had problems syncing a nested folder `Fotos > 2021 > 2021-01-01 Some Eventname` before and apparently random. When I recreated the folders the problem sometimes disappeared. I removed the `Fotos` folder from the cloud temporarily and now another folder isn't working anymore. Now the problems affect another folder called `Dateien`.

I'm running Filerun in a Docker container behind Traefik v2. Using the `docker-compose.yml` as shown below:

version: "3.8"

services:
  web:
    image: afian/filerun
    container_name: filerun
    environment:
      FR_DB_HOST: 123.456.789.123
      FR_DB_PORT: 3306
      FR_DB_NAME: filerun
      FR_DB_USER: filerun
      FR_DB_PASS: ""
      APACHE_RUN_USER: web
      APACHE_RUN_USER_ID: 1001
      APACHE_RUN_GROUP: docker
      APACHE_RUN_GROUP_ID: 984
    networks: [traefik]
    restart: always
    deploy:
      resources:
        limits:
          memory: 2G
    volumes:
      - ./custom.php.ini:/usr/local/etc/php/conf.d/z_custom.php.ini
      - /data/containers/filerun/html:/var/www/html
      - /data:/user-files
    labels:
      - diun.enable=true
      - traefik.enable=true
      - traefik.http.routers.filerun.rule=Host(`cloud.mydomain.com`)
      - traefik.http.routers.filerun.tls=true
      - traefik.http.routers.filerun.tls.certresolver=le
      - traefik.http.routers.filerun.entrypoints=websecure

      - traefik.http.middlewares.redirect-to-cloud.redirectregex.regex=^https://(?:(?:cloud|media).myotherdomain.com|media.mydomain.com)(.*)
      - traefik.http.middlewares.redirect-to-cloud.redirectregex.replacement=https://cloud.mydomain.com$${1}
      - traefik.http.middlewares.redirect-to-cloud.redirectregex.permanent=true

      - traefik.http.middlewares.filerun-headers.headers.customFrameOptionsValue=SAMEORIGIN
      - traefik.http.middlewares.filerun-headers.headers.contentSecurityPolicy=frame-ancestors 'self' mydomain.com *.mydomain.com
      - traefik.http.middlewares.filerun-headers.headers.stsIncludeSubdomains=true
      - traefik.http.middlewares.filerun-headers.headers.stsPreload=true
      - traefik.http.middlewares.filerun-headers.headers.stsSeconds=31536000
      - traefik.http.middlewares.filerun-headers.headers.referrerPolicy=same-origin
      - traefik.http.middlewares.filerun-headers.headers.forceSTSHeader=true
      - traefik.http.middlewares.filerun-headers.headers.browserXssFilter=true
      - traefik.http.middlewares.filerun-headers.headers.customRequestHeaders.X-Forwarded-Proto=https
      - traefik.http.middlewares.filerun-headers.headers.customRequestHeaders.X-Forwarded-Proto=websecure
      - traefik.http.middlewares.filerun-headers.headers.customResponseHeaders.X-Robots-Tag=none
      - traefik.http.middlewares.filerun-headers.headers.frameDeny=true
      - traefik.http.middlewares.filerun-headers.headers.sslRedirect=true
      - traefik.http.middlewares.filerun-headers.headers.contentTypeNosniff=true

      - traefik.http.middlewares.nc-rep.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav
      - traefik.http.middlewares.nc-rep.redirectregex.replacement=https://$$1/remote.php/dav/
      - traefik.http.middlewares.nc-rep.redirectregex.permanent=true

      - traefik.http.routers.filerun.middlewares=redirect-to-cloud,filerun-headers,nc-rep

networks:
  traefik:
    external: true

The `Dateien` folder on the server has the permissions set as shown below. No effect if I change it to 777.

4.0K drwxrwx---. 16 web family 4.0K Oct 17 13:58 Dateien/

As you can see I configured PHP to log to stdout in my custom PHP config:

error_reporting         = E_ALL & ~E_NOTICE
log_errors              = On
ignore_repeated_errors  = Off
error_log               = /proc/1/fd/2

But no errors are displayed in the log:

filerun | 172.18.0.19 - NEXTCLOUDTOKEN2 [17/Oct/2021:17:34:07 +0200] "PROPFIND /remote.php/dav/files/andi/ HTTP/1.1" 207 1916 "-" "Mozilla/5.0 (Macintosh) mirall/3.2.4git (build 6463) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
filerun | 172.18.0.19 - NEXTCLOUDTOKEN2 [17/Oct/2021:17:34:07 +0200] "PROPFIND /remote.php/dav/files/andi/@Home HTTP/1.1" 207 3565 "-" "Mozilla/5.0 (Macintosh) mirall/3.2.4git (build 6463) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
filerun | 172.18.0.19 - NEXTCLOUDTOKEN2 [17/Oct/2021:17:34:07 +0200] "PROPFIND /remote.php/dav/files/andi/@Shares HTTP/1.1" 207 1426 "-" "Mozilla/5.0 (Macintosh) mirall/3.2.4git (build 6463) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
filerun | 172.18.0.19 - NEXTCLOUDTOKEN2 [17/Oct/2021:17:34:07 +0200] "PROPFIND /remote.php/dav/files/andi/@Home/Andi HTTP/1.1" 207 3061 "-" "Mozilla/5.0 (Macintosh) mirall/3.2.4git (build 6463) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
filerun | 172.18.0.19 - NEXTCLOUDTOKEN2 [17/Oct/2021:17:34:08 +0200] "PROPFIND /remote.php/dav/files/andi/@Home/Andi/Dateien HTTP/1.1" 207 9998 "-" "Mozilla/5.0 (Macintosh) mirall/3.2.4git (build 6463) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

Does someone have a hint?