Closed rezabagh closed 8 years ago
hello,
if for any reason a VM has been suspended via solusVM admin panel then in lobster Panel it get "Encountered error." and an error log sent to admin.
i suppose in such case it would be nice that lobster Panel shows a proper VM suspension waring.
Hi,
Lobster panel encountered an error.
Error: runtime error: index out of range Description: failed on /panel/vm/26 (5.196.54.13:58383) Detail: goroutine 1344 [running]: github.com/LunaNode/lobster.errorHandler(0x7fb980779c50, 0xc820331080, 0xc820278d20, 0x1) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:84 +0xd2 github.com/LunaNode/lobster/vmi/solusvm.(_SolusVM).VmInfo(0xc8203891c0, 0xc8204caa20, 0x7fb980778270, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vmi/solusvm/solusvm.go:43 +0x5dc github.com/LunaNode/lobster.(_VirtualMachine).LoadInfo(0xc8204caa20) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vm.go:244 +0x130 github.com/LunaNode/lobster.panelVM(0x7fb980779c50, 0xc820331080, 0xc820278d20, 0xc8206f0cc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, ...) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/panel.go:168 +0x265 github.com/LunaNode/lobster.panelWrap.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20, 0xc8206f0cc0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/panel.go:47 +0x32c github.com/LunaNode/lobster.SessionWrap.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/session.go:77 +0x90f net/http.HandlerFunc.ServeHTTP(0xc8202cf110, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/gorilla/mux.(_Router).ServeHTTP(0xc820015ea0, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/gorilla/mux/mux.go:98 +0x29e github.com/gorilla/context.ClearHandler.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/gorilla/context/context.go:141 +0x85 net/http.HandlerFunc.ServeHTTP(0xc8203c2780, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/LunaNode/lobster.LobsterHandler.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:47 +0x304 net/http.HandlerFunc.ServeHTTP(0xc8203c27a0, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:1605 +0x3a net/http.serverHandler.ServeHTTP(0xc8203bd000, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:2068 +0x19e net/http.(_conn).serve(0xc82042bb00) /usr/lib/go/src/net/http/server.go:1465 +0xf2e created by net/http.(*Server).Serve /usr/lib/go/src/net/http/server.go:2124 +0x44e
This error should be resolved as soon as possible!
Error: runtime error: index out of range Description: error Detail: goroutine 100 [running]: github.com/LunaNode/lobster.errorHandler(0x0, 0x0, 0x0, 0xc820205301) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:84 +0xd2 github.com/LunaNode/lobster/vmi/solusvm.(_SolusVM).VmInfo(0xc8203891c0, 0xc8204fa480, 0xc82010be00, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vmi/solusvm/solusvm.go:43 +0x5dc github.com/LunaNode/lobster/vmi/solusvm.(_SolusVM).BandwidthAccounting(0xc8203891c0, 0xc8204fa480, 0x7fb980778270) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vmi/solusvm/solusvm.go:208 +0x2f github.com/LunaNode/lobster.vmBilling(0x1a, 0xc820033f00) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vm.go:656 +0xb15 github.com/LunaNode/lobster.cron() /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:293 +0x262 github.com/LunaNode/lobster.Run.func1() /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:267 +0x18 created by github.com/LunaNode/lobster.Run /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:270 +0x37
Thank you,
hello,
if for any reason a VM has been suspended via solusVM admin panel then in lobster Panel it get "Encountered error." and an error log sent to admin.
i suppose in such case it would be nice that lobster Panel shows a proper VM suspension waring.
Hi,
Lobster panel encountered an error.
Error: runtime error: index out of range Description: failed on /panel/vm/26 (5.196.54.13:58383) Detail: goroutine 1344 [running]: github.com/LunaNode/lobster.errorHandler(0x7fb980779c50, 0xc820331080, 0xc820278d20, 0x1) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:84 +0xd2 github.com/LunaNode/lobster/vmi/solusvm.(_SolusVM).VmInfo(0xc8203891c0, 0xc8204caa20, 0x7fb980778270, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vmi/solusvm/solusvm.go:43 +0x5dc github.com/LunaNode/lobster.(_VirtualMachine).LoadInfo(0xc8204caa20) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vm.go:244 +0x130 github.com/LunaNode/lobster.panelVM(0x7fb980779c50, 0xc820331080, 0xc820278d20, 0xc8206f0cc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, ...) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/panel.go:168 +0x265 github.com/LunaNode/lobster.panelWrap.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20, 0xc8206f0cc0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/panel.go:47 +0x32c github.com/LunaNode/lobster.SessionWrap.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/session.go:77 +0x90f net/http.HandlerFunc.ServeHTTP(0xc8202cf110, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/gorilla/mux.(_Router).ServeHTTP(0xc820015ea0, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/gorilla/mux/mux.go:98 +0x29e github.com/gorilla/context.ClearHandler.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/gorilla/context/context.go:141 +0x85 net/http.HandlerFunc.ServeHTTP(0xc8203c2780, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/LunaNode/lobster.LobsterHandler.func1(0x7fb980779c50, 0xc820331080, 0xc820278d20) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:47 +0x304 net/http.HandlerFunc.ServeHTTP(0xc8203c27a0, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:1605 +0x3a net/http.serverHandler.ServeHTTP(0xc8203bd000, 0x7fb980779c50, 0xc820331080, 0xc820278d20) /usr/lib/go/src/net/http/server.go:2068 +0x19e net/http.(_conn).serve(0xc82042bb00) /usr/lib/go/src/net/http/server.go:1465 +0xf2e created by net/http.(*Server).Serve /usr/lib/go/src/net/http/server.go:2124 +0x44e
This error should be resolved as soon as possible!
Hi,
Lobster panel encountered an error.
Error: runtime error: index out of range Description: error Detail: goroutine 100 [running]: github.com/LunaNode/lobster.errorHandler(0x0, 0x0, 0x0, 0xc820205301) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:84 +0xd2 github.com/LunaNode/lobster/vmi/solusvm.(_SolusVM).VmInfo(0xc8203891c0, 0xc8204fa480, 0xc82010be00, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vmi/solusvm/solusvm.go:43 +0x5dc github.com/LunaNode/lobster/vmi/solusvm.(_SolusVM).BandwidthAccounting(0xc8203891c0, 0xc8204fa480, 0x7fb980778270) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vmi/solusvm/solusvm.go:208 +0x2f github.com/LunaNode/lobster.vmBilling(0x1a, 0xc820033f00) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/vm.go:656 +0xb15 github.com/LunaNode/lobster.cron() /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:293 +0x262 github.com/LunaNode/lobster.Run.func1() /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:267 +0x18 created by github.com/LunaNode/lobster.Run /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:270 +0x37
Thank you,