BirthdayResearch / defichain-app

DeFi Blockchain desktop app for Windows, Linux and Mac.
https://defichain.com
MIT License
157 stars 57 forks source link

Windows: 2.4.5 Sync stalled #922

Closed arnaudom closed 3 years ago

arnaudom commented 3 years ago

After updating from 2.4.3, the synchronization seems to halt. Currently at block 894241.

The application log states:

[2021-06-04 20:19:51.927] [IPC-MAIN-info] [Starting Electron App] OS Windows 8.1 - 6.3.9600 [2021-06-04 20:19:52.416] [IPC-MAIN-info] Checking for update [2021-06-04 20:19:53.531] [IPC-RENDERER-info] "[Starting App] App is running with version 2.4.4" [2021-06-04 20:19:53.896] [IPC-RENDERER-info] [start] - Starting node connection... [2021-06-04 20:19:54.339] [IPC-RENDERER-info] Current Node: 1.7.6 New Node: 1.7.6 [2021-06-04 20:19:54.685] [IPC-RENDERER-info] [setLockTimeout] "Starting update of lock timeout..." [2021-06-04 20:19:55.138] [IPC-RENDERER-info] [Update Auto-lock Time] "Timeout updated to 300 seconds" [2021-06-04 20:19:57.003] [IPC-RENDERER-info] [start] - Node start initiated [2021-06-04 20:19:57.582] [IPC-RENDERER-info] [start] - Node started [2021-06-04 20:19:58.107] [IPC-RENDERER-info] [start] - Sending node started to client [2021-06-04 20:19:58.721] [IPC-RENDERER-info] Update for version 2.4.4 is not available (latest version: 2.4.4, downgrade is disallowed). [2021-06-04 20:19:59.420] [IPC-RENDERER-debug] checkForUpdatesAndNotify called, downloadPromise is null [2021-06-04 20:20:02.086] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:04.062] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:06.061] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:08.061] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:10.066] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:12.061] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:14.063] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:16.065] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-04 20:20:19.274] [IPC-RENDERER-info] [Blockchain Status] "blockchain started successfully" [2021-06-04 20:20:27.756] [IPC-RENDERER-error] "Request failed with status code 400" [2021-06-04 20:20:40.705] [IPC-RENDERER-error] [getBlockSyncInfo] "Request failed with status code 503" [2021-06-04 20:20:42.342] [IPC-RENDERER-error] [getBlockSyncInfo] "Request failed with status code 503"

defichain-bot commented 3 years ago

@arnaudom: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

In the meantime, you can:

  1. Checkout DeFiChain’s Github issue page to see if your issue has already been reported
  2. Submit any logs if you have them, this will greatly expedite the process for us.
  3. You can also join our Telegram or Reddit community channels.
Details I am a bot created to help the [DeFiCh](https://github.com/DeFiCh) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/DeFiCh/app/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance-bot](https://github.com/DeFiCh/oss-governance-bot) repository.
supervolot commented 3 years ago

My 2.4.3 stopps Synchronizing at 99.84% ; after update to 2.4.4. Database is corrupt and Snapshot dont work

supervolot commented 3 years ago

I got my servers live again. I change to SPV=1 line in the defi.conf; and delete all folders (except "wallet") and start the wallet with snapshot 893149.zip

nippur72 commented 3 years ago

I had the same issue and did as @supervolot suggested, wallet is now functional

EDIT: it was synchronized for a while to block 895000, then it reverted to block 89300 by itself without me doing anything

izzycsy commented 3 years ago

Hi @arnaudom @nippur72 @supervolot @rolandwellinger , the team is working on the issue. Please refer to DeFiChain Announcements (EN) for the latest update. Thank you.

ian309699 commented 3 years ago

I did the v2.4.4 update and now it says it is Unable to start blockchain. I have included my app logs. Hopefully they help APP LOGS.log

Faucet1313 commented 3 years ago

Had the same issue guys the upgrade to 2.4.5 fixed the issue for me.

nippur72 commented 3 years ago

I now upgraded to 2.4.5, clean starting from snapshot and it is working OK

itmlgife commented 3 years ago

Hi, Win10 when I upgraded from 2.4.4 to 2.4.5 I got unable to start blockchain. The debug.log file included the error below so I cleared the blockchain folder and re-installed the app. After the sync, everything appears to be fine.

Logs attached. debug.345.zip

021-06-04T22:08:37Z UpdateTip: new best=c5441f584f467a797f3b0391ec9dbd65ad2925bb3853063d4f272e916d2dd3c6 height=870946 version=0x20000000 log2_work=80.953083 tx=2957959 date='2021-05-24T10:39:09Z' progress=0.941848 cache=0.0MiB(8txo) 2021-06-04T22:08:37Z ERROR: ConnectBlock(): ApplyCustomTx on 7f0c2d4aba26e74b61264f8de2b23c754db24953f6b0f62315c0b9b67683cd98 failed with AddPoolLiquidityTx: Exceeds max ratio slippage protection of 3% 2021-06-04T22:08:37Z ERROR: ConnectTip: ConnectBlock 2e5b7ca1c1c6301f720d36a0dd15e574dfbd23bd309bb3b09697c0b7ebec62b0 failed, (code 0) 2021-06-04T22:08:37Z Failed to connect best block ( (code 0)) 2021-06-04T22:08:37Z tor: Thread interrupt 2021-06-04T22:08:37Z addcon thread exit 2021-06-04T22:08:37Z torcontrol thread exit 2021-06-04T22:08:37Z opencon thread exit 2021-06-04T22:08:37Z dnsseed thread exit 2021-06-04T22:08:37Z Shutdown: In progress... 2021-06-04T22:08:37Z net thread exit 2021-06-04T22:08:37Z msghand thread exit 2021-06-04T22:08:38Z scheduler thread interrupt 2021-06-04T22:08:38Z [wallet.dat] Releasing wallet 2021-06-04T22:08:38Z Shutdown: done

GM82b commented 3 years ago

app logs.zip Unable to start blockchain. The app stucked after upgrade to 2.4.5 and then don't restart. All was fine till 2.4.4

John-Gee commented 3 years ago

@supervolot 's way worked here as well, as it did yesterday with 2.4.4. I'm not on Windows, so this does not seem related to the OS.

itmlgife commented 3 years ago

@supervolot 's way worked here as well, as it did yesterday with 2.4.4. I'm not on Windows, so this does not seem related to the OS.

I confirm that worked for me as well. I did it on Win 10.

izzycsy commented 3 years ago

Hi @GM82b , well received, please give us time to investigate.

arnaudom commented 3 years ago

I upgraded to v2.4.5. Looks like there is still an error with sync connection. Hanging at block 894310.

[2021-06-05 08:09:34.684] [IPC-RENDERER-info] "[Starting App] App is running with version 2.4.5" [2021-06-05 08:09:35.303] [IPC-RENDERER-info] [start] - Starting node connection... [2021-06-05 08:09:35.875] [IPC-RENDERER-info] Current Node: 1.7.6 New Node: 1.7.7 [2021-06-05 08:09:36.503] [IPC-RENDERER-info] [setLockTimeout] "Starting update of lock timeout..." [2021-06-05 08:09:39.173] [IPC-RENDERER-info] [start] - Node start initiated [2021-06-05 08:09:39.619] [IPC-RENDERER-info] [start] - Node started [2021-06-05 08:09:40.116] [IPC-RENDERER-info] [start] - Sending node started to client [2021-06-05 08:09:40.635] [IPC-RENDERER-info] Update for version 2.4.5 is not available (latest version: 2.4.5, downgrade is disallowed). [2021-06-05 08:09:41.175] [IPC-RENDERER-debug] checkForUpdatesAndNotify called, downloadPromise is null [2021-06-05 08:09:41.746] [IPC-RENDERER-info] [Update Auto-lock Time] "Timeout updated to 300 seconds" [2021-06-05 08:09:44.316] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:46.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:48.308] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:50.307] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:52.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:54.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:56.307] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:09:58.308] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:10:00.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 500" [2021-06-05 08:10:02.684] [IPC-RENDERER-info] [Blockchain Status] "blockchain started successfully" [2021-06-05 08:10:25.603] [IPC-RENDERER-error] "Request failed with status code 400"

Last 2 lines of binary log:

2021-06-05T00:32:21Z InvalidChainFound: invalid block=8414008b5c62b01595c3415bfb6a2b0ea52d63391c43700ccddae0f40eb036be height=894311 log2_work=81.055824 date=2021-06-03T22:26:11Z 2021-06-05T00:32:21Z InvalidChainFound: current best=c02b95e0c546a9dd6e162f7ca48fb444d4c013aa9b64ad0178e1901a42978665 height=894310 log2_work=81.055821 date=2021-06-03T22:24:50Z

ian309699 commented 3 years ago

I just did the v2.4.5 update, and the same thing..Unable to start blockchain. I downloaded the logs again AppLogs.log

EtudAHART commented 3 years ago

I also recently updated to 2.4.4. and begun to receive the "Unable to start blockchain" error. I updated to 2.4.5 in hopes this would fix the error but I am still receiving. Thank you for any guidance. AppLog.log

aasmck commented 3 years ago

After the update, I also receive the error message Unable to the blockchain. Nothing works anymore. Mac storage space enough, I hope we can be helped. During synchronization, the node was disconnected immediately. Nothing opens after closing the app and restarting the wallet. Blockchain cannot be started, will then be displayed as an error! I've already uninstalled and play the app, always the same

thedoublejay commented 3 years ago

Hi @GM82b, can you delete your debug.log in your wallet app and try to restart the app?

thedoublejay commented 3 years ago

Hi @ian309699 and @EtudAHART, can you please provide us with your debug.log/binary.log? Thank you

thedoublejay commented 3 years ago

For all users who are facing the "Unable to Start Blockchain" issue. You may do these steps:

  1. Very important: Backup your wallet.dat (Make sure you have a copy of your wallet.dat)
  2. Go to your Blockchain Folder (https://defichain-wiki.com/wiki/Blockchain_folder)
  3. Delete all files and folders except wallets
  4. Download v2.4.5 and install it (https://defichain.com/downloads/)
  5. Once app starts, it will sync from scratch or force a re-index. You may download the latest snapshot (893149).
  6. Sync from Snapshot
arnaudom commented 3 years ago

My latest attempt:

the synchronization did restart as normal. I noticed some delays at blk 893410 if this is relevant.

thedoublejay commented 3 years ago

@arnaudom yes there might be some delay. How's your syncing now? Did it go past 839410?

arnaudom commented 3 years ago

@thedoublejay yes 100% now. Thank you.

GM82b commented 3 years ago

Hi @GM82b, can you delete your debug.log in your wallet app and try to restart the app?

this doesn't work. Then i deleted folder and reinstalled and now it works. Thanks

EtudAHART commented 3 years ago

@EtudAHART, can you please provide us with your debug.log/binary.log? Thank you

@thedoublejay thedoublejay Binary Log.log AppLog.log

I think I was able to notice an issue when trying to use DeFiChain-Income and noticed no wallet data was being shown. Hope this helps pinpoint the issue.

Deleted all files in the Defi Wallet folder (wallet is backed up). Reinstalled Wallet v2.4.5. Defi Wallet still does not get past initial loading screen. "Unable to Start Blockchain" Downloading Snapshot.

(My apologies first time attempting any of this.)

Thank you for your help.

itmlgife commented 3 years ago

Hi, Win10 when I upgraded from 2.4.4 to 2.4.5 I got unable to start blockchain. The debug.log file included the error below so I cleared the blockchain folder and re-installed the app. After the sync, everything appears to be fine.

Logs attached. debug.345.zip

021-06-04T22:08:37Z UpdateTip: new best=c5441f584f467a797f3b0391ec9dbd65ad2925bb3853063d4f272e916d2dd3c6 height=870946 version=0x20000000 log2_work=80.953083 tx=2957959 date='2021-05-24T10:39:09Z' progress=0.941848 cache=0.0MiB(8txo) 2021-06-04T22:08:37Z ERROR: ConnectBlock(): ApplyCustomTx on 7f0c2d4aba26e74b61264f8de2b23c754db24953f6b0f62315c0b9b67683cd98 failed with AddPoolLiquidityTx: Exceeds max ratio slippage protection of 3% 2021-06-04T22:08:37Z ERROR: ConnectTip: ConnectBlock 2e5b7ca1c1c6301f720d36a0dd15e574dfbd23bd309bb3b09697c0b7ebec62b0 failed, (code 0) 2021-06-04T22:08:37Z Failed to connect best block ( (code 0)) 2021-06-04T22:08:37Z tor: Thread interrupt 2021-06-04T22:08:37Z addcon thread exit 2021-06-04T22:08:37Z torcontrol thread exit 2021-06-04T22:08:37Z opencon thread exit 2021-06-04T22:08:37Z dnsseed thread exit 2021-06-04T22:08:37Z Shutdown: In progress... 2021-06-04T22:08:37Z net thread exit 2021-06-04T22:08:37Z msghand thread exit 2021-06-04T22:08:38Z scheduler thread interrupt 2021-06-04T22:08:38Z [wallet.dat] Releasing wallet 2021-06-04T22:08:38Z Shutdown: done

Hi Bella, I would like to provide additional context on this. Yesterday I cleared the blockchain folder and re-installed the application and re-synced using the snapshot. This morning the app is again not loading things. The debug.log file shows new errors.

The latest errors look like: 2021-06-05T14:09:27Z InvalidChainFound: invalid block=361b0c48661bf1788c5726d11b6a9a3ca0bd3d5515791fac0313184eafccc981 height=897817 log2_work=81.061502 date=2021-06-05T11:27:11Z 2021-06-05T14:09:27Z InvalidChainFound: current best=23b898955ce546ff910fb19a86d3bdc1c320a96e7e55233603d2facd05e8c6bd height=897816 log2_work=81.0615 date=2021-06-05T11:30:54Z 2021-06-05T14:09:27Z ERROR: ConnectTip: ConnectBlock 361b0c48661bf1788c5726d11b6a9a3ca0bd3d5515791fac0313184eafccc981 failed, high-hash, proof of stake failed (code 16)

I am attaching the log: debug.zip

ian309699 commented 3 years ago

@thedoublejay I did the steps you suggested and the blockchain has been stuck at 897865 for over 12 hrs now

EtudAHART commented 3 years ago

@thedoublejay I found the proper blockchain folder and followed your instructions. Syncing now. Thank you once again.

ian309699 commented 3 years ago

@thedoublejay I started over and did the steps you suggested again, it has synced and my addresses are all there. It worked 100%, until I closed the wallet, and tried to reopen it, now I it is says unable to start the blockchain. Trying your steps again Thank You