explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Running peer.js

Open jjh221 opened this issue 3 years ago • 6 comments

When running

sudo node scripts/peers.js

I get

Saved peers missing ports or country, dropping peers. Re-reun this script afterwards.

Other explorers do not have this issues.

jjh221 avatar Jan 24 '21 01:01 jjh221

Can you share the output of https://yourexplorer/api/getpeerinfo ?

Hide anything sensitive if you need to.

TheHolyRoger avatar Jan 25 '21 04:01 TheHolyRoger

Hey thanks for the reply. Yea the api getpeerinfo works. What information should I be looking for?

Its strange that one explorer the network tab will work sometimes and show information but on another it will not work and gives me the message above when running peers.js. Both are created from same snapshot. Database error?

jjh221 avatar Jan 25 '21 15:01 jjh221

@jjh221 have you upgraded from any previous versions? Database should be fine as the script will drop all peers from the database when that message is displayed.

It's more likely that the script keeps adding peers with missing ports or country fields, but I need the output of getpeerinfo to understand why

You need to look at all the peers on getpeerinfo and check the format of their "addr" fields - they should be: "ip:port"

TheHolyRoger avatar Jan 25 '21 16:01 TheHolyRoger

I have the same issue. Here is my data: [{"id":0,"addr":"159.203.80.106","addrlocal":"209.145.58.82:54492","addrbind":"209.145.58.82:54492","services":"000000000000040

lurchinms avatar Apr 28 '21 00:04 lurchinms

That's the issue missing port numbers..... Need to write a NULL

lurchinms avatar Apr 28 '21 00:04 lurchinms

where did i get this ? must i install other tool like insight explorer?

G33kNoob avatar Feb 26 '23 17:02 G33kNoob