Closed xabru closed 3 years ago
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
I have the same issue while trying this build:
The issue is specifically related to a default configuration with Ubuntu and Caddy v1.
This has been resolved in v3.30.0.
❯ 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