Floating error, Put objects using HTTP with attribute - code = 4096 message = session token not found #87

Closed
opened 2025-12-28 17:36:05 +00:00 by sami · 10 comments
Owner

Originally created by @acheyda on GitHub (Oct 31, 2022).

Originally assigned to: @alexvanin on GitHub.

Floating error, Put objects using HTTP with attribute - code = 4096 message = session token not found

Expected Behavior

'http://obj-nn-test-node2.spb.yadro.com:81/upload/BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr'
RESPONSE:
 {'object_id': '9QbV9wEhLL9mMMGkRgyEVEpHJydDWe7pLCDbS9cpwVcS', 'container_id': 'BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr'}

Current Behavior

 Failed to get object via HTTP gate:
                request: /upload/BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr,
                response: could not store file in neofs: init writing on API client: client failure: status: code = 4096 message = session token not found, status code: 400 Bad Request

Steps to Reproduce (for bugs)

1.Create Container
2.Upload via HTTP Gate

Failed to get object via HTTP gate:
                request: /upload/BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr,
                response: could not store file in neofs: init writing on API client: client failure: status: code = 4096 message = session token not found, status code: 400 Bad Request

Context

Regression

Your Environment

NeoGo
Version: 0.99.3-2-gaa57779d
GoVersion: go1.18.4
NeoFS CLI
Version: v0.33.0-27-g7d456cb4
GoVersion: go1.18.4
NeoFS Adm
Version: v0.33.0-27-g7d456cb4
GoVersion: go1.18.4

obj-nn-test-node2.spb.yadro.com-http_gate-log.txt
obj-nn-test-node2.spb.yadro.com-ir01-log.txt

Originally created by @acheyda on GitHub (Oct 31, 2022). Originally assigned to: @alexvanin on GitHub. Floating error, Put objects using HTTP with attribute - code = 4096 message = session token not found ## Expected Behavior ``` 'http://obj-nn-test-node2.spb.yadro.com:81/upload/BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr' RESPONSE: {'object_id': '9QbV9wEhLL9mMMGkRgyEVEpHJydDWe7pLCDbS9cpwVcS', 'container_id': 'BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr'} ``` ## Current Behavior ``` Failed to get object via HTTP gate: request: /upload/BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr, response: could not store file in neofs: init writing on API client: client failure: status: code = 4096 message = session token not found, status code: 400 Bad Request ``` ## Steps to Reproduce (for bugs) <!-- Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. --> 1.Create Container 2.Upload via HTTP Gate ``` Failed to get object via HTTP gate: request: /upload/BCCzdUR4Fiy28TJtZRfWhG8y8kJr9sffLW9pdEoeZRwr, response: could not store file in neofs: init writing on API client: client failure: status: code = 4096 message = session token not found, status code: 400 Bad Request ``` ## Context <!-- How has this issue affected you? What are you trying to accomplish? Providing context helps us come up with a solution that is most useful in the real world --> ## Regression <!-- Is this issue a regression? (Yes / No) If Yes, optionally please include version or commit id or PR# that caused this regression, if you have these details --> ## Your Environment NeoGo Version: 0.99.3-2-gaa57779d GoVersion: go1.18.4 NeoFS CLI Version: v0.33.0-27-g7d456cb4 GoVersion: go1.18.4 NeoFS Adm Version: v0.33.0-27-g7d456cb4 GoVersion: go1.18.4 [obj-nn-test-node2.spb.yadro.com-http_gate-log.txt](https://github.com/nspcc-dev/neofs-node/files/9898553/obj-nn-test-node2.spb.yadro.com-http_gate-log.txt) [obj-nn-test-node2.spb.yadro.com-ir01-log.txt](https://github.com/nspcc-dev/neofs-node/files/9898596/obj-nn-test-node2.spb.yadro.com-ir01-log.txt)
sami 2025-12-28 17:36:05 +00:00
  • closed this issue
  • added the
    bug
    U3
    labels
Author
Owner

@alexvanin commented on GitHub (Nov 1, 2022):

Let's see http + storage logs when this appear once again.

@alexvanin commented on GitHub (Nov 1, 2022): Let's see http + storage logs when this appear once again.
Author
Owner

@KirillovDenis commented on GitHub (Nov 2, 2022):

It also would be nice to see http-gw config

@KirillovDenis commented on GitHub (Nov 2, 2022): It also would be nice to see http-gw config
Author
Owner

@KirillovDenis commented on GitHub (Nov 2, 2022):

Actually it can be normal behavior on node restart (we need to check this in storage node logs)

In sdk pool we can cache old tokens that become invalid sometimes and we should recreated them.
nspcc-dev/neofs-sdk-go@7a2a76af95/pool/pool.go (L1644)
nspcc-dev/neofs-sdk-go@7a2a76af95/pool/pool.go (L1843)

@KirillovDenis commented on GitHub (Nov 2, 2022): Actually it can be normal behavior on node restart (we need to check this in storage node logs) In sdk pool we can cache old tokens that become invalid sometimes and we should recreated them. https://github.com/nspcc-dev/neofs-sdk-go/blob/7a2a76af95a7b9ff59155583f79c43c58ed5303d/pool/pool.go#L1644 https://github.com/nspcc-dev/neofs-sdk-go/blob/7a2a76af95a7b9ff59155583f79c43c58ed5303d/pool/pool.go#L1843
Author
Owner

@acheyda commented on GitHub (Nov 2, 2022):

Sorry, I forgot to add.
NeoFS HTTP Gateway
Version: v0.24.0-17-g1b172e58
GoVersion: go1.18.4

@acheyda commented on GitHub (Nov 2, 2022): Sorry, I forgot to add. NeoFS HTTP Gateway Version: v0.24.0-17-g1b172e58 GoVersion: go1.18.4
Author
Owner

@alexvanin commented on GitHub (Nov 2, 2022):

Actually it can be normal behavior on node restart (we need to check this in storage node logs)

Agree. With @acheyda we tried to find some node restart messages but didn't find any. Storage node logs are still appreciated in this issue.

@alexvanin commented on GitHub (Nov 2, 2022): > Actually it can be normal behavior on node restart (we need to check this in storage node logs) Agree. With @acheyda we tried to find some node restart messages but didn't find any. Storage node logs are still appreciated in this issue.
Author
Owner
@acheyda commented on GitHub (Nov 2, 2022): [obj-nn-test-node2.spb.yadro.com-s03-log.txt](https://github.com/nspcc-dev/neofs-http-gw/files/9921273/obj-nn-test-node2.spb.yadro.com-s03-log.txt) [obj-nn-test-node2.spb.yadro.com-coredns-log.txt](https://github.com/nspcc-dev/neofs-http-gw/files/9921282/obj-nn-test-node2.spb.yadro.com-coredns-log.txt) [obj-nn-test-node2.spb.yadro.com-s02-log.txt](https://github.com/nspcc-dev/neofs-http-gw/files/9921285/obj-nn-test-node2.spb.yadro.com-s02-log.txt) [obj-nn-test-node2.spb.yadro.com-s01-log.txt](https://github.com/nspcc-dev/neofs-http-gw/files/9921292/obj-nn-test-node2.spb.yadro.com-s01-log.txt) [obj-nn-test-node2.spb.yadro.com-s04-log.txt](https://github.com/nspcc-dev/neofs-http-gw/files/9921306/obj-nn-test-node2.spb.yadro.com-s04-log.txt)
Author
Owner

@KirillovDenis commented on GitHub (Nov 3, 2022):

What about http-gw config?

@KirillovDenis commented on GitHub (Nov 3, 2022): What about http-gw config?
Author
Owner

@alexvanin commented on GitHub (Nov 8, 2022):

This bug haven't seen in november nightly tests (there were a few of them, though). Keep looking 👀

@alexvanin commented on GitHub (Nov 8, 2022): This bug haven't seen in november nightly tests (there were a few of them, though). Keep looking :eyes:
Author
Owner

@alexvanin commented on GitHub (Nov 24, 2022):

Let's wait till beginning of december.

@alexvanin commented on GitHub (Nov 24, 2022): Let's wait till beginning of december.
Author
Owner

@alexvanin commented on GitHub (Nov 25, 2022):

We've seen some node restarts with https://github.com/nspcc-dev/neofs-node/issues/2095 (not sure it is related to restart, though). This error is expected in case of storage node restart without persistent_session.path

@alexvanin commented on GitHub (Nov 25, 2022): We've seen some node restarts with https://github.com/nspcc-dev/neofs-node/issues/2095 (not sure it is related to restart, though). This error is expected in case of storage node restart without [persistent_session.path](https://github.com/nspcc-dev/neofs-node/blob/816c74d1857f2f0940af27da029413b3716c2eeb/config/example/node.yaml#L29)
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-http-gw#87
No description provided.