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

panic serving 127.0.0.1:54662: runtime error: invalid memory address or nil pointer dereference #1015

Closed
532910 opened this issue Oct 25, 2024 · 0 comments · Fixed by #1017
Closed
Assignees
Labels
bug Something isn't working I4 No visible changes S4 Routine U1 Critically important to resolve quickly
Milestone

Comments

@532910
Copy link

532910 commented Oct 25, 2024

Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: info        http/server.go:3487        http: panic serving 127.0.0.1:54662: runtime error: invalid memory address or nil pointer dereference
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: goroutine 93099 [running]:
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.(*conn).serve.func1()
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:1947 +0xbe
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: panic({0x106c640?, 0x1e26fe0?})
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         runtime/panic.go:785 +0x132
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api/layer.(*layer).uploadPart(0xc0006a7580, {0x154ee50, 0xc007ae91a0}, 0xc0006aabd0, 0xc007ae9200)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/layer/multipart_upload.go:273 +0x7ab
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api/layer.(*layer).UploadPart(0xc0006a7580, {0x154ee50, 0xc007ae91a0}, 0xc007ae9200)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/layer/multipart_upload.go:218 +0x225
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api/handler.(*handler).UploadPartHandler(0xc00083c600, {0x154d550, 0xc006096c80}, 0xc006958780)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/handler/multipart_upload.go:233 +0x683
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0xc00043a070?, {0x154d550?, 0xc006096c80?}, 0x0?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.Attach.APIStats.func8({0x154d4f0, 0xc007ae8f30}, 0xc006958780)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/metrics/api.go:122 +0x234
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(...)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.(*maxClients).Handle.func1({0x154d4f0, 0xc007ae8f30}, 0xc006958780)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/max_clients.go:51 +0x3b0
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0xc00083c600?, {0x154d4f0?, 0xc007ae8f30?}, 0xc006958780?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.Attach.appendCORS.func4.1({0x154d4f0, 0xc007ae8f30}, 0xc006958780)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/router.go:148 +0x68
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0xc006958500?, {0x154d4f0?, 0xc007ae8f30?}, 0xc008e8ea30?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.Attach.AttachUserAuth.func3.1({0x154d4f0, 0xc007ae8f30}, 0xc006958500)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/user_auth.go:54 +0x468
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0xc0007a35e8?, {0x154d4f0?, 0xc007ae8f30?}, 0x0?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.Attach.appendPreflight.func2.1({0x154d4f0, 0xc007ae8f30}, 0xc006958500)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/router.go:163 +0x9b
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0x154ee50?, {0x154d4f0?, 0xc007ae8f30?}, 0xc0007a3670?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.Attach.logErrorResponse.func1.1({0x154d3f0, 0xc0015b0c40}, 0xc006958500)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/router.go:175 +0xd7
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0x154d3f0?, {0x154d3f0?, 0xc0015b0c40?}, 0x2?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/nspcc-dev/neofs-s3-gw/api.setRequestID.func1({0x154d3f0, 0xc0015b0c40}, 0xc006958280)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/nspcc-dev/neofs-s3-gw/api/router.go:140 +0x43f
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.HandlerFunc.ServeHTTP(0xc006958140?, {0x154d3f0?, 0xc0015b0c40?}, 0x10?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2220 +0x29
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: github.com/gorilla/mux.(*Router).ServeHTTP(0xc00001a9c0, {0x154d3f0, 0xc0015b0c40}, 0xc006958000)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         github.com/gorilla/[email protected]/mux.go:212 +0x1e2
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.serverHandler.ServeHTTP({0x1546140?}, {0x154d3f0?, 0xc0015b0c40?}, 0x6?)
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:3210 +0x8e
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: net/http.(*conn).serve(0xc00076b830, {0x154ee50, 0xc0005b20f0})
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:2092 +0x5d0
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]: created by net/http.(*Server).Serve in goroutine 129
Oct 25 09:18:47 apollo7 neofs-s3-gw[1126180]:         net/http/server.go:3360 +0x485
@532910 532910 added bug Something isn't working U2 Seriously planned labels Oct 25, 2024
@roman-khimov roman-khimov added this to the v0.32.1 milestone Oct 25, 2024
@roman-khimov roman-khimov added S4 Routine I4 No visible changes labels Oct 25, 2024
@roman-khimov roman-khimov added U1 Critically important to resolve quickly and removed U2 Seriously planned labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes S4 Routine U1 Critically important to resolve quickly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants