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 - after reinstall defi-wallet #1007

Closed baludwi closed 3 years ago

baludwi commented 3 years ago

Actual behavior:

After start deli-wallet the error "unable to start blockchain" appears

Expected behavior:

App should start normally

How to reproduce it (as minimally and precisely as possible):

What are your environment parameters?

Anything else we need to know?

I have deinstalled the wallet and dropped all installation files. After reinstall defi-wallet again, i got the error message "unable to start blockchain". In App.log I can find the message which seems to be the reason for this behaviour.

App.log Error [2021-07-28 13:03:10.144] [IPC-RENDERER-error] Error: ENOENT: no such file or directory, open '/Users//Library/Application Support/Defi/.defi/defi.pid' at Object.openSync (fs.js:476:3) at Object.func [as openSync] (electron/js2c/asar_bundle.js:5:1846) at Object.readFileSync (fs.js:377:35) at Object.e.readFileSync (electron/js2c/asar_bundle.js:5:8872) at Object.getFileData (/Applications/Wallets/DeFi Wallet.app/Contents/Resources/app.asar/electron-app/build/electron-app/src/utils.js:93:23) at Function. (/Applications/Wallets/DeFi Wallet.app/Contents/Resources/app.asar/electron-app/build/electron-app/src/services/defiprocessmanager.js:290:39) at step (/Applications/Wallets/DeFi Wallet.app/Contents/Resources/app.asar/electron-app/build/electron-app/src/services/defiprocessmanager.js:52:23) at Object.next (/Applications/Wallets/DeFi Wallet.app/Contents/Resources/app.asar/electron-app/build/electron-app/src/services/defiprocessmanager.js:33:53) at /Applications/Wallets/DeFi Wallet.app/Contents/Resources/app.asar/electron-app/build/electron-app/src/services/defiprocessmanager.js:27:71 at new Promise ()

defichain-bot commented 3 years ago

@baludwi: 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 @baludwi , what version were you on previously or is this your first time downloading the DeFi Wallet app?

baludwi commented 3 years ago

Same version, 2.5.2. I deinstalled defi-wallet, because it didn't work. But after reinstall the wallet, I got the described error. I followed the reinstall instruction from https://github.com/DeFiCh/app/discussions/964.

izzycsy commented 3 years ago

Hi @baludwi , I meant before v2.5.2; what version were you on? To uninstall the DeFi Wallet app, you need to remove 3 things:

  1. defi-wallet folder
defi-wallet folder location
  1. defi folder
Defi folder
  1. DeFi Wallet app icon

  2. There's also a hidden .defi folder which you'll need to remove, it should be in the Defi folder unless you're one of the early users.

/Users/username/Library/Application Support/Defi/.defi/

Let me know if you can find all 4 items. Remember to backup your wallet.dat.

baludwi commented 3 years ago

Hi @izzycsy,

before 2.5.2, I came from 2.3.x. I am not sure. I use the defi-wallet since early days in December las year.

I did all the steps You've described above. Unfortunately it does not work. After reinstall defi-wallet, it takes approx 1 minute while starting followed by the message "Unable to start Blockchain".

When i cheek the App.log file, I can see this:

[2021-08-01 13:19:41.654] [IPC-MAIN-info] [Starting Electron App] OS macOS Big Sur - 20.5.0 [2021-08-01 13:19:41.662] [IPC-MAIN-info] Checking for update [2021-08-01 13:19:41.664] [IPC-MAIN-info] Wallets folder missing... Creating directory... [2021-08-01 13:19:42.406] [IPC-MAIN-info] Generated new staging user ID: 03c91bc4-0f0f-56e4-903e-f3fc851d83d3 [2021-08-01 13:19:42.709] [IPC-MAIN-info] Update for version 2.5.2 is not available (latest version: 2.5.2, downgrade is disallowed). [2021-08-01 13:19:42.710] [IPC-MAIN-debug] checkForUpdatesAndNotify called, downloadPromise is null [2021-08-01 13:19:43.839] [IPC-RENDERER-error] "Error in selected unit, setting it to default one" [2021-08-01 13:19:44.024] [IPC-RENDERER-info] "[Starting App] App is running with version 2.5.2" [2021-08-01 13:19:44.031] [IPC-RENDERER-info] [start] - Starting node connection... [2021-08-01 13:19:44.032] [IPC-RENDERER-info] Current Node: 1.7.11 New Node: 1.7.11 [2021-08-01 13:19:44.049] [IPC-RENDERER-info] [start] - Node start initiated [2021-08-01 13:19:44.052] [IPC-RENDERER-info] [setLockTimeout] "Starting update of lock timeout..." [2021-08-01 13:19:44.057] [IPC-RENDERER-info] [Update Auto-lock Time] "Timeout updated to 300 seconds" [2021-08-01 13:19:44.189] [IPC-RENDERER-info] [start] - Node started [2021-08-01 13:19:44.189] [IPC-RENDERER-info] [start] - Sending node started to client [2021-08-01 13:19:44.209] [IPC-RENDERER-error] [start] - Error on node connection: Error: Unable to start HTTP server. See debug log for details. [2021-08-01 13:19:44.215] [IPC-RENDERER-error] [startBinary] "Error: Unable to start HTTP server. See debug log for details." [2021-08-01 13:19:44.218] [IPC-RENDERER-info] [Blockchain Status] {"success":false,"data":{"message":"Error: Unable to start HTTP server. See debug log for details.","walletMap":{"paths":["/Users/<UserName>/Library/Application Support/Defi/wallets/wallet.dat"],"nodeVersion":"1.7.11","hasSyncSPV":false,"hasRescan":false}}} [2021-08-01 13:19:44.220] [IPC-RENDERER-info] [start] - Node is closed with code 1 [2021-08-01 13:19:44.221] [IPC-RENDERER-error] [start] - Error occurred while closing node with code: 1 [2021-08-01 13:19:44.222] [IPC-RENDERER-error] [blockChainNotStarted - Not Running] "" [2021-08-01 13:19:44.232] [IPC-RENDERER-error] [startBinary] "Error occurred while closing node with code: 1" [2021-08-01 13:19:44.234] [IPC-RENDERER-info] [Blockchain Status] {"success":false,"data":{"message":"Error occurred while closing node with code: 1","walletMap":{"paths":["/Users/<UserName>/Library/Application Support/Defi/wallets/wallet.dat"],"nodeVersion":"1.7.11","hasSyncSPV":false,"hasRescan":false}}} [2021-08-01 13:19:44.236] [IPC-RENDERER-error] [blockChainNotStarted - Not Running] "" [2021-08-01 13:19:46.222] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:19:48.206] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:19:50.205] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:19:52.199] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:19:54.205] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:19:56.205] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:19:58.205] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:00.205] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:02.204] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:04.199] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:06.204] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:08.204] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:10.204] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:12.204] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:14.204] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:16.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:18.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:20.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:22.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:24.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:26.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:28.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:30.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:32.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:34.303] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:36.309] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:38.306] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:40.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:42.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:44.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:46.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:48.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:50.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:52.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:54.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:56.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:20:58.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:00.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:02.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:04.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:06.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:08.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:10.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:12.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:14.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:16.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:18.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:20.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:22.306] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:24.307] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:26.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:28.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:30.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:32.306] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:34.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:36.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:38.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:40.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:42.305] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:44.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:46.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:48.308] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:50.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:52.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:54.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:56.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:21:58.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:00.311] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:02.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:04.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:06.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:08.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:10.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:12.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:14.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:16.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:18.310] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:20.312] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:22.308] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:24.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:26.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:28.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:30.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:32.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:34.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:36.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:38.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:40.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:42.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:44.314] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:46.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:48.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:50.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:52.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:54.313] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:56.314] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:22:58.314] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:23:00.314] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:23:02.308] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:23:04.314] [IPC-RENDERER-error] [isBlockchainStarted] "Request failed with status code 503" [2021-08-01 13:23:04.316] [IPC-RENDERER-info] [Blockchain Status] "Unable to start blockchain" [2021-08-01 13:23:04.318] [IPC-RENDERER-error] [blockChainNotStarted - Not Running] "Unable to start blockchain"

baludwi commented 3 years ago

After restart MacOS, this issue is obsolete. Nomally, a Mac doesn't has to restarted, but ok. Now defi-wallet can be started normal.