Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.03k forks source link

[BUG] No sync after internet connection restored #2665

Closed elxander closed 3 years ago

elxander commented 3 years ago

Status Not Synced Connection Status Connected

will stay forever.

To Reproduce

Pull out the ethernet cable. (Not necessary, also happens on internet connection problems) Insert it back after some time. Status always shows connected to 127.0.0.1

Also, even after restarting the application does not show any activity in sync for a long time

Expected behavior

Should try to detect if the internet connection restored and continue syncing. I believe it should show more detailed and frequently updated information

Desktop (please complete the following information):

qfishpear commented 3 years ago

same here, have been waiting for hours not a single peer is connected after upgrading to 1.1.2

hbroer commented 3 years ago

I was still on 1.0.5 but shows "not synced" and "connected" too this morning. I upgraded to 1.1.2 and it is still the same. No connections.

Last Block is 181608 without timestamp. Last Block with timestamp is 181606 at 04/25/2021 5:18:23 AM (UTC +2)

Edit: Now it is syncing again. Did shutdown the app again and was sorting plots to other drive and after a while ~30 Minutes I started the app.

hoffmang9 commented 3 years ago

For the people piling in here, upgrade to 1.1.2. For the original issue, I am leaving it open so we can confirm it or not.

zewort commented 3 years ago

What happen with synchronization? Sometimes i see "not synced" in the full nodes (connection status: connected always) and i cant restart chia because im plotting and i dont want lose this.

So, finally, i close chia, restart my PC, delete temporal files, and restart chia...

Not synced... wait 2min...5min...nothing, and restart Chia again... 2 or 3 times the same problem, and maybe in 4th i try to open chia and "synced" in 1 second! ¿what?

PD: 8444 port is open / Win 10 / Chia 1.1.2

elxander commented 3 years ago

1.1.2 no changes

chia

hbroer commented 3 years ago

This morning again no connections and last timestamp is 04/30/2021 5:15:07 AM. Now it is 8:47 AM (UTC +2). Network is fine, everything else is working (also running a miner on CPU and one on GPU). Connection Status is "connected". Version 1.1.2 (on Windows 10).

Last Block: e4a3d08428916b391dcfcb7b64f57d9903cb75c0c5f68e4c8bef112cc8bccb76

Edit: After restarting the App it is now syncing again. I did not find anything in the logs around 5 AM.

elxander commented 3 years ago

The problem is clearly visible when the ethernet connection is LAN, and the internet is over a USB modem. Shows syncing but no progress over a long period. Required several restarts to run it again chia1

elxander commented 3 years ago

1.1.4 - unsync for 2-3 hours is still common chiasync

Connection status is connected, yet there is no full node connection at the bottom connections panel

jurkov commented 3 years ago

I think this is happening because of a missing retry to connect to the introducer after a forced disconnect by the local internet provider. After a disconnect of all connections on the internet it stops. See #3903

elxander commented 3 years ago

1.1.5 no changes

as for me waiting for 6 hours for sync is inappropriate

chia1 chia2

elxander commented 3 years ago

Breaking record. Usually, it took about 2 hours, now it seems it is going to be a day to resync.

At least - why is it saying 'connected' if it is not? There is no full node connection at the bottom, only wallet and farmer.

chia day

jurkov commented 3 years ago

I am able to get it working again with a restart of the node. I use chia start -r node on ubuntu. After some minutes the node is syncing again.

github-actions[bot] commented 3 years ago

This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.