I got this errors when I stop Caddy in the server

goroutine 24 [running]:
github.com/mholt/caddy/vendor/github.com/mholt/certmagic.(*Cache).Stop(...)
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/vendor/github.com/mholt/certmagic/cache.go:87
github.com/mholt/caddy/caddytls.NewConfig.func1(0xc00013a150, 0x12927f0)
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/caddytls/config.go:105 +0x2e
github.com/mholt/caddy.(*Instance).ShutdownCallbacks(0xc0001ee000, 0xc0001224e0, 0xc0001224e0, 0x0)
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/caddy.go:169 +0xb2
github.com/mholt/caddy.allShutdownCallbacks(0xc3352d, 0x8, 0xb18160)
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/sigtrap.go:100 +0x10b
github.com/mholt/caddy.executeShutdownCallbacks.func1()
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/sigtrap.go:80 +0x8f
sync.(*Once).Do(0x12bcf38, 0xc000050f88)
	/usr/local/go/src/sync/once.go:44 +0xb3
github.com/mholt/caddy.executeShutdownCallbacks(0xc308b6, 0x6, 0x0)
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/sigtrap.go:76 +0x77
github.com/mholt/caddy.trapSignalsCrossPlatform.func1.1()
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/sigtrap.go:66 +0x36
created by github.com/mholt/caddy.trapSignalsCrossPlatform.func1
	/tmp/gopath_02-06-0307.103777464/src/github.com/mholt/caddy/sigtrap.go:65 +0xdc

I’m not sure what was happen but it’s not happen us again.

What’s the full log output? This is only part of it. It’s missing the error message.

There was no log, I just played with install the caddy “hook.service” and I start and stop it. It happen to me once and I run a lot of commends so I don’t really know what happen. I thought maybe you guys will understand it.
Sorry.

Sorry, hard to say without the full output. We’d need to know the error message at least.

Next time. thx :slight_smile:

This is a known error with the hook.service plugin.

1 Like

Can it make any problems in production env?

try 0.11.3 it may have been fixed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.