BirthdayResearch / defichain-app

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

Unable to Start Blockchain #733

Closed tame81 closed 3 years ago

tame81 commented 3 years ago

What happened:

Like for numerous others in the DeFiChain channels, the app won't start for me anymore. Since yesterday, it will display a spinning circle and then say "Unable to start blockchain".

When enabling console output, I keep getting a network error message.

I already deleted the blocks/chainstate/enhancedcs folders and tried again, same thing.

What are your environment parameters?

Anything else we need to know?:

telegram-cloud-photo-size-4-6007942250014815096-y telegram-cloud-photo-size-4-6010433996766426683-y

Debug.log won't add any new lines since yesterday, apparently due to the network error.

defichain-bot commented 3 years ago

@tame81: 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.
izzycsy commented 3 years ago

Hi @tame81 , v2.3.3 is out. Please read through the release notes before updating. If you have not sync to 100%, there was a node issue on 05/04/2021 that may have cause the network error, everything is back online now, you may try the following:

Option 1 — Reset & Reindex (sync from 0%)

  1. Settings > Reset & Reindex
Settings   Reset   Reindex

Option 2 — Snapshot (sync from 90%+)

  1. Settings > Reset & Reindex
  2. Wait for app to start syncing
  3. Ensure you’ve at least 27GB of extra space
  4. 
Click on i located at bottom-left corner of app screen

  5. Download Snapshot
`i` to trigger Snapshot download
tame81 commented 3 years ago

Hi @izzycsy,

The problem is that I could not get into the app because it got stuck on the splash screen.

Because of no other workaround hints from the channels or your end, I had to delete everything. I then copied over a snapshot, now the app is syncing at around 90%. Hope it'll work afterwards.

CryptoFabi commented 3 years ago

Hi @izzycsy ,

Yesterday, I started the app on my mac (Version 2.3.3). It opened and did the syn process (I was at 99.8%). Then it showed up an error that there is a mistake in blockchain state and that I should download the snapshot. I tried that but after a while the app didnt react anymore. I closed it and when I tried to reopen the complete app did not show up. I deinstalled and reinstalled it but still the same. The app opens but the window does not show up anymore. I already tried to delete the wallet_map.json and restart the app, but didnt work either.

can someone help out here? Thanks, CF

izzycsy commented 3 years ago

Hi @CryptoFabi , please follow the steps carefully while performing a reinstallation of DeFi Wallet.

In app directory:

  1. Make a copy of the wallets folder, and paste in Documents (for example), so it’s easier to find it when restoring wallet later on.

Mac — Go to Folder: 
/Users/<username>/Library/Application Support/Defi/wallets/

wallet dat location
  1. Delete DeFi folder

    DeFi folder - delete all except walletdat
  2. Delete defi-app folder

    defi-app folder - delete all

Then proceed with the following:

  1. Download update from https://defichain.com/downloads/
  2. Open DeFi-Wallet-2.3.3.dmg file
  3. Prompt: “DeFi Wallet” can’t be opened because Apple cannot check it for malicious software. > OK
  4. Go to System Preferences > Security & Privacy > Open Anyway
Open Anyway
  1. At this point, you can either wait for the app to sync to 100% or Download snapshot (27GB) and wait for app to sync to 100%

    Snapshot size
  2. Restore wallet from backup (wallet.dat)
 – Guide the app to where where your wallet.dat is located

    Restore wallet from backup
tame81 commented 3 years ago

Hi @izzycsy,

Re. #9: It's better to copy the backed-up file wallet.dat from its safe location directly over wallet.dat in directory 
~/Library/Application Support/Defi/wallets/. Otherwise you'll have the configuration file in ~/.defi point to the external location permanently. And if that happens to be on an external drive, it's bound to be disconnected sometime. Close the app before doing that, then re-start it.

Re. #4: I'd also make sure to delete DeFi Wallet.app before re-installing it.

MrsZoggy commented 3 years ago

Dear @izzycsy

we already had email conversation. I followed your instructions to delete the DeFi Wallet, reinstalled, downloaded the Snapshot, replaced "blocks", "chainstate" and "enhancedcs" folder, erased most of disk space to have space for close to 80GB on my hard drive and still having problems to restore the Wallet. I have my passphrase and my wallet.dat

Using Mac OS Big Sur DeFi Wallet 2.3.3.

What am I'm doing wrong? Cant access my funds since a month and it would be great to get your guidance

Bildschirmfoto 2021-04-21 um 12 24 59

Bildschirmfoto 2021-04-21 um 12 22 39

izzycsy commented 3 years ago

... please follow the steps carefully while performing a reinstallation of DeFi Wallet.

In app directory:

  1. Make a copy of the wallets folder, and paste in Documents (for example), so it’s easier to find it when restoring wallet later on.

Mac — Go to Folder: 
/Users/<username>/Library/Application Support/Defi/wallets/

wallet dat location
  1. Delete DeFi folder
DeFi folder - delete all except walletdat
  1. Delete defi-app folder
defi-app folder - delete all

Then proceed with the following:

  1. Download update from https://defichain.com/downloads/
  2. Open DeFi-Wallet-2.3.3.dmg file
  3. Prompt: “DeFi Wallet” can’t be opened because Apple cannot check it for malicious software. > OK
  4. Go to System Preferences > Security & Privacy > Open Anyway
Open Anyway
  1. At this point, you can either wait for the app to sync to 100% or Download snapshot (27GB) and wait for app to sync to 100%
Snapshot size
  1. Restore wallet from backup (wallet.dat)
 – Guide the app to where where your wallet.dat is located
Restore wallet from backup

Hi @MrsZoggy , we've progressed to an automatic snapshot (as shown on your screenshot), click Download Snapshot. Or you can try reinstalling again by following the instructions above. Please try again. Thank you for your patience.

izzycsy commented 3 years ago

Hi @tame81 @CryptoFabi @MrsZoggy , v2.3.4 is out. Please read through the release notes before updating. If your issue persists, send a screenshot & logs to Unable to start blockchain, we can further discuss on the issue there. We would like to keep same issues in one thread. Thank you.