SqLite Errors (traefik-log-dashboard discussion #190)

:speech_balloon: GitHub discussion traefik-log-dashboard #190 in Help, started by partytimeexcellent on GitHub

I followed the exact instructions in the quick-start guide here:

Unfortunately when I launch the stack with docker compose up, I get the following errors and am unable to proceed. Are there more dependencies or prerequisites that aren’t listed? My environment is a Proxmox LXC of Debian 13. Docker files are stored in /home/user/docker/traefik-dashboard

 ✔ Container traefik-log-dashboard-agent Created                                                                                                                                                                                                                              0.1s 
 ✔ Container traefik-log-dashboard       Created                                                                                                                                                                                                                              0.1s 
Attaching to traefik-log-dashboard, traefik-log-dashboard-agent
traefik-log-dashboard-agent  | [TRAEFIK-LOG-DASHBOARD] 2026/02/01 23:14:29 config.go:40: No .env file found, using system environment variables
traefik-log-dashboard-agent  | [TRAEFIK-LOG-DASHBOARD] 2026/02/01 23:14:29 main.go:22: Starting Traefik Log Dashboard Agent...
traefik-log-dashboard-agent  | [TRAEFIK-LOG-DASHBOARD] 2026/02/01 23:14:29 main.go:23: Access Log Path: /logs/access.log
traefik-log-dashboard-agent  | [TRAEFIK-LOG-DASHBOARD] 2026/02/01 23:14:29 …

---
💬 Join in here or [on GitHub](https://github.com/hhftechnology/traefik-log-dashboard/discussions/190).
<!-- hhf-forum-sync -->

Po3Tato commented on GitHub:

Check if you already have the Sqlite database for traefik-log. Delete it then docler down and docker up -d --force-recreate --remove-orphans.

partytimeexcellent commented on GitHub:

Check if you already have the Sqlite database for traefik-log. Delete it then docler down and docker up -d --force-recreate --remove-orphans.

Thanks. This is on the same machine that I have a docker Traefik instance. Where is that database stored? Is there anything I need to do in my Traefik docker-compose to prevent further clashing?

Po3Tato commented on GitHub:

Chat the data folder the dashboard created. It should be in there. > > Check if you already have the Sqlite database for traefik-log. Delete it then docler down and docker up -d --force-recreate --remove-orphans.

Thanks. This is on the same machine that I have a docker Traefik instance. Where is that database stored? Is there anything I need to do in my Traefik docker-compose to prevent further clashing?

partytimeexcellent commented on GitHub:

Chat the data folder the dashboard created. It should be in there. > > Check if you already have the Sqlite database for traefik-log. Delete it then docler down and docker up -d --force-recreate --remove-orphans.

The folders that were created with this command mkdir -p traefik-dashboard/data/{logs,positions,dashboard}, are all empty. I exec’d into the container and the data folder inside it is also empty. Could be a permissions issue? I created this in the user folder and am running docker compose as a user, not root.

the permissions for the data folder is:
drwxrwxr-x 5 user user 4096

I tried to change permissions with:
chmod -R 777 data
…but no change.

These are the users running the processes inside the container:

$ docker exec -it traefik-log-dashboard ps -eaf
PID   USER     TIME  COMMAND
    1 nodejs    0:00 next-server (v
   60 nodejs    0:00 ps -eaf

EDIT:
OK, so I just learned a bit about docker users. Inside the container I ran id -u and got 1001

Outside the container, I am user 1000

I tried to specify user: "1000:1000" in docker-compose.yml but that led to other issues:

traefik-log-dashboard        | WARNING: geolite2-redist/dbs-tmp is not writable. GeoIP lookups may fail.
traefik-log-dashboard        | This is usually a Docker permission issue. Rebuild the image to fix.
traefik-log-dashboard        |    ▲ Next.js 15.5.9
traefik-log-dashboard        |    - Local:        http://localhost:3000
traefik-log-dashboard        |    - Network:      http://0.0.0.0:3000
traefik-log-dashboard        | 
traefik-log-dashboard        |  ✓ Starting...
traefik-log-dashboard        |  ✓ Ready in 103ms
traefik-log-dashboard-agent  | [TRAEFIK-LOG-DASHBOARD] 2026/02/02 04:27:36 logger.go:36: GET /api/logs/access 500 38.755µs
traefik-log-dashboard        | [Scheduler] Failed to fetch logs from http://traefik-agent:5000: Failed to fetch logs: 500 Internal Server Error

Next, I tried to change the ownership of the folders to “1001:1001” with:
sudo chown -R 1001:1001 traefik-dashboard
This finally allowed me to access the dashboard, but there is now a problem connecting to the agent:

traefik-log-dashboard | [Scheduler] Failed to fetch logs from http://traefik-agent:5000: Failed to fetch logs: 500 Internal Server Error

Connection Error
API Error: 500 - {"error":"Agent error: {\"error\":\"stat /logs/access.log: no such file or directory\"}\n"}

Make sure the agent is running and accessible

So it would appears this docker container should be changed to run as 1000 instead of 1001, or the documentation needs to be changed to give further instructions on changing the permissions of the data folder. Not sure which is more preferable from a usability and security standpoint.

hhftechnology commented on GitHub:

@​partytimeexcellent hi there, you are mixing two thing. agent is watching log dir., which you can’t change perm, it belongs to traefik.
you just need to change perm for data dir, which agents uses to track position which last log was displayed. it doesn’t require change of perm. because it can be deployed anywhere .(not alone with dashboard)
in dashboard only needs
External Image
thats it.

services:
  # Traefik Log Dashboard Agent
  traefik-agent:
    image: hhftechnology/traefik-log-dashboard-agent:dev-dashboard
    container_name: traefik-log-dashboard-agent
    restart: unless-stopped
    ports:
      - "5000:5000"
    volumes:
      - /root/config/traefik/logs:/logs:ro
      - ./data/positions:/data
    environment:
      # Log Paths
      - TRAEFIK_LOG_DASHBOARD_ACCESS_PATH=/logs/access.log
      - TRAEFIK_LOG_DASHBOARD_ERROR_PATH=/logs/access.log
      # Authentication
      - TRAEFIK_LOG_DASHBOARD_AUTH_TOKEN=d41d8cd98f00b204e9800998ecf8427e
      # System Monitoring
      - TRAEFIK_LOG_DASHBOARD_SYSTEM_MONITORING=true      
      # Server Port
      - PORT=5000
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/api/logs/status"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    networks:
      - pangolin

  # Traefik Log Dashboard - Next.js web UI
  traefik-dashboard:
    image: hhftechnology/traefik-log-dashboard:dev-dashboard
    container_name: traefik-log-dashboard
    restart: unless-stopped
    ports:
      - "3000:3000"
    volumes:
      - ./data/dashboard:/app/data
      - ./data/positions:/data
    environment:
      # Agent Configuration - REPLACE WITH YOUR TOKEN
      - AGENT_API_URL=http://traefik-agent:5000
      - AGENT_API_TOKEN=d41d8cd98f00b204e9800998ecf8427e
      - AGENT_NAME=Default Agent
      
      # Node Environment
      - NODE_ENV=production
      - PORT=3000
      
      # Display Configuration
      - NEXT_PUBLIC_SHOW_DEMO_PAGE=true
      - NEXT_PUBLIC_MAX_LOGS_DISPLAY=500
    depends_on:
      traefik-agent:
        condition: service_healthy
    networks:
      - pangolin

networks:
  pangolin:
    external: true