-
Notifications
You must be signed in to change notification settings - Fork 717
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 randomly stops syncing, after restart it's fine (for some time) #1962
Comments
Same here, seems the node will stop getting new block and also tendermint rpc will down. (default 26656). Left rest api (default 1317) working. |
Sync status not stable and so slow. |
same issue here. Using |
@bb4L have you managed to resolve the issue? Not only it happened in my prod setup but I also run into same issue on the fresh install |
unfortunately no, it's still happening quite often, i have two different nodes one of them being a fresh install (let's say couple of weeks old...) |
We also ran into this issue -- our node would never make it 24 hours without halting syncing. We resolved it by switching to rocksdb, using the address book at https://polkachu.com/addrbooks/cosmos, and increasing the number of outbound peers to 200. The node has now been stable for 4+ days. |
that didn't help and according to their dev team should not be a root cause of an issue. The only way to keep it running was using a bash script to periodically query |
@thanethomson is this a known issue for Tendermint? |
Sorry for disturb, still nobody found out the solution? Is it possible due to using 1317 port (API PORT), that might cause the service stop syncing? Thank you. |
@bb4L could you please let us know if the issue still exist with v8.0.1? |
Hi @bb4L we're checking with the Tendermint team. I'll get back to you once I have some more info. |
Hi, can someone provide a minimal way to reproduce this issue? We'd be glad to look into this, but we need that first. The config.toml with peers, gaia version, etc. Many thanks! |
@adizere would you recommend doing a tendermint debug dump? |
@mmulji-ic
|
I have 2 nodes running gaiad 9.0.1 and on both tendermint seems to stop working frequently and http://localhost:1317/cosmos/base/tendermint/v1beta1/blocks/latest requests start to timeout. I run bash script that restarts gaiad when this resource times out. One of 2 nodes (4cpu/16gb ram) was running fine since last Tuesday up until yesterday evening. Since yesterday it seems that it dies every ~3-5min. Standard config. |
Thanks @bb4L @Daniel1984, we're actively monitoring our node but have not seen the behavior you're reporting yet. Do you monitor your node? Wondering if the problem is not under-resourcing, i.e., the virtual machine on which your node is running might be unable to keep up with the network. Would be good to check how the cpu/memory profile looks like to eliminate that potential root cause!
Would be very helpful indeed! |
cpu / memory looks fine on my instance(s) |
@Daniel1984 we discussed this a bit in the Telegram channel, @MSalopek did a bit of an investigation, @nddeluca @bb4L it would be good to check the number of incoming rest/grpc calls, what endpoint they are using and seeing if pagination limits have a beneficial effect as @MSalopek noted below.
@adizere could you also replicate with some heavy calls to the rest endpoints and see how the performance is impacted? |
for me the effect is also on nodes which aren't used by applications (so it can't be a only load related issue) |
Is there a way to trigger the problem? It seems like one way to reproduce the problem is by increasing the RPC (REST/gRPC) load on the node. Without that kind of pressure, are there other means to trigger this issue?
I think it's known already that the JSON/RPC endpoints that CometBFT exposes (also REST and gRPC which are at the app-level) are not meant to be exposed without protection against abuse by front-end users. See "DoS Exposure and Mitigation" here. I'll think if there's additional context we can add in that section of the docs. Any thoughts/specific feedback welcome! |
can't tell since it's happening without me doing anything... / without having a high rpc load |
I can assure you that I have noticed this same issue on other Cosmos SDK chains (Secret and Terra2) several times. This is not gaia specific, there is something else upstream. It started happening a couple of months ago. I am sorry I have not been able to narrow it down aside from time and chains in which we've seen this exact issue happening. |
We have the same problem when running chihuahuad (based on cosmos SDK). The problem ocurs for us only when REST API enabled and some application tries to download all accounts using endpoint: "cosmos/auth/v1beta1/accounts" (paginated). At this moment in our node logs we can see this output: Disabling API is fully solving the problem. Upscaling VPS to from 4\8 to 16 cores\64GB RAM not solving the problem. This issue for all COSMOS SDK projects. Seems that the issue may be closed. |
@bb4L this is the conclusion that we ended with, that theres an interplay with network traffic and the node performance. This is a tendermint / comet level issue, that we think has been addressed in versions after v8. Currently, v8 / v9 are not supported in production, only for archive related issues, therefore closing this issue. for future versions, we will ask the Comet team to include longer term tests with heavy rpc / rest loads to confirm that there is no regression and that the performance characteristics are understood. |
Related to issue #1962 |
Summary of Bug
I'm running a cosmos node and occasionally (now at least once a day) it just stops syncing, in the logs i can see some
2:11PM ERR Connection failed @ sendRoutine conn={"Logger":{}} err="pong timeout" module=p2p peer={"id":"5dc6a28f2caff8e61c47c1c9b658e7b1ea5fbfd9","ip":"5.9.42.116","port":26656}
and
2:11PM ERR Stopping peer for error err=EOF module=p2p peer={"Data":{},"Logger":{}}
It doesn't recover by itself, the only way to get it back synced is to restart it (the container)
EDIT:
restart doesn't always immediately help, i get the same logs for the connections
i also just tried with a newly downloaded addrbook.json
Version
v7.1.0
Steps to Reproduce
i'm just running a node with
gaiad start --x-crisis-skip-assert-invariants
For Admin Use
The text was updated successfully, but these errors were encountered: