ethereumproject / go-ethereum

Go language implementation of the original/classic design of the Ethereum protocol
GNU Lesser General Public License v3.0
443 stars 166 forks source link

Sync problem geth 4.1.1 #450

Closed jorgeog96 closed 5 years ago

jorgeog96 commented 6 years ago

Currently, I´m still downloading the ETC blockchain on my device...I cross the border of 2.4-2.5 M (so slow). I was in 4370000 block number and during a few days...I was experimenting problems with peers (a lot) and not going ahead with the sync. The messages are like this:

 peer "....." drop: empty header set by peer
 peer "....." drop: retrieved hash chain is invalid
 peer "......" drop: timeout

After a week and a half, I am about 4400000 but the problem is the same, a lot of problems with peers and doesn´t sync. I am also using these flags: --cache=2048 and --max-peers=60 (ensure rising the numbers of peers). I have checked the system clock and is completely correct (time, time zone and server).

This is frustrating...I can´t start the client...

Geth version: 4.1.1
OS: Windows 7 Professional 64 bits
tzdybal commented 6 years ago

@jorgeog96 Have you tried to restart geth? This should help. I think this is similar issue to #448.

jorgeog96 commented 6 years ago

What do you mean with restart?. @tzdybal Can you give me the instructions to restart properly the client? Windows user.

tzdybal commented 6 years ago

@jorgeog96, just stop it gently (press CTRL+C) and then start it again.

jorgeog96 commented 6 years ago

@tzdybal ah ok, I thought you were meaning to another process like start again the sync and do the checkpoint process. Yes, I´ve done that process many times...stop it gently and start..but the same issue. He starts to synchronize and he just takes a few blocks..like 200 or 1000 and then, the problem appears again. Peers retrieved and those stuff....

By the way, why a lot of commands of javascript console don´t work in this geth classic? like admin.chainSyncStatus, etc.

tzdybal commented 6 years ago

We have a brand new release - v4.2.0 - could you please try it out?

The admin.chainSyncStatus was deprecated (before the fork). Probably same for other JS console commands.

whilei commented 6 years ago

Also worth ensuring that you're using web3 0.2x and not the unreleased 1.x

jorgeog96 commented 6 years ago

@tzdybal Today, i´ve launched geth 4.1.2 but something weird it´s happening. Maybe it´s an issue or a bug in this version. Before, on 4.1.1. I usually have between 11 or 13 peers while synchronization process, but now I have 0/25 and he returns the following message:

   Network port udp:30303 could not be mapped: no UPnP or NAT-PMP router discovered
jorgeog96 commented 6 years ago

@whilei do I need have web3.js install on my device? Because I have an issue with that.

whilei commented 6 years ago

@jorgeog96 No, you don't need to install web3 manually, it comes inside of geth console/rpc.

The udp mapping issue might be a firewall problem (this is a frequent issue for Windows users). Have you double-checked that your firewall is open for tcp and udp on the required ports?

jorgeog96 commented 6 years ago

The same problem...also I´ve checked out the ports with the firewall, in fact, I´ve created new rules opening the ports to ensure that they are working. I attach the following images:

sync-1

sync-2

So, if you prefer we can open a new issue for the try with geth 4.2.0? I don´t know what else I have to do in order to have the blockchain complete. It can´t be too complicated!

whilei commented 6 years ago

This is definitely a network connection issue --

@gagarin55 if I remember right you had and resolved a similar problem with configuring your firewall on Windows for geth?

@jorgeog96 Can you share your rules configuring your ports?

jorgeog96 commented 6 years ago

@whilei for this task, i´m running a device with windows 7 professional and a HDD hard drive by the way. I´ve created two new rules (inbound rules) : geth 30303 TCP and geth 30303 UDP. The name of each rule indicates the specifications related to protocols and ports. In programs and services, I specified run this rule with the geth.exe (saved in the proper dir (in a folder inside users don´t in a roaming folder I mean), version 4.2.0 latest).

vinhWater commented 6 years ago

I got same issue: OS: Ubuntu 16.04 , VPS of VULTR Geth Classic version: v4.2.2-c127446 Error Log: 2018-02-10 10:35:39 Fast sync mode enabled. 2018-02-10 10:35:39 Starting server... E0210 10:35:41.066985 p2p/nat/nat.go:110] Network port udp:30303 could not be mapped: no UPnP or NAT-PMP router discovered 2018-02-10 10:35:41 UDP listening. Client enode: enode://