Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasionally http daemon encounters a panic during initialisation routine #16

Closed
HouzuoGuo opened this issue Nov 26, 2017 · 1 comment
Closed
Assignees
Labels

Comments

@HouzuoGuo
Copy link
Owner

As noticed and recovered by supervisor:

panic: http: multiple registrations for /
goroutine 384 [running]:
net/http.(*ServeMux).Handle(0xc4203a94d0, 0xc4200136a8, 0x1, 0x9bd820, 0xc4202b5460)
/home/howard/go/src/net/http/server.go:2270 +0x627
net/http.(*ServeMux).HandleFunc(0xc4203a94d0, 0xc4200136a8, 0x1, 0xc4202b5460)
/home/howard/go/src/net/http/server.go:2302 +0x55
github.com/HouzuoGuo/laitos/daemon/httpd.(*Daemon).Initialise(0xc4201326e0, 0xc42047a6f0, 0xc4203263c0)
/home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/httpd/httpd.go:175 +0x409
github.com/HouzuoGuo/laitos/launcher.Config.GetHTTPD.func1()
/home/howard/gopath/src/github.com/HouzuoGuo/laitos/launcher/config.go:308 +0x512
sync.(*Once).Do(0xc420419ab0, 0xc4201e2690)
/home/howard/go/src/sync/once.go:44 +0xbe
github.com/HouzuoGuo/laitos/launcher.Config.GetHTTPD(0xc420000f00, 0xc420013840, 0xb, 0xc42005f400, 0x11, 0x9dd, 0xc420013830, 0x6, 0xc42008c140, 0x45, ...)
/home/howard/gopath/src/github.com/HouzuoGuo/laitos/launcher/config.go:206 +0x89
main.main.func2(0xc4203e9140, 0xc420081b00)
/home/howard/gopath/src/github.com/HouzuoGuo/laitos/main.go:264 +0x57
created by main.main

@HouzuoGuo HouzuoGuo self-assigned this Nov 26, 2017
@HouzuoGuo HouzuoGuo added the bug label Nov 26, 2017
@HouzuoGuo
Copy link
Owner Author

This issue hasn't been observed again after many restart attempts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant