Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarr debug and trace logs not appearing in Dozzle #3514

Closed
1 task done
Hark0q opened this issue Jan 7, 2025 · 4 comments
Closed
1 task done

Sonarr debug and trace logs not appearing in Dozzle #3514

Hark0q opened this issue Jan 7, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@Hark0q
Copy link

Hark0q commented Jan 7, 2025

πŸ” Check for existing issues

  • Completed

How is Dozzle deployed?

Standalone Deployment

πŸ“¦ Dozzle version

v8.9.1

βœ… Command used to run Dozzle

services:
  dozzle:
    container_name: dozzle
    image: amir20/dozzle:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /htpc/config/dozzle:/data
    ports:
      - 9988:8080
    environment:
      DOZZLE_AUTH_PROVIDER: simple
      DOZZLE_LEVEL: debug

πŸ› Describe the bug / provide steps to reproduce it

Sonarr (Version 4.0.12.2823) is configured to log Trace level logging. This creates three sets of logs files: info, debug and trace.

Dozzle only displays the info level logs.
image

Sonarr run with this compose file:

  sonarr:
    container_name: sonarr
    image: linuxserver/sonarr
    restart: unless-stopped
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
    volumes:
      - ${ROOT}/sonarr:/config
      - /data/media/ssd4tb/unsorted:/data/unsorted/
      - /data/:/data/
      - /data/unsorted/complete/:/data/media/unsorted/complete
      - ${BACKUP}/sonarr:/backup
    network_mode: service:gluetun
    depends_on:
      gluetun:    
        condition: service_healthy
    labels:
      - dev.dozzle.group=htpc
$ cat config/sonarr/config.xml | grep -i log
  <LogLevel>trace</LogLevel>
  <SyslogPort>514</SyslogPort>
  <LogSizeLimit>10</LogSizeLimit>

πŸ’» Environment

Client: Docker Engine - Community
 Version:    27.4.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.19.3
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.32.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 30
  Running: 22
  Paused: 0
  Stopped: 8
 Images: 114
 Server Version: 27.4.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 88bf19b2105c8b17560993bee28a01ddc2f97182
 runc version: v1.2.2-0-g7cb3632
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-50-generic
 Operating System: Ubuntu 22.04.5 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 30.98GiB
 Name: nuc
 ID: 127bf0d2-e22a-46b7-a5b6-f1e52d495f0b
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: oqcira
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

πŸ“Έ If applicable, add screenshots to help explain your bug

No response

πŸ“œ If applicable, attach your Dozzle logs. You many need to enable debug mode. See https://dozzle.dev/guide/debugging.

container-logs-2025-01-07T05-01-10.zip

@Hark0q Hark0q added the bug Something isn't working label Jan 7, 2025
@amir20
Copy link
Owner

amir20 commented Jan 7, 2025

Can you attach sonarr logs? It would be easier to not setup sonarr to test this.

Edit: Thought you had attached it. I was wrong. Do docker logs ... > sonarr.logs and send it over.

@amir20
Copy link
Owner

amir20 commented Jan 7, 2025

I created Sonarr with

docker run  \ 
        --name=sonarr \
        -e PUID=1000 \
        -e PGID=1000 \
        -e TZ=Etc/UTC \
        -p 8989:8989 \
        --restart unless-stopped \
        lscr.io/linuxserver/sonarr:latest

Then in the UI I changed log level to TRACE. I saw no logs at that level. If Sonarr is writing files to disk then it won't be visible to docker logs ....

@amir20 amir20 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2025
@Hark0q
Copy link
Author

Hark0q commented Jan 8, 2025

I think you're right - Sonarr doesn't send trace/debug logs via the socket, it only writes them to disk, so Dozzle can't see them?

@amir20
Copy link
Owner

amir20 commented Jan 8, 2025

Dozzle sees what docker sees. Docker can't access files inside containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants