Team-Hycon / hycon-core

Core Repository for the HYCON blockchain
https://hycon.io
MIT License
37 stars 29 forks source link

can't sync #3

Closed unique83 closed 6 years ago

unique83 commented 6 years ago

Can't sync on windows. I keep getting these messages

[2018-06-05 19:53:46.763] [INFO] CpuMiner - CPU Hashrate: 0 H/s / CPU Count : 1
[2018-06-05 19:53:48.074] [INFO] Sync - No peer to sync with, Local=0

Is there a reason for this? How can i fix this?

kenold commented 6 years ago

I'm having the same issue on Windows 10, 64Bit Machine. image

jmelett commented 6 years ago

Same here, my guess is that it's related to UPnP (which is enabled on my router):

[2018-06-06 15:09:34.129] [DEBUG] Nat - Failed to map port 8148 --> 8148, Attempt 0 of 5
[2018-06-06 15:09:35.931] [DEBUG] Nat - Failed to map port 8148 --> 51062, Attempt 1 of 5
[2018-06-06 15:09:37.732] [DEBUG] Nat - Failed to map port 8148 --> 56456, Attempt 2 of 5
[2018-06-06 15:09:37.983] [INFO] RestClient - other: /api/v1/blockList/0
[2018-06-06 15:09:39.536] [DEBUG] Nat - Failed to map port 8148 --> 58700, Attempt 3 of 5
[2018-06-06 15:09:41.341] [DEBUG] Nat - Failed to map port 8148 --> 53393, Attempt 4 of 5
[2018-06-06 15:09:41.341] [DEBUG] Nat - Upnp Port mapping failed
[2018-06-06 15:09:41.342] [DEBUG] Nat - Upnp Warning: Error: Upnp Port mapping failed, please confirm your router supports UPNP and that UPNP is enabled or you just not behind the NAT, Hycon will use your local port:8148
[2018-06-06 15:09:42.133] [INFO] CpuMiner - CPU Hashrate: 0 H/s
[2018-06-06 15:09:43.144] [DEBUG] Nat - Get external IP failed, hycon will use your local IP: if you are not behind NAT

Tested on OS X 10.13.2 (Darwin 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64)

unique83 commented 6 years ago

I have upnp enabled and I don't get this upnp error

dumprat commented 6 years ago

I had sync issue also in win10 + mac...

To resolve: 1) go to http://hplorer.com/peers 2) open a shell and try to ping the hosts on the peer list ("ping xxx.xxx.xx.xx") until you find one that does not time out:

_MacBook-Pro:~ dump_rat$ ping 116.122.128.49 PING 116.122.128.49 (116.122.128.49): 56 data bytes 64 bytes from 116.122.128.49: icmp_seq=0 ttl=40 time=249.023 ms 64 bytes from 116.122.128.49: icmp_seq=1 ttl=40 time=224.698 ms 64 bytes from 116.122.128.49: icmpseq=2 ttl=40 time=255.991 ms ^Z

3) open your launch script and add parameter to force peer (use the value in the "connection string" column for the valid host you previously pinged). _./hycon --api --apiport=2442 --peer 116.122.128.49:63975 --cpuMiners=1 $@

icemanphd commented 6 years ago

Sync issues should be fixed in the latest release .5 release