stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
6.05k stars 1.73k forks source link

panic: runtime error: slice bounds out of range #218

Closed xabru closed 3 years ago

xabru commented 3 years ago

image

image

❯ docker-compose ps Name Command State Ports

alertmanager /bin/alertmanager --config ... Up 9093/tcp caddy /sbin/tini -- caddy -agree ... Restarting cadvisor /usr/bin/cadvisor -logtostderr Up (health: starting) 8080/tcp grafana /run.sh Up 3000/tcp nodeexporter /bin/node_exporter --path. ... Up 9100/tcp prometheus /bin/prometheus --config.f ... Up 9090/tcp pushgateway /bin/pushgateway Up 9091/tcp

❯ docker-compose logs caddy Attaching to caddy caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc42005c2b0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44 caddy | panic: runtime error: slice bounds out of range caddy | caddy | goroutine 1 [running]: caddy | github.com/mholt/caddy/vendor/github.com/miekg/dns.ClientConfigFromFile(0xbb4739, 0x10, 0x0, 0x0, 0x0) caddy | src/github.com/mholt/caddy/vendor/github.com/miekg/dns/clientconfig.go:86 +0xad6 caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.getNameservers(0xbb4739, 0x10, 0xfeaf20, 0x2, 0x2, 0xf77460, 0xc4200402c0, 0xc420037f50) caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:40 +0x4d caddy | github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme.init() caddy | src/github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/dns_challenge.go:33 +0x12d caddy | github.com/mholt/caddy/caddy/caddymain.init() caddy | <autogenerated>:1 +0x75 caddy | main.init() caddy | <autogenerated>:1 +0x44

arthur-lbchn commented 3 years ago

I have the same issue while trying this build:

Screenshot_129

nightah commented 3 years ago

The issue is specifically related to a default configuration with Ubuntu and Caddy v1.

This has been resolved in v3.30.0.