# Agent error: {"error":"stat /logs/access.log: no such file or directory"} - what is the right path? (traefik-log-dashboard discussion #85)

**URL:** <https://forum.hhf.technology/t/agent-error-error-stat-logs-access-log-no-such-file-or-directory-what-is-the-right-path-traefik-log-dashboard-discussion-85/4620>\
**Category:** Traefik Log Dashboard\
**Tags:** discussion\
**Created:** [October 17, 2025, 11:17am UTC](https://forum.hhf.technology/t/agent-error-error-stat-logs-access-log-no-such-file-or-directory-what-is-the-right-path-traefik-log-dashboard-discussion-85/4620 "2025-10-17T11:17:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/6437_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [October 17, 2025, 11:17am UTC](https://forum.hhf.technology/t/agent-error-error-stat-logs-access-log-no-such-file-or-directory-what-is-the-right-path-traefik-log-dashboard-discussion-85/4620/1 "2025-10-17T11:17:07Z")

</div>

> 💬 **GitHub discussion [traefik-log-dashboard #85](https://github.com/hhftechnology/traefik-log-dashboard/discussions/85)** in _Q&A_, started by **`ghost`** on 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:

```auto
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:

```auto
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:

```auto
accessLog:
  filePath: "/var/log/traefik/access.log"
  format: json

```

and volumes in docker compose:

```auto
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:

```auto
    volumes:
      - ./config/traefik/logs:/logs:ro

```

* * *

💬 Join in here or [on GitHub](https://github.com/hhftechnology/traefik-log-dashboard/discussions/85).

---

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/6437_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [October 17, 2025, 11:28am UTC](https://forum.hhf.technology/t/agent-error-error-stat-logs-access-log-no-such-file-or-directory-what-is-the-right-path-traefik-log-dashboard-discussion-85/4620/2 "2025-10-17T11:28:02Z")

</div>

**`hhftechnology`** [commented on GitHub](https://github.com/hhftechnology/traefik-log-dashboard/discussions/85#discussioncomment-14708797):

> you have to share your traefik compose file to guide you.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/6437_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [October 17, 2025, 1:21pm UTC](https://forum.hhf.technology/t/agent-error-error-stat-logs-access-log-no-such-file-or-directory-what-is-the-right-path-traefik-log-dashboard-discussion-85/4620/3 "2025-10-17T13:21:10Z")

</div>

**`ghost`** [replied in a thread on GitHub](https://github.com/hhftechnology/traefik-log-dashboard/discussions/85#discussioncomment-14709739) to **`hhftechnology`** :

> Solved by moving as standalone instead of all in one compose.
> 
> You’re right, next time will add entire compose.yaml for clarity.
