-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Connection to the Bitcoin network failed #4995
Comments
Thanks for opening your first issue here! |
@oscarguindzberg Do you know what could cause that exception? Does not seem that the wallet file got corrupted (user has SSD drive) but rather that data from previous version does not match... How can that happen, write operation is atomic I assume, so when it was valid at write time why its not valid at read time? |
The wallet being read is in fact corrupt.
Both links mention 2 wallets. That makes me think of BSQ and BTC wallets in bisq. Maybe the same tx instance is being saved by both wallets. Maybe related bisq-network/bitcoinj#18 and bisq-network/bitcoinj#21 Another possible cause... I found a bug in bisq a month ago. Transaction inputs and outputs have a concept of parent transaction. The tx the input was spending from was used as parent tx. Parent transaction is the tx containing the input or output. It would be good to investigate whether this bug is present somewhere else in bisq. |
@oscarguindzberg Thanks for the comments. A search in our issues shows 3 other cases, once going back to 2016, so not related to 2 wallets as that was long before the DAO: |
I've come across another instance of this error. I helped user to get back into Bisq and continue their pending trade. I recommended:
This seems to have worked however the Bisq client doesn't recognize that the Deposit transaction for the pending trade was successfully broadcast and confirmed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant. |
It's a repeat of issue first reported on May, 22 (but was closed due to inactivity): #4271
Version 1.5.1
MacOS
It seems to be a wallet corruption, rather than connectivity issue (as suggested by error message). A new wallet created by deleting Bisq folder and recovering wallet from seed words will resolve the issue and restore any funds, but open trades can't be restored in this way. This issue can't be resolved in open trades scenario when backups of Bisq folder are not available. Highly critical IMO
Stack trace from log:
Dec-22 17:46:19.876 [JavaFX Application Thread] ERROR b.c.b.s.WalletsSetup: Service failure from state: STARTING; failure={} org.bitcoinj.wallet.UnreadableWalletException: Could not connect 1565bcccaf7611b6bb19b32358531d8616e63421c947e35d22888d9501376951 to 5727a04a8fd0e54fd8d746f22c37d54f4d583a4d90f8ff79e6747f26c52cdafd
at org.bitcoinj.wallet.WalletProtobufSerializer.connectTransactionOutputs(WalletProtobufSerializer.java:745)
at org.bitcoinj.wallet.WalletProtobufSerializer.readWallet(WalletProtobufSerializer.java:542)
at org.bitcoinj.wallet.WalletProtobufSerializer.readWallet(WalletProtobufSerializer.java:474)
at bisq.core.btc.setup.WalletConfig.loadWallet(WalletConfig.java:402)
at bisq.core.btc.setup.WalletConfig.createOrLoadWallet(WalletConfig.java:372)
at bisq.core.btc.setup.WalletConfig.startUp(WalletConfig.java:278)
at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:62)
at com.google.common.util.concurrent.Callables$4.run(Callables.java:119)
at java.base/java.lang.Thread.run(Thread.java:844)
The text was updated successfully, but these errors were encountered: