Closed rezabagh closed 8 years ago
hello,
we i am trying to delete an image via panel i get the error "Encountered error."
and information error message by lobster: Hi,
Lobster panel encountered an error.
Error: sql: expected 6 destination arguments in Scan, not 7 Description: failed on /admin/image/1/delete (85.88.196.172:40492) Detail: goroutine 195 [running]: github.com/LunaNode/lobster.errorHandler(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0, 0x65eb01) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:84 +0xd2 github.com/LunaNode/lobster.checkErr(0x7fb52bf9a028, 0xc8204ea530) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:45 +0x4b github.com/LunaNode/lobster.Rows.Scan(0xc820416420, 0xc820401218, 0x7, 0x7) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/database.go:70 +0x61 github.com/LunaNode/lobster.imageListHelper(0xc820416420, 0x0, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/image.go:40 +0x349 github.com/LunaNode/lobster.imageGetForce(0x1, 0xc8200ed0a8) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/image.go:97 +0xfd github.com/LunaNode/lobster.imageDeleteForce(0x1, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/image.go:172 +0x58 github.com/LunaNode/lobster.adminImageDelete(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0, 0xc8204e3500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/admin.go:302 +0x190 github.com/LunaNode/lobster.adminWrap.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0, 0xc8204e3500) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/admin.go:45 +0x35f github.com/LunaNode/lobster.SessionWrap.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/session.go:77 +0x90f net/http.HandlerFunc.ServeHTTP(0xc820372870, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/gorilla/mux.(_Router).ServeHTTP(0xc820015ea0, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/gorilla/mux/mux.go:98 +0x29e github.com/gorilla/context.ClearHandler.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/gorilla/context/context.go:141 +0x85 net/http.HandlerFunc.ServeHTTP(0xc8203c05e0, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/LunaNode/lobster.LobsterHandler.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:47 +0x304 net/http.HandlerFunc.ServeHTTP(0xc8203c0600, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:1605 +0x3a net/http.serverHandler.ServeHTTP(0xc8203b2f80, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:2068 +0x19e net/http.(_conn).serve(0xc820307880) /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!
thank you for any advise.
Fixed in e597b66c11298f62fbe0d712086b4b8b3563601d, thanks for reporting.
hello,
we i am trying to delete an image via panel i get the error "Encountered error."
and information error message by lobster: Hi,
Lobster panel encountered an error.
Error: sql: expected 6 destination arguments in Scan, not 7 Description: failed on /admin/image/1/delete (85.88.196.172:40492) Detail: goroutine 195 [running]: github.com/LunaNode/lobster.errorHandler(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0, 0x65eb01) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:84 +0xd2 github.com/LunaNode/lobster.checkErr(0x7fb52bf9a028, 0xc8204ea530) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/common.go:45 +0x4b github.com/LunaNode/lobster.Rows.Scan(0xc820416420, 0xc820401218, 0x7, 0x7) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/database.go:70 +0x61 github.com/LunaNode/lobster.imageListHelper(0xc820416420, 0x0, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/image.go:40 +0x349 github.com/LunaNode/lobster.imageGetForce(0x1, 0xc8200ed0a8) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/image.go:97 +0xfd github.com/LunaNode/lobster.imageDeleteForce(0x1, 0x0, 0x0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/image.go:172 +0x58 github.com/LunaNode/lobster.adminImageDelete(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0, 0xc8204e3500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/admin.go:302 +0x190 github.com/LunaNode/lobster.adminWrap.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0, 0xc8204e3500) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/admin.go:45 +0x35f github.com/LunaNode/lobster.SessionWrap.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/session.go:77 +0x90f net/http.HandlerFunc.ServeHTTP(0xc820372870, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/gorilla/mux.(_Router).ServeHTTP(0xc820015ea0, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/gorilla/mux/mux.go:98 +0x29e github.com/gorilla/context.ClearHandler.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/gorilla/context/context.go:141 +0x85 net/http.HandlerFunc.ServeHTTP(0xc8203c05e0, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:1605 +0x3a github.com/LunaNode/lobster.LobsterHandler.func1(0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /home/wizardus/build/lobster/src/github.com/LunaNode/lobster/lobster.go:47 +0x304 net/http.HandlerFunc.ServeHTTP(0xc8203c0600, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:1605 +0x3a net/http.serverHandler.ServeHTTP(0xc8203b2f80, 0x7fb52bfa8c50, 0xc820115080, 0xc82041d7a0) /usr/lib/go/src/net/http/server.go:2068 +0x19e net/http.(_conn).serve(0xc820307880) /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!
thank you for any advise.