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

Node hangs after losing access to RPC nodes #2304

Closed
roman-khimov opened this issue Apr 14, 2023 · 1 comment · Fixed by #2308
Closed

Node hangs after losing access to RPC nodes #2304

roman-khimov opened this issue Apr 14, 2023 · 1 comment · Fixed by #2308
Assignees
Labels
bug Something isn't working neofs-storage Storage node application issues U2 Seriously planned
Milestone

Comments

@roman-khimov
Copy link
Member

Expected Behavior

Node should either retry RPC connections forever or should shutdown properly (to be restarted by systemd) when it can't connect.

Current Behavior

neofs-node[314962]: 2023-04-14T19:40:11.191Z        error        client/multi.go:113        could not establish connection to any RPC node
...
neofs-node[314962]: 2023-04-14T19:40:41.687Z        warn        subscriber/subscriber.go:136        remote notification channel has been closed
...
neofs-node[314962]: 2023-04-14T19:40:42.779Z        info        event/listener.go:228        stop event listener by context        {"reason": "context canceled"}
...
neofs-node[314962]: 2023-04-14T19:40:41.926Z        warn        neofs-node/main.go:137        internal application error        {"message": "morph connection has been lost"}
...
neofs-node[314962]: 2023-04-14T19:40:54.140Z        info        neofs-node/config.go:819        closing components of the storage engine...
...
neofs-node[314962]: 2023-04-14T19:42:28.638Z        info        neofs-node/config.go:827        all components of the storage engine closed successfully
neofs-node[314962]: 2023-04-14T19:42:28.641Z        info        neofs-node/grpc.go:110        stopping gRPC server...        {"name": "NeoFS Public API"}
neofs-node[314962]: 2023-04-14T19:42:29.074Z        info        neofs-node/grpc.go:89        stop listening gRPC endpoint        {"endpoint": "65.111.111.111:8080"}
neofs-node[314962]: 2023-04-14T19:42:29.074Z        info        neofs-node/grpc.go:126        gRPC server stopped successfully        {"name": "NeoFS Public API"}
neofs-node[314962]: 2023-04-14T19:42:29.084Z        info        neofs-node/grpc.go:110        stopping gRPC server...        {"name": "NeoFS Public API"}
neofs-node[314962]: 2023-04-14T19:42:29.118Z        info        neofs-node/grpc.go:126        gRPC server stopped successfully        {"name": "NeoFS Public API"}
neofs-node[314962]: 2023-04-14T19:42:29.118Z        info        neofs-node/grpc.go:89        stop listening gRPC endpoint        {"endpoint": "65.111.111.111:8082"}

And it hangs forever afterwards.

Context

Happens on testnet, just happens. Both with 0.35.0 and 0.36.0.

Regression

Seems like 0.34.0 behaved better.

Your Environment

  • Version used: 0.36.0
  • Server setup and configuration: testnet storage node
@roman-khimov roman-khimov added bug Something isn't working neofs-storage Storage node application issues U2 Seriously planned labels Apr 14, 2023
@roman-khimov roman-khimov added this to the v0.36.1 milestone Apr 14, 2023
@roman-khimov
Copy link
Member Author

Can be reproduced in dev-env with a simple morph_chain container restart.

@roman-khimov roman-khimov self-assigned this Apr 18, 2023
roman-khimov added a commit that referenced this issue Apr 19, 2023
This is a temporary scheme, just enough to almost get rid of "deprecated"
warnings (refs. #2219). It also fixes #2304.

See also #2306, #2307 and #1337.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit that referenced this issue Apr 19, 2023
This is a temporary scheme, just enough to almost get rid of "deprecated"
warnings (refs. #2219). It also fixes #2304.

See also #2306, #2307 and #1337.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit that referenced this issue Apr 20, 2023
Part of #2219, fixes #2304. Enough for 0.36.1 and we have a set of
related tasks to do for 0.37.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neofs-storage Storage node application issues U2 Seriously planned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant