cuigh / swirl

A web UI for Docker, focused on swarm cluster.
MIT License
616 stars 80 forks source link

runtime error: index out of range #23

Closed 502647092 closed 5 years ago

502647092 commented 5 years ago
[E]2019-03-01 08:31:07.741: PANIC: runtime error: index out of range, stack: goroutine 2802 [running]:
github.com/cuigh/auxo/net/web/filter.(*Recover).Apply.func2.1(0xc0000255d0, 0xc000396d00, 0xc7eca0, 0xc000360480)
    /go/pkg/mod/github.com/cuigh/auxo@v0.0.0-20180918072922-35f08384a278/net/web/filter/recover.go:46 +0x117
panic(0xad7ee0, 0x10e7750)
    /usr/local/go/src/runtime/panic.go:513 +0x1b9
github.com/cuigh/swirl/model.NewServiceInfo(0xc0003ba980, 0x19, 0x1ee24, 0x32cc0638, 0xed40ae4ae, 0x0, 0x33b59f6d, 0xed40ae4ae, 0x0, 0xc000417240, ...)
    /go/src/github.com/cuigh/swirl/model/docker.go:279 +0x1b82
github.com/cuigh/swirl/biz/docker.ServiceCommand(0xc000312ded, 0xb, 0x1, 0x1, 0x1, 0x0)
    /go/src/github.com/cuigh/swirl/biz/docker/service.go:604 +0x213
github.com/cuigh/swirl/controller.serviceDetail(0xc7eca0, 0xc000360480, 0xc0003cb560, 0xad2f84)
    /go/src/github.com/cuigh/swirl/controller/service.go:100 +0x578
github.com/cuigh/swirl/security.Permiter.func1(0xc7eca0, 0xc000360480, 0xc702a0, 0xc0000569c0)
    /go/src/github.com/cuigh/swirl/security/perm.go:30 +0xb0
github.com/cuigh/auxo/net/web/filter.(*Authorizer).Apply.func1(0xc7eca0, 0xc000360480, 0xc000360480, 0xc000312e27)
    /go/pkg/mod/github.com/cuigh/auxo@v0.0.0-20180918072922-35f08384a278/net/web/filter/authorizer.go:74 +0x733
github.com/cuigh/auxo/net/web/filter/auth.(*Form).Apply.func1(0xc7eca0, 0xc000360480, 0xc0000255d0, 0xc000396d00)
    /go/pkg/mod/github.com/cuigh/auxo@v0.0.0-20180918072922-35f08384a278/net/web/filter/auth/form.go:138 +0x7f
github.com/cuigh/auxo/net/web/filter.(*Recover).Apply.func2(0xc7eca0, 0xc000360480, 0x0, 0x0)
    /go/pkg/mod/github.com/cuigh/auxo@v0.0.0-20180918072922-35f08384a278/net/web/filter/recover.go:54 +0x91
github.com/cuigh/auxo/net/web.(*Server).execute(0xc000364000, 0xc000360480, 0xc702e0, 0xc0003a6740)
    /go/pkg/mod/github.com/cuigh/auxo@v0.0.0-20180918072922-35f08384a278/net/web/server.go:356 +0xc7
github.com/cuigh/auxo/net/web.(*Server).ServeHTTP(0xc000364000, 0xc6f320, 0xc0002ff500, 0xc00029cc00)
    /go/pkg/mod/github.com/cuigh/auxo@v0.0.0-20180918072922-35f08384a278/net/web/server.go:317 +0x13a
net/http.serverHandler.ServeHTTP(0xc00033c8f0, 0xc6f320, 0xc0002ff500, 0xc00029cc00)
    /usr/local/go/src/net/http/server.go:2741 +0xab
net/http.(*conn).serve(0xc000286d20, 0xc6ffe0, 0xc0002fbfc0)
    /usr/local/go/src/net/http/server.go:1847 +0x646
created by net/http.(*Server).Serve
    /usr/local/go/src/net/http/server.go:2851 +0x2f5
502647092 commented 5 years ago

@cuigh 能更新一下镜像嘛

cuigh commented 5 years ago

@502647092 Image was already pushed on latest tag