Closed ingvarrwvw closed 1 year ago
Hi, thank you for the report.
I'm assuming some kind of panic happened on the backend.
Can you check your journalctl
if you see any unusual error messages from linstor-gatway?
Yes, you are right:
time="2022-12-05T10:12:53Z" level=warning msg="failed to fetch deployed resources" error="failed to fetch resource definition: 404 Not Found" 2022/12/05 10:12:53 http: panic serving [::1]:46910: runtime error: invalid memory address or nil pointer dereference goroutine 18 [running]: net/http.(*conn).serve.func1()
panic({0x97aac0, 0xe25ed0})
github.com/LINBIT/linstor-gateway/pkg/iscsi.FromPromoter(0xc0002ea1c0?, 0x0, {0x0, 0x0, 0xc000130080?})
github.com/LINBIT/linstor-gateway/pkg/iscsi.(*ISCSI).List(0xc000010230, {0xaf3dc0, 0xc000482960})
github.com/LINBIT/linstor-gateway/pkg/rest.(*server).ISCSIList.func1({0xaf3928, 0xc0003f22a0}, 0x0?)
net/http.HandlerFunc.ServeHTTP(0x951300?, {0xaf3928?, 0xc0003f22a0?}, 0xc?)
github.com/LINBIT/linstor-gateway/pkg/rest.(*server).routes.func1.1({0xaf3928, 0xc0003f22a0}, 0xc000482960?)
net/http.HandlerFunc.ServeHTTP(0xc0003c0800?, {0xaf3928?, 0xc0003f22a0?}, 0xba007fdb283ac550?)
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002ac000, {0xaf3928, 0xc0003f22a0}, 0xc0003c0700)
github.com/rs/cors.(*Cors).Handler.func1({0xaf3928, 0xc0003f22a0}, 0xc0003c0700)
net/http.HandlerFunc.ServeHTTP(0x0?, {0xaf3928?, 0xc0003f22a0?}, 0xc0000d2800?)
net/http.serverHandler.ServeHTTP({0xc0004827e0?}, {0xaf3928, 0xc0003f22a0}, 0xc0003c0700)
net/http.(*conn).serve(0xc00038a280, {0xaf3dc0, 0xc0002c7a70})
created by net/http.(*Server).Serve
And what to do with it? how to fix? and how to understand what he can not find?
Can you outline what exactly you mean by "removing / adding new satellites"?
How many nodes did you have before, what LINSTOR commands did you run, and how many did you have afterwards?
You most likely deleted a linstor node but did not delete it iscsi target associated for deleted node
Better late than never: this should be fixed in df53d0b3fd099202b3fd65c124325097319c2579 (Will be in v1.1.1).
Feel free to reopen if this issue remains.
Hi.
After removing / adding new satellites, the gateway often stops working and gives the following error:
linstor-gateway iscsi list
Error: Get "http://localhost:8080/api/v2/iscsi": EOF
curl http://localhost:8080/api/v2/iscsi curl: (52) Empty reply from server
although at the moment there are iscsi-resources that are working and being used
linstor-gateway version 1.0.0