defichain-app: Windows: sync stops at 99%+ > node is disconnected
Preflight Checklist
- [rene-sch ] I have searched DeFiChain’s Github Issue Page and none matches my issue
- [rene-sch] I have read through How To Submit Issues for DeFi App
Issue Details
- Current DeFi App Version:
- 2.1.10
- Previous DeFi App Version:
- 2.1.3
- Operating System (OS):
- Windows 10
Screenshot(s) / screen recording(s) of issue
Actual Behavior
I wanted to update the app from version 2.1.3 to 2.1.10. After the synchronization was at 98.89% the error came: “Connection to the node disconnected”
Then I increased the swap file on my Windows 10 (12 GB RAM). After that I tried several times but always at 98.89% the message Connection to the node was disconnected
Expected Behavior
I expected the app to work properly after installation
App log / binary log / app config
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 90 (12 by maintainers)
My issue was fixed. My clock was manually adjusted on my PC. When I put it to auto adjust the node was able to connect.
Now everything is working again. I installed version 2.1.17 (like @bvbfan told me) and entered my seed. Everything back. Many thanks for your help
@izzycsy After several tries (lazy Sunday) I found a workaround for me: The procedure is similar to the one from user maaze19 without the use of cmd. I have a 16 GB RAM machine with SSD and 2x2,4 GHz CPUs and version is 2.1.15. While synchronizing I monitored the RAM and closed the app when 4 GB or 45-50% of total RAM usage was reached… I had to do this two times and synchronizing started with the blocks from previous closing and lower RAM usage. Now I’m fully synchronized and all works fine so far.
For me it works with every systems when I do it the following:
Ctrl + C
to shutdown the node. Do not close the cmd window with “X”, the blockchain can be corruptedRemember you need to start it with the parameter
-reindex
the first time (.\defid.exe -conf="%USERPROFILE%\.defi\defid.conf" -reindex
) like described in the release notes.Why it helps? defid.exe will need about 300 MB of RAM when you restart the process, but can already use the last blockchain state. Then it will increase again (I could see increasing it to almost 14GB RAM usage without any restart). The first 500.000 blocks can be synced without problems, then you will have to restart the sync process more often.