-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sparrow does not connect to Bitcoin Core #655
Comments
Having the same issue here, I don't think there's anything weird about my bitcoin core config or setup. Also, curl seems to work:
|
|
This error (OS error 32) is coming from the operating system indicating it can't create or write to the RPC socket for some reason (possibly because it has already been closed by the node). Unfortunately this error is fairly general, so it's difficult to tell more from this alone. Are any proxies involved? Can you try disabling the VPN? Another idea is to try user/password based authentication for the RPC, instead of cookie authentication. |
Same here. Running a pruned node on the cli with the following config. No VPN or tor running.
Tested curl command as above (works too) Bitcoin Core version v23.0.0 (release build) installed via homebrew running on Mac OS 12.4, Apple M1 |
FWIW sparrow seemed to be successfully connecting and displaying progress during IDB but after it finished connecting was no longer possible. |
There may be several issues being discussed here. For those reading this thread, make sure you are running v1.6.6. Versions v1.6.2 and prior do not support Bitcoin Core v23 or later. If you have been running a previous version, make sure to stop both Core and Sparrow, and delete the 'sparrow' folder in the Core wallets folder. Then start Core again, and once up Sparrow. |
I don't want to disable the VPN because I don't want to link my real IP to Bitcoin node activity even for a second. Specter and Core seem to have no issues with my VPN, and I even receive incoming connections. However, could Sparrow be having an issue because I use a forwarded port for Core? I have specified the port I use in Sparrow, and I have also tried using the default 8332 port, but neither works. Even when I revert Core back to a listen-only node that doesn't use any forwarded port Sparrow won't connect to it. |
Confirmed I'm running v1.6.6. I have not run a prior version and synced bitcoind v23 from a clean state. |
I'm not sure TBH. Sparrow is using the BWT library internally, which is using the Rust stack. It may be worth getting BWT from https://github.com/bwt-dev/bwt and running it off the command line to try debug this further. It's fairly straightforward to use. The other alternative is to setup an Electrum server, which is the approach I prefer. |
Are you getting the same error 32 (Broken pipe)? If not please create a separate issue with any relevant logging from Sparrow and Core's debug.log. |
I haven't had any luck trying to get an Electrum server running so far, it seems very difficult to set up, whereas getting bitcoind running just just |
Downgrading to 1.6.5 is a temporary workaround. |
@casey Can you take a look your log file (Help menu) from when you couldn't connect to see if there are any relevant errors? They will likely include the text Fwiw the BWT library inside Sparrow hasn't changed for a couple of versions now, so it's strange that downgrading solved this. More information is needed to understand what's going on. |
Also, I should add that Taproot (P2TR) wallets are not supported on Bitcoin Core yet. See bwt-dev/bwt#91 for details on why this has been delayed by a project upstream to BWT. |
Sorry, I spoke too soon. I thought it was working because it started syncing, but once the sync finished it still didn't work. Here's the log entry from when I click the connect toggle in the lower right hand corner:
My bitcoind does in fact not seem to link bdb:
|
@casey Yes, that's the issue then. Was I prefer to compile from source. Note that |
bitcoind was installed via homebrew for me too. I tried installing |
If Homebrew is installing binaries without wallet support (as opposed to building bitcoind against installed libraries, which I doubt) then you'll need to find another way to install it (see my suggestions above). In any case, you should not need to resync the blockchain. Or, as mentioned previously, use an Electrum server in addition to bitcoind. |
Homebrew's bitcoind should definitely be fixed! If it doesn't support legacy wallets, then there will be a long tail of support requests to Sparrow and others, since homebrew is far and away the dominant way to install packages on macos. It looks like this issue was introduced in a recent PR. I opened a PR to downgrade to bdb v4. Once that's merged, upgrading bitcoin via homebrew will pick up a legacy-wallet-capable bitcoind. |
Amazing. Thank you. I tested with bitcoin core build from the bitcoin.org website and confirmed it worked with that one. |
That PR was merged, so this issue should be closed. (I'm the one who introduced the bug, my bad! Sorry for the disruption that this caused.) |
Just tested with bitcoin from homebrew, and this is working again! |
@bluruin17 can we close this issue? |
Confirmed it works with the newest homebrew build. Amazing work guys, taking ownership and fixing a bug in third party open source project 👏🏼 |
Hopefully this was @bluruin17's original issue, I just assumed it was 😅 |
No response, so assuming the original issue is now resolved. Closing this off. |
Sparrow says "Could not connect" on Sparrow Wallet's server settings.
I am running my full node locally, although the folder is on an external HDD.
I added "server=1" to the config file.
I'm wondering if the issue has something to do either with having the Bitcoin Core folder on an external HDD, or that I'm using a VPN. I thought that the VPN wouldn't affect the ability of Sparrow to connect to a local instance of Core, but at this point I don't know what else to blame for this failure to connect.
The text was updated successfully, but these errors were encountered: