dns-proxy-server icon indicating copy to clipboard operation
dns-proxy-server copied to clipboard

DPS regularly crashes

Open hydrargyrum opened this issue 3 years ago • 0 comments

What is Happening

  • DPS is running
  • For some reason, a container is missing (don't ask me why, I don't know)
  • DPS crashes, with this kind of log:
dns_1  | panic: status=inspect-error, id=167fc425daa487eaa5702fb0c9a8ab5ee9fffc5ed0a3258c08cfcfeadf8b0799: Error: No such container: 167fc425daa487eaa5702fb0c9a8ab5ee9fffc5ed0a3258c08cfcfeadf8b0799
dns_1  |
dns_1  | goroutine 7 [running]:
dns_1  | github.com/mageddo/dns-proxy-server/events/docker.mustInspectContainer(0x8fede0, 0xc00019bc50, 0xc0004c84c0, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
dns_1  |        /app/src/github.com/mageddo/dns-proxy-server/events/docker/docker.go:116 +0x24b
dns_1  | github.com/mageddo/dns-proxy-server/events/docker.HandleDockerEvents()
dns_1  |        /app/src/github.com/mageddo/dns-proxy-server/events/docker/docker.go:101 +0x1069
dns_1  | created by main.main
dns_1  |        /app/src/github.com/mageddo/dns-proxy-server/dns.go:126 +0xe6

What is expected

DPS should not crash in case of "missing container", the missing one should simply be ignored.

Steps to Reproduce

Specs:

  • OS: Debian stable
  • Docker Version: 20.10.5+dfsg1
  • DPS Version: 2.19.0

hydrargyrum avatar Jul 25 '22 07:07 hydrargyrum