Skip to content
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

wallet crashing #236

Open
pinpins opened this issue Oct 5, 2019 · 8 comments
Open

wallet crashing #236

pinpins opened this issue Oct 5, 2019 · 8 comments

Comments

@pinpins
Copy link

pinpins commented Oct 5, 2019

even after full resync getting

btcpd: wallet/wallet.cpp:803: void CWallet::DecrementNoteWitnesses(const CBlockIndex*): Assertion nWitnessCacheSize > 0' failed.

`

@interbiznw
Copy link
Member

Full resync? Do you mean reindex? rescan? Deleting blocks and doing a full new block download? Please provide more specifics.

@laakie
Copy link

laakie commented Oct 6, 2019

same problem here.
Reindex / rescan is forced on restart. ( Didn't add the flags to do so )
Hangs on :

2019-10-06 05:09:24 UpdateTip: new best=0000000c5eca6ed4c988cef18da8a702b9784600f3822ad1fd3652814d288b23 height=606789 log2_work=49.791435 tx=56488394 date=2019-09-28 09:36:47 progress=0.998712 cache=10.7MiB(10072tx)
btcpd: wallet/wallet.cpp:803: void CWallet::DecrementNoteWitnesses(const CBlockIndex*): Assertion `nWitnessCacheSize > 0' failed.

@interbiznw
Copy link
Member

interbiznw commented Oct 6, 2019

Reindexing and Rescanning are two way different things. As with the previous post going to need more details.

  • How long has this node been running prior to issues?
  • Is this node mining or used in a mining pool?
  • Is this node used as an explorer or other backend service node? or just for a local wallet?
  • Have you manually tried to reindex? if so what were the results?
  • Have you manually tried to rescan? if so what were the results?

Also, Please provide a paste of more of the debug.log file, preferably with the debug flag ( debug=1 ) on in the config file so it provides more output.

@pinpins
Copy link
Author

pinpins commented Oct 7, 2019

Full resync? Do you mean reindex? rescan? Deleting blocks and doing a full new block download? Please provide more specifics.

I mean downloaded blockchain from scratch by peers

@pinpins
Copy link
Author

pinpins commented Oct 7, 2019

How long has this node been running prior to issues?
2 years

Is this node mining or used in a mining pool?
mining pool

Is this node used as an explorer or other backend service node? or just for a local wallet?
no

Have you manually tried to reindex? if so what were the results?
yes, still failing

Have you manually tried to rescan? if so what were the results?
yes, still failing

@laakie
Copy link

laakie commented Oct 8, 2019

How long has this node been running prior to issues?
1 year

Is this node mining or used in a mining pool?
yes

Is this node used as an explorer or other backend service node? or just for a local wallet?
no

Have you manually tried to reindex? if so what were the results?
yes, same result.

Have you manually tried to rescan? if so what were the results?
yes same result

debug.log:

2019-10-08 00:02:30 UpdateTip: new best=0000000b6d3cfda3d4b79065491076eb31eb052185ebb5b77cd2b71e5586935b height=606791 log2_work=49.791435 tx=56488399 date=2019-09-28 09:40:15 progress=0.998418 cache=18.5MiB(12367tx)
2019-10-08 00:02:30 - Disconnect block: 0.20ms
2019-10-08 00:02:30 UpdateTip: new best=00000007d7717a484730727ad7277ae80f0a740f1495f72a3caf3282a66c559d height=606790 log2_work=49.791435 tx=56488396 date=2019-09-28 09:37:42 progress=0.998418 cache=18.5MiB(12366tx)
2019-10-08 00:02:30 - Disconnect block: 0.17ms
2019-10-08 00:02:30 UpdateTip: new best=0000000c5eca6ed4c988cef18da8a702b9784600f3822ad1fd3652814d288b23 height=606789 log2_work=49.791435 tx=56488394 date=2019-09-28 09:36:47 progress=0.998418 cache=18.5MiB(12365tx)
btcpd: wallet/wallet.cpp:803: void CWallet::DecrementNoteWitnesses(const CBlockIndex*): Assertion `nWitnessCacheSize > 0' failed.

@pinpins
Copy link
Author

pinpins commented Oct 10, 2019

any update?

@cernael
Copy link

cernael commented Oct 11, 2019

Had the same issue. Made an ugly hack that seems to have worked - it turned out that every time the wallet crashed, it did so after connecting to a node with a fork that was way ahead of us, and then it backpedaled 100 blocks (which is the usual reorg limit for bitcoin-based cryptocurrencies), and then crashed. And every time it did this, the node with the longer fork had the same IP address, 46.101.126.142 (albeit different ports).

So I added the line
127.0.0.1 46.101.126.142
to the /etc/hosts file, thereby blocking the server itself from ever connecting to that IP address. (Worth noting: I run the wallet on a virtual server running Ubuntu 16.4)

This is only a rapport about what seems to have worked for me, not a recommendation towards how the problem should be permanently solved, and so on and so forth. Do make your own research into which IP addresses the nodes that make you crash have, et cetera. I assume no legal liability for providing this information. :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants