amir20 / dozzle

Realtime log viewer for docker containers.
https://dozzle.dev/
MIT License
6.01k stars 302 forks source link

download log from agent got 0 bytes #3308

Closed jenggo closed 2 weeks ago

jenggo commented 2 weeks ago

πŸ” Check for existing issues

How is Dozzle deployed?

Agents

πŸ“¦ Dozzle version

8.5.5

βœ… Command used to run Dozzle

services:

  dozzle:
    container_name: dozzle
    image:          amir20/dozzle
    restart:        always
    network_mode:   host
    command: agent
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DOZZLE_FILTER=label=dozzle
      - DOZZLE_HOSTNAME=gcp-1

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

got 0 bytes when download log from agent

πŸ’» Environment

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

Server:
 Containers: 16
  Running: 16
  Paused: 0
  Stopped: 0
 Images: 10
 Server Version: 27.2.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: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
 runc version: v1.1.14-0-g2c9f560
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.0-25-cloud-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 7.763GiB
 Name: propertek-gcp-1
 ID: 41239bdc-7283-4fdc-bc36-fa7f0b8bcfdf
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 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.

Screenshot_20241004_090355

amir20 commented 2 weeks ago

That log helps. This was working a while back. I wonder if something new broke. I'll try testing it again.

amir20 commented 2 weeks ago

Great. I was able to reproduce this. I'll see what I could be the problem. Something must have changed.

amir20 commented 2 weeks ago

Looks like I wasn't handeling errors correctly. @jenggo can you test amir20/dozzle:pr-3311. I'll merge when you let me know it works. It worked with my testing.