Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.03k forks source link

[BUG]Cannot connect to wallet, connecting just hangs indefinitely #863

Closed erock24601 closed 3 years ago

erock24601 commented 3 years ago

Bug happens when installing Chia and loading the wallet. Wallet hangs and is unable to open Had issue using the beta 1.26**

Went to github to install chia blockchain code. Installed using the installer Unable to connect to wallet. UI just hangs on connecting

Expected behavior I expected it to connect to my wallet.

Desktop (please complete the following information):

Additional context Interestingly enough when installing, this time around I didn't get the usual errors I get from windows defender. It loaded up got to the connect wallet without asking me if I wanted to run a harvester or farmer which I normally get asked from windows defender.

mariano54 commented 3 years ago

Try again with beta 27 please

ahietala commented 3 years ago

Same issue with 1.0beta27 on Mac OSX. "Connecting to wallet" message and spinner hangs indefinitely. Installed using the MacOS dmg installer.

beykovskyb commented 3 years ago

Same issue for me with 1.0beta27 on MAC OSX exact same description Screen Shot 2021-02-17 at 7 04 58 PM

beykovskyb commented 3 years ago

Try again with beta 27 please

Any input? I was able to open and start syncing the blockchain today with beta 27 but i have been getting this error since

beykovskyb commented 3 years ago

@mariano54

mariano54 commented 3 years ago

Try force quitting the app, then restart your computer

beykovskyb commented 3 years ago

Hey Mariano!

Thanks for the reply.

here are the solutions ive attempted so far.

quit the app, restart computer force quit the app, restart computer uninstall the app, restart computer, reinstall app

I guess my next step seems like reinstalling my MACOS operating system but I would like to try to avoid that if possible?

Regards,

Brendan

On Thu, Feb 18, 2021 at 9:22 AM Mariano Sorgente notifications@github.com wrote:

Try force quitting the app, then restart your computer

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain/issues/863#issuecomment-781504915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4RRPB6OXG5HEQA5Q2VAQDS7VED3ANCNFSM4XIL4U6A .

berlef80 commented 3 years ago

Have had this happen as well in Beta27. When I click "reload" on the plot or farm screens, it goes to the screen someone posted above where the wallet just hangs indefinitely. I am plotting so don't want to shut down Chia and loose that work, but if there is a work around to get back to the farm or plot screen, without shutting down, that would be helpful.

beykovskyb commented 3 years ago

Last login: Thu Feb 18 10:11:34 on console

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. /Applications/Chia.app/Contents/MacOS/Chia ; exit; Brendans-MBP:~ brendanbeykovsky$ /Applications/Chia.app/Contents/MacOS/Chia ; exit; /Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon true /Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon true Running python executable: child process success No cert Chia directory /Users/brendanbeykovsky/.chia/beta-1.0b27 /Users/brendanbeykovsky/.chia/beta-1.0b27 already exists, no migration action taken No cert Have cert Daemon server started stderr: Traceback (most recent call last): File "src/server/start_full_node.py", line 64, in Exception in thread Thread-2: Traceback (most recent call last): File "aiosqlite/core.py", line 109, in run File "asyncio/base_events.py", line 764, in call_soon_threadsafe File "src/server/start_full_node.py", line 59, in main File "asyncio/base_events.py", line 508, in _check_closed RuntimeError: Event loop is closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "threading.py", line 932, in _bootstrap_inner File "src/server/start_service.py", line 208, in run_service File "aiosqlite/core.py", line 117, in run File "asyncio/runners.py", line 44, in run File "asyncio/base_events.py", line 764, in call_soon_threadsafe File "asyncio/base_events.py", line 508, in _check_closed File "asyncio/base_events.py", line 616, in run_until_complete RuntimeError: Event loop is closed stderr: File "src/server/start_service.py", line 202, in async_run_service File "src/server/start_service.py", line 147, in run File "src/server/start_service.py", line 118, in start File "src/full_node/full_node.py", line 104, in _start File "src/full_node/block_store.py", line 27, in create File "aiosqlite/core.py", line 184, in execute File "aiosqlite/core.py", line 129, in _execute File "aiosqlite/core.py", line 102, in run sqlite3.DatabaseError: database disk image is malformed stderr: [2203] Failed to execute script start_full_node stderr: Traceback (most recent call last): File "src/server/start_wallet.py", line 92, in File "src/server/start_wallet.py", line 87, in main Exception in thread Thread-2: Traceback (most recent call last): File "aiosqlite/core.py", line 109, in run File "src/server/start_service.py", line 208, in run_service File "asyncio/base_events.py", line 764, in call_soon_threadsafe File "asyncio/runners.py", line 44, in run File "asyncio/base_events.py", line 508, in _check_closed File "asyncio/base_events.py", line 616, in run_until_complete RuntimeError: Event loop is closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "threading.py", line 932, in _bootstrap_inner File "src/server/start_service.py", line 202, in async_run_service File "aiosqlite/core.py", line 117, in run File "src/server/start_service.py", line 147, in run File "asyncio/base_events.py", line 764, in call_soon_threadsafe File "src/server/start_service.py", line 118, in start File "asyncio/base_events.py", line 508, in _check_closed File "src/wallet/wallet_node.py", line 146, in _start RuntimeError: Event loop is closed stderr: File "src/wallet/wallet_state_manager.py", line 117, in create File "src/wallet/wallet_coin_store.py", line 26, in create File "aiosqlite/core.py", line 184, in execute File "aiosqlite/core.py", line 129, in _execute File "aiosqlite/core.py", line 102, in run sqlite3.DatabaseError: database disk image is malformed stderr: [2202] Failed to execute script start_wallet

dorkmo commented 3 years ago

how long are you guys waiting on the "connecting to wallet" screen? i feel like ive had to wait a long time before

beykovskyb commented 3 years ago

I will do an experiment and get back to you!

On Thu, Feb 18, 2021, 12:16 PM dorkmo notifications@github.com wrote:

how long are you guys waiting on the "connecting to wallet" screen? i feel like ive had to wait a long time before

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain/issues/863#issuecomment-781608480, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4RRPAS3VMCY7VH4JT4WUDS7VYRVANCNFSM4XIL4U6A .

beykovskyb commented 3 years ago

how long are you guys waiting on the "connecting to wallet" screen? i feel like ive had to wait a long time before

Been trying to connect for 10 minutes now

beykovskyb commented 3 years ago

how long are you guys waiting on the "connecting to wallet" screen? i feel like ive had to wait a long time before

Have had it trying for an hour solid now. no change

dorkmo commented 3 years ago

any luck on rc2 today?

beykovskyb commented 3 years ago

Nope it's been trying to connect the wallet for 24hrs plus. Considering reinstall is unless developer says otherwise

On Fri, Feb 19, 2021, 1:14 PM dorkmo notifications@github.com wrote:

any luck on rc2 today?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain/issues/863#issuecomment-782355876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4RRPBTGEDGXZJKZILJPOLS73IDDANCNFSM4XIL4U6A .

beykovskyb commented 3 years ago

*reinstall operating system

On Fri, Feb 19, 2021, 1:19 PM Brendan Beykovsky beykovskyb@gmail.com wrote:

Nope it's been trying to connect the wallet for 24hrs plus. Considering reinstall is unless developer says otherwise

On Fri, Feb 19, 2021, 1:14 PM dorkmo notifications@github.com wrote:

any luck on rc2 today?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain/issues/863#issuecomment-782355876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4RRPBTGEDGXZJKZILJPOLS73IDDANCNFSM4XIL4U6A .

dorkmo commented 3 years ago

new software update came out this morning so maybe try to reinstall chia

beykovskyb commented 3 years ago

Will do, thanks!

On Fri, Feb 19, 2021, 1:27 PM dorkmo notifications@github.com wrote:

new software update came out this morning so maybe try to reinstall chia

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain/issues/863#issuecomment-782365926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4RRPBRQCBK22GARCKJDG3S73JUZANCNFSM4XIL4U6A .

beykovskyb commented 3 years ago

Bug fixed, thanks all for your tech support and assistance

DarrellBrogdon commented 3 years ago

I'm seeing this on 1.0.0

baccredited commented 3 years ago

I'm seeing this on 1.0 as well. Chia 1.0.0 on a fresh installed macOS Sierra 10.12.6

I've never installed Chia before, so shouldn't be a collision with old installs.

Just getting: Connecting to wallet

With the spinner icon, which never stops.

baccredited commented 3 years ago

Quick note on this bug, they really mean it when chia says this: MacOS Mojave (10.14.x) or newer is required. https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL#MacOS

I was trying to run chia on an older, fully patched High Sierra mac and was getting this 'connecting to wallet' bug.

I installed the software on a newer 'Big Sur' mac and it started immediately.

webzsolution commented 3 years ago

@baccredited - I am on Big Sur and I am seeing this. After working well for a few days, starting to see this after an OS update. Restarted and loaded Chia and the issue has persisted for a day. Left it overnight to find it this morning still attempting a connection.

I don't think Big Sur is immune to this. At least not from my experience.

DarrellBrogdon commented 3 years ago

I'm running Catalina on a 15" mid-2021 Retna MacBook Pro. I should have mentioned that.

However, the app did run at first. My Mac crashed and when I started Chia up after restarting it gives me the "Connecting" screen. I'm not sure if the crash is related to Chia or not. Catalina hasn't been all that stable for me and I've had to purposely restart about once a week since installing it.

vegaro commented 3 years ago

I am having the same issue on 1.0.0. I had a kernel panic, the Mac restarted and now I get sqlite3.DatabaseError: database disk image is malformed and it stays as Connecting to wallet.

hoffmang9 commented 3 years ago

@vegaro Start by deleting your wallet database in ~/.chia/mainnet/wallet/db/blockchain_wallet_v1_mainnet_NUMBER.sqlite and then start the Chia app to see if it will come up.

ZwaZo22 commented 3 years ago

same problem with version 1.0.1 here on macOS Catalina.

If I delete the wallet database the problem persists with the full node page

Capture d’écran 2021-03-28 à 20 41 17

ZwaZo22 commented 3 years ago

Actually, the only way I found to get the control back, is to delete :

restart and resync.

Hope there is another easier solution.

Best regards,

dominik-zisch commented 3 years ago

Actually, the only way I found to get the control back, is to delete :

* blockchain_v1_mainnet.sqlite blockchain_v1_mainnet.sqlite

* blockchain_wallet_v1_mainnet_NUMBER.sqlite

restart and resync.

Hope there is another easier solution.

Best regards,

Bit of an ignorant questions, but i cannot seem to find these files. I've searched but to no avail. Can you point me to the file locations please?

FYI, am on macOS Catalina

thanks

papiblock commented 3 years ago

Actually, the only way I found to get the control back, is to delete :

* blockchain_v1_mainnet.sqlite blockchain_v1_mainnet.sqlite

* blockchain_wallet_v1_mainnet_NUMBER.sqlite

restart and resync. Hope there is another easier solution. Best regards,

Bit of an ignorant questions, but i cannot seem to find these files. I've searched but to no avail. Can you point me to the file locations please?

FYI, am on macOS Catalina

thanks

yeah i second this question. seems that we have to delete the wallet DB but i am not sure where to locate those files on a mac. i've opened up "package content" but do not see any files in there like that. Anybody here that can help find those?

Or are we talking about a code line I have to input through Terminal?

Thanks!

hoffmang9 commented 3 years ago

https://github.com/Chia-Network/chia-blockchain/wiki/FAQ#why-is-my-wallet-not-synced-why-can-i-not-connect-to-wallet-from-the-gui

papiblock commented 3 years ago

https://github.com/Chia-Network/chia-blockchain/wiki/FAQ#why-is-my-wallet-not-synced-why-can-i-not-connect-to-wallet-from-the-gui

thanks - i do not know how to find this folder: ~/.chia/mainnet/wallet/db folder

papiblock commented 3 years ago

ok whoever is reading further here, on mac go do finder then comd+shift+G and type-in "~/.chia/mainnet/wallet/db" this will take you to db folder that you can delete.

danra commented 3 years ago

Anyone reading this - do not remove the db folder completely, or you'll keep getting the "malformed database" error. Only remove its contents.

DeXtmL commented 3 years ago

None of the above methods work. v1.0.5

To reproduce,

  1. Get a new PC
  2. open chiaSetup-1.0.5
  3. click new private key
  4. close chia
  5. open chia again.
  6. Observe that your wallet is forever connecting...

** Update: solved mine: port 55400 is occupied. Chia should give more detailed error msg.

MadCoderOne332 commented 3 years ago

I get this as well today, Windows 10 v1.0.5

simlshady commented 3 years ago

None of the above methods work. v1.0.5

To reproduce,

  1. Get a new PC
  2. open chiaSetup-1.0.5
  3. click new private key
  4. close chia
  5. open chia again.
  6. Observe that your wallet is forever connecting...

** Update: solved mine: port 55400 is occupied. Chia should give more detailed error msg.

Tell me Sir, how did you change the port? Or how did you repair it.

chiauserrich commented 3 years ago

Same issue. I have 20 plots plotted and have been farming for weeks. Now stuck on "connecting to wallet"...

think it may have something to do with Mac Big Sur update.

I've deleted Chia and reinstalled. Nothing noted in this thread has worked for me.

issue persists.

ryancraigmartin commented 3 years ago

Have never been able to get past Connecting to wallet on High Sierra.

hoffmang9 commented 3 years ago

As the documentation says, the oldest MacOS this supports is Mojave.

MadCoderOne332 commented 3 years ago

I would like to add that I see on the Trello board that this is perceived as a Mac issue. I have this issue on Windows 10 latest build periodically

On Fri, Apr 23, 2021, 12:19 PM PSiKoTiC @.***> wrote:

Same issue. I have 20 plots plotted and have been farming for weeks. Now stuck on "connecting to wallet"...

think it may have something to do with Mac Big Sur update.

I've deleted Chia and reinstalled. Nothing noted in this thread has worked for me.

issue persists.

Just 'fixed' it had to close the chia program and rebuild block chain and nuke my C:\Users\Owner.Chia directory Delete this and rerun the Chia executable Wallet will reconnect, need to repoint to plots but it gets going again..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain/issues/863#issuecomment-825767890, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOYDDIFQSPJF5RWGNLA5PTTKGMYFANCNFSM4XIL4U6A .

lobabob commented 3 years ago

Have the issue on windows 10 latest build as well.

ril3y commented 3 years ago

Have the issue on windows 10 latest build as well.

Same issue.

NessDan commented 3 years ago

This is an issue on 1.1.2

image

sport174 commented 3 years ago

У меня такая же штука не знаю как решит

sport174 commented 3 years ago

![Uploading 20210501_235723.jpg…]()

luijocroussett commented 3 years ago

This is an issue on 1.1.2

image

Were you able to solve it without closing the application? I am currently plotting and dont want to lose those plots.

olegolegoleg commented 3 years ago

Same on 1.1.4: image

cdias900 commented 3 years ago

I tried to full reinstall chia, delete all hidden folders, restart my pc and then install chia again, but none of that worked. The real cause of this issue, at least in my case, was Hyper-V reserving a port range that included the port used by chia (To check if this is the case, just run netsh interface ipv4 show excludedportrange protocol=tcp on cmd and see if there is any range reserved that includes port 55400). In order to solve it, I just had to disable Hyper-V (dism.exe /Online /Disable-Feature:Microsoft-Hyper-V on cmd, the pc will reboot right after the command), reserve a range that included port 55400 running netsh int ipv4 add excludedportrange protocol=tcp startport=55300 numberofports=200 (You can probably reserve less ports, but I ran the command like this just to make sure it would work) and then enable Hyper-V again (dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All the pc will reboot after the command). After doing all that, the GUI started working again (1.1.4).

leopucci commented 3 years ago

I tried to full reinstall chia, delete all hiden folders, restart my pc and then install chia again, but none of that worked. The real cause of this issue, at least in my case, whas Hyper-V reserving a port range that included the port used by chia (To check if this is the case, just run netsh interface ipv4 show excludedportrange protocol=tcp on cmd and see if there is any range reserved that includes port 55400). In order to solve it, I just had to disable Hyper-V (dism.exe /Online /Disable-Feature:Microsoft-Hyper-V on cmd, the pc will reboot right after the command), reserve a range that included port 55400 running netsh int ipv4 add excludedportrange protocol=tcp startport=55300 numberofports=200 (You probably can reserve less ports, but I ran the command like this just to make sure it would work) and then enable Hyper-V again (dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All the pc will reboot after the command). After doing all that, the GUI started working again (1.1.4).

Solved on Windows 10 with version 1.1.3, i did not changed a thing, did not deleted anything. The only modificiation that I did was on the ports as described by @cdias900 The Connecting to wallet screen is gone. Everything working.