defichain-app: Windows: sync stops at 99%+ > node is disconnected

Preflight Checklist

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

LogData.zip

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 90 (12 by maintainers)

Most upvoted comments

Hi @MrStryker , we manage to reproduce this internally and the above solution worked, would appreciate if you can try the above solution and let me know the outcome. If it doesn’t, kindly send your logs please. Thank you.

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:

  1. Start the defid.exe without the app
Open cmd and type
cd "%localappdata%\Programs\defi-app\resources\binary\win"
.\defid.exe -conf="%USERPROFILE%\.defi\defid.conf"
  1. Observe the RAM consumption of the app in the taskmanager. When it exceeds 1 GB (with your amount of RAM, you can wait until it exceeds 2GB - 4GB) select the cmd window and press Ctrl + C to shutdown the node. Do not close the cmd window with “X”, the blockchain can be corrupted
  2. Wait until you can enter the next command and start from step 1. Check whether it syncs from your last synced block number.

Remember 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.