GitHub discussion traefik-log-dashboard #85 in Q&A, started by
ghoston GitHub
The sudo docker compose logs -f | grep dashboard returning Agent error: {“error”:“stat /logs/access.log: no such file or directory”}
The docker compose exec traefik-agent ls -la /logs return:
total 8
drwxr-xr-x 2 root root 4096 Oct 17 08:06 .
drwxr-xr-x 1 root root 4096 Oct 17 09:25 ..
The config/traefik/logs/ dir exist with content:
ll -la config/traefik/logs/
total 112164
drwxr-xr-x 2 root root 4096 Sep 13 09:40 ./
drwxr-xr-x 3 root root 4096 Oct 17 09:50 ../
-rw-r--r-- 1 root root 90724618 Oct 17 11:03 access.log
-rw-r--r-- 1 root root 24110547 Oct 17 11:03 traefik.log
Have in traefik_config:
accessLog:
filePath: "/var/log/traefik/access.log"
format: json
and volumes in docker compose:
traefik:
volumes:
- ./config/traefik:/etc/traefik:ro
- ./config/letsencrypt:/letsencrypt
- ./config/traefik/logs:/var/log/traefik
traefik-agent:
volumes:
- ./config/traefik/logs:/logs:ro # ⚠️ UPDATE THIS PATH
I assume that have wrong path but how?
Before V1 > V2 have ti like:
volumes:
- ./config/traefik/logs:/logs:ro
Join in here or on GitHub.