Problem with htaccesstest.txt and setup.js after a fresh installation

Hello there,

I’m trying to do a fresh installation of nextcloud with docker. Here is my compose file

docker-compose.yml

version: ‘3.8’

services:


  # The main app
  nextcloud:
    image: nextcloud
    networks:
      - default
      - proxy
    volumes:
      # Main folder, needed for updating
      - html:/var/www/html
      # installed / modified apps
      - custom_apps:/var/www/html/custom_apps
      # local configuration
      - config:/var/www/html/config
      # actual data of your Nextcloud!!!!
      - data:/var/www/html/data
      # Themes and branding
      - themes:/var/www/html/themes/
    restart: always
    depends_on:
      - db
      - redis
    environment:
      - POSTGRES_HOST=${POSTGRES_HOST}
      - POSTGRES_DB=${POSTGRES_DB}
      - POSTGRES_USER=${POSTGRES_USER}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      # - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
      # - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
      - REDIS_HOST=${REDIS_HOST}
      - REDIS_HOST_PORT=${REDIS_HOST_PORT}
      - REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD}
      - NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.example.org
      - OVERWRITEPROTOCOL=https
      
    labels:
      traefik.enable: true
      traefik.http.routers.nextcloud.rule: Host(`nextcloud.example.org`)
      traefik.http.routers.nextcloud.entrypoints: websecure
      traefik.http.routers.nextcloud.tls.certresolver: tlsleresolver
      traefik.http.routers.nextcloud.middlewares: nextcloud-redirectregex,nc-header

      # Custom middleware for Cal/Cardav routing
      traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.permanent: true
      traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.regex: https://(.*)/.well-known/(card|cal)dav
      traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.replacement: https://$${1}/remote.php/dav/

      # Custom middleware for headers
      traefik.http.middlewares.nc-header.headers.stsSeconds: 15552001
 
  # nextcloud is backed by postgres
  db:
    image: postgres
    networks:
      - default
    restart: always
    volumes:
      - dbdata:/var/lib/postgresql/data/
    environment:
      - POSTGRES_HOST=${POSTGRES_HOST}
      - POSTGRES_DB=${POSTGRES_DB}
      - POSTGRES_USER=${POSTGRES_USER}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}


  # Redis is used to prevent file locking problems
  redis:
    image: redis:alpine
    networks:
      - default
    command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
    volumes:
      - redisdata:/data


volumes:
  html:
  custom_apps:
  config:
  data:
  themes:
  dbdata:
  redisdata:


networks:
  proxy:
    external: true

All seems going fine but in the App log I see the following recurring errors:

[no app in context] Warning: Could not detect any host in https:///data/htaccesstest.txt

GET /
from xxx.xxx.xxx.xxx at 2020-08-31T14:21:16+00:00

[jsresourceloader] Error: Could not find resource js/setup.js to load

GET /
from xxx.xxx.xxx.xxx at 2020-08-31T14:21:16+00:00

How can I fix those problems?

Also done a fresh install (not using docker). See the exact same to errors in the log

Thanx for pointing this out. Any fix?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.