migalabs / armiarma

Armiarma is a Libp2p open-network crawler with a current focus on Ethereum's CL network
https://monitoreth.io
MIT License
36 stars 13 forks source link

beacon metadata missing #44

Closed henridf closed 1 year ago

henridf commented 1 year ago

I'm running armiarma eth2 and not getting any of the beacon metadata fields. The logs indicate mostly "deadline exceeded" errors, and some others. Before I dig further into this, any obvious gotchas that I may be missing?

(note this is not the verbatim log, it is grepped for "metadata")

time="2022-07-26T16:23:44-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmU23jf7WQxMQUQpWKCJdgVrU4x98iks9xR5Ain8H6G2d3" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmVm7uVwKzR4QYpoEhrN8mVyb1CgekBP597rbmZz7eSkb5" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmB8EATz3JaS3MGEtyduJLug7Cc79wVh51rFJkXGnBGiLF" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm6xfMBzEPBA1si5G8rgSWVZMqqBs9aeBFxDePFYGRhn24" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm59TzKHD4rHZHFcMDMmxFBFH2Nqfo4XaA48P4MoovGmFw" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm1mUQfc1wR6tSHAc25Ya9PP5o5bEi2XAbSERU41DMshuM" ERROR="failed to read chunk 0 result byte: closed stream" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmE67h2tZatmsZwz8eRPua1gYpkggvs7fgbGsnhnhpQdxF" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:45-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmFPihXrfpxzNUksmFYBbQJT1sjZ8mKygtiticW6s1qRSx" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:46-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm7QBmaAP13qUXEUdiuytmPaUfCjpA45MtKUiAbvnmWgcE" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:46-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmDkzgqaNpsw5Qd8CnDVuNKmJWw6tJmyFAvUUnJBJahaJQ" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:46-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm3uqmFmnBoLAUaasBMLD89z7o3FxWn9GnwukZai9isjDw" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:46-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmM2RTALFXApXphK6UwCCsmcqNHj2zVnpVHgYtvhtfMTx6" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:46-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAkyujMxJNySf9MTyKn2eXVE6qHkWRv121ZMccP8nxc5Fos" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:47-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm4y3WS7tPwixthVUUiLDwNJZmW33rmv3m3bo3HWTFzEq7" ERROR="protocol not supported" module=LIBP2P-HOST
time="2022-07-26T16:23:48-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm8DdMJpDi21QQYXqigrLicBjGeb8D73DMA19gAMx9D3ek" ERROR="protocol not supported" module=LIBP2P-HOST
time="2022-07-26T16:23:51-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm5d6ySV8k1Yxa9uDvDp7aALvpL22rezoy2em5gzY414QZ" ERROR="context deadline exceeded" module=LIBP2P-HOST
time="2022-07-26T16:23:54-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAmJzxHPgv6qaE3EBPq7bkZhAEDgzmwXioRk2Z3krJAUeck" ERROR="protocol not supported" module=LIBP2P-HOST
time="2022-07-26T16:23:55-07:00" level=debug msg="ReqMetadata Peer: 16Uiu2HAm4n8vadewKeCRTuZgK2vNjJAzrSVKgwGS7wkAYRpMVEC8" ERROR="stream reset" module=LIBP2P-HOST
henridf commented 1 year ago

Adding a few comments/questions as I poke around:

cortze commented 1 year ago

Hey @henridf ! Thank you very much for being active in the repo!

About the errors that were listed in the Issue:

I won't have much time to dig into this over this week, although I might be able to fix this over the late-next one.

Also, just for you to know, I'm planning on reorganizing the crawler over the summer (especially the SQL database), so let me know or feel free to open an issue if there is something you think is missing.

henridf commented 1 year ago

Thanks for the quick response @cortze ! I'm going to take a stab at addressing these issues.

Also, just for you to know, I'm planning on reorganizing the crawler over the summer (especially the SQL database), so let me know or feel free to open an issue if there is something you think is missing.

Interesting and thanks for heads up. Is this a general refactor/cleanup type of reorg or do you have any feature/functional changes in mind?

cortze commented 1 year ago

It will be a general clean up refactor with a specific focus on the SQL database. I really think that the code can be refactored in a more modular way and it starts by cleaning up the DB.

After that, I'm thinking of adding more GossipSub-oriented metrics or submodules, but the overall functionality of the tool should remain intact. We are, in fact, using it as the main data source for our public dashboard

cortze commented 1 year ago

closing this, as it is solved in #52