Spare-Network / spare-blockchain

Apache License 2.0
68 stars 32 forks source link

Ubuntu 21.04 can't sync #63

Open archerallstars opened 3 years ago

archerallstars commented 3 years ago

OS: Ubuntu 21.04 arm64, Raspberry Pi4 B 8GB

I can't sync with the node. I believe it could be related to firewall settings. What's the port to be allowed in the firewall?

Please help!

dfunked commented 3 years ago

Full node port is 9444 - try forwarding that.

YoppY14 commented 3 years ago

Hello Same here on debian buster. port 9444 is open, i do not see another process use 9444 port, but no sync spare version : 0.1.dev6

Log :

2021-06-21T16:35:18.179 full_node spare.full_node.full_node: INFO     Received 11 peers from DNS seeder.
2021-06-21T16:35:20.538 full_node full_node_server        : INFO     Cannot connect to host introducer.sparecoin.org:9444 ssl:<ssl.SSLContext object at 0x7f46d4308250> [Name or service not known]
2021-06-21T16:35:27.900 full_node full_node_server        : INFO     Cannot connect to host introducer.sparecoin.org:9444 ssl:<ssl.SSLContext object at 0x7f46d4308e80> [Name or service not known]
2021-06-21T16:35:35.279 full_node spare.full_node.full_node: INFO     Received 11 peers from DNS seeder.
2021-06-21T16:35:37.636 full_node full_node_server        : INFO     Cannot connect to host introducer.sparecoin.org:9444 ssl:<ssl.SSLContext object at 0x7f46d4308ad8> [Name or service not known]
2021-06-21T16:35:38.714 wallet spare.wallet.wallet_node   : INFO     Will not attempt to connect to other nodes, already connected to {'host': 'localhost', 'port': 9444}
2021-06-21T16:35:44.996 full_node full_node_server        : INFO     Cannot connect to host introducer.sparecoin.org:9444 ssl:<ssl.SSLContext object at 0x7f46d4308388> [Name or service not known]
# sudo lsof -i :9444
COMMAND    PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
spare_far 7641 root    9u  IPv4 29104731      0t0  TCP localhost:49742->localhost:9444 (ESTABLISHED)
spare_ful 7642 root   24u  IPv6 29110396      0t0  TCP *:9444 (LISTEN)
spare_ful 7642 root   25u  IPv4 29110397      0t0  TCP *:9444 (LISTEN)
spare_ful 7642 root   32u  IPv4 29100886      0t0  TCP localhost:9444->localhost:49742 (ESTABLISHED)
spare_ful 7642 root   33u  IPv4 29100892      0t0  TCP localhost:9444->localhost:49760 (ESTABLISHED)
spare_wal 7643 root   20u  IPv4 29103575      0t0  TCP localhost:49760->localhost:9444 (ESTABLISHED)
# netstat -ltnpu | grep -w "9444"
tcp        0      0 0.0.0.0:9444            0.0.0.0:*               LISTEN      7642/spare_full_nod 
tcp6       0      0 :::9444                 :::*                    LISTEN      7642/spare_full_nod 

Thanx !

YoppY14 commented 3 years ago

Thanks, but it's not my issue. 9444 and 9449 are already allow .. No sync, and always the same messages in debug.log :

full_node spare.full_node.full_node: INFO     Received 11 peers from DNS seeder.
full_node full_node_server        : INFO     Cannot connect to host introducer.sparecoin.org:9444 ssl:
msdogra commented 3 years ago

Ubantu, latest code, Port 9444 Forwarded however it is not syncing and I am seeing the following error in the debug logs

2021-06-29T23:46:06.241 full_node spare.full_node.full_node: ERROR Exception while querying DNS server: The DNS query name does not exist: dns-introducer-spare.sparecoin.org. 2021-06-29T23:47:32.143 full_node spare.full_node.full_node: ERROR Exception while querying DNS server: The DNS query name does not exist: dns-introducer-spare.sparecoin.org.