sethforprivacy / simple-monerod-docker

A simple and straightforward Dockerized monerod built from source and exposing standard ports.
https://sethforprivacy.com/guides/run-a-monero-node/
MIT License
101 stars 18 forks source link

Sync is stopped over time #66

Closed godfuture closed 1 year ago

godfuture commented 2 years ago

Hi! The blockchain sync worked over a year without an issue. Recently the blockhain does not want to sync anymore. The sync ist being started over and over again:

2022-09-28 17:22:52.120 I [185.203.216.216:32776 INC] Sync data returned a new top block candidate: 2709620 -> 2721929 [Your node is 12309 blocks (17.1 days) behind] 
2022-09-28 17:21:09.061 I SYNCHRONIZATION started
2022-09-28 17:21:44.487 I [165.22.2.201:57456 INC] Sync data returned a new top block candidate: 2709620 -> 2721928 [Your node is 12308 blocks (17.1 days) behind] 
2022-09-28 17:21:09.061 I [147.229.190.220:56382 INC] Sync data returned a new top block candidate: 2709620 -> 2721928 [Your node is 12308 blocks (17.1 days) behind] 
2022-09-28 17:22:24.869 I SYNCHRONIZATION started
2022-09-28 17:22:34.729 I SYNCHRONIZATION started
2022-09-28 17:22:24.869 I [75.155.254.128:34981 INC] Sync data returned a new top block candidate: 2709620 -> 2721929 [Your node is 12309 blocks (17.1 days) behind] 
2022-09-28 17:21:44.488 I SYNCHRONIZATION started
2022-09-28 17:22:34.729 I [159.65.28.120:36134 INC] Sync data returned a new top block candidate: 2709620 -> 2721929 [Your node is 12309 blocks (17.1 days) behind] 
2022-09-28 17:22:52.120 I SYNCHRONIZATION started

After restart, there is a certain amount of time in which blocks are being synced. But this process stops sooner or later.

As this worked quite well in the past, what could have changed here?

Thanks in advance!

sethforprivacy commented 2 years ago

What version are you running? It's possible you didn't setup automatic updates or haven't manually updated after the fork.

godfuture commented 2 years ago

My docker image was created at 2022-09-26 14:37:32. I have updated the image manually. In the beginning, it seems to sync, but over time it stops. Might the blocked hosts be a problem here? If yes, I do not know why these hosts get blocked.

godfuture commented 2 years ago

What info could help to trace it?

godfuture commented 1 year ago

I have found the following stack:

2022-11-01 10:41:19.382 [P2P3]  INFO    stacktrace  src/common/stack_trace.cpp:133  Exception: boost::wrapexcept<boost::bad_weak_ptr>
2022-11-01 10:41:19.382 [P2P3]  INFO    stacktrace  src/common/stack_trace.cpp:134  Unwound call stack:
2022-11-01 10:41:19.382 [P2P3]  INFO    stacktrace  src/common/stack_trace.cpp:172

According to thead https://github.com/monero-project/monero/issues/6473 it has to do with hugepages. Is there any further instructions with docker to handle this? Or maybe my host is lacking just enough free ram?

sethforprivacy commented 1 year ago

@godfuture I have info on setting up hugepages here: https://sethforprivacy.com/guides/run-a-p2pool-node/#hl-7-1