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

Closed
opened 2025-12-28 17:37:29 +00:00 by sami · 0 comments
Owner

Originally created by @532910 on GitHub (Oct 25, 2024).

Originally assigned to: @smallhive on GitHub.

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/mux@v1.8.1/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
Originally created by @532910 on GitHub (Oct 25, 2024). Originally assigned to: @smallhive on GitHub. ``` 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/mux@v1.8.1/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 ```
sami 2025-12-28 17:37:29 +00:00
  • closed this issue
  • added the
    bug
    S4
    I4
    U1
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#463
No description provided.