-
Notifications
You must be signed in to change notification settings - Fork 35.7k
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
"Can't generate a change-address key. No keys in the internal keypool and can't generate any keys." #16091
Comments
I was able to do a send and receive just fine with Bitcoin Testnet, same version. If this helps, the Bitcoin Testnet uses an HD wallet, while the mainnet wallet I'm having problems with is older and non-HD. Both are encrypted. |
Can you do a |
I ran keypoolrefill (no parameters) on Testnet and Mainnet and both return "null" so I guess so |
After downgrading to 0.17.1 I was able to make a purchase with no errors. |
So you couldn't create the transaction with 0.18.0 even after |
No, I wasn't able to. |
Hello Same here. Just wanted to send bitcoins and got the To make a transaction is a core feature of this application, right? Quite uncool experience when you really need to do a transfer but you can't because the latest software is broken somehow, should be fixed asap! |
Hello
Which command did you use ?
It is, that's why we need you to add instructions and details so that we can reproduce and try to fix it. Here are some questions which answers would help for debuging :
@redblade7 if you can answer some of the above questions, it could help too |
I did not have any problems with a testnet HD wallet (see second comment). The wallet having problems goes back to 2015 and is non-HD. To make the transaction, I used the GUI, not an RPC command. |
Hello
|
Ok so it seems to be related to pre-HD split : could you try to start v0.18 with |
Unfortunately I can't upgrade my wallet because of bug #14422 |
I'll give a look to make possible to upgrade encrypted wallets. |
Ok, I've succesfully reproduced (using v0.11.1 to create the wallet, then v0.18, and encrypted it) and upgraded. 🎉 |
Can confirm having the same issues as @redblade7 on v0.18.0 and still on v0.18.1. Wallet created around v0.11.1 and encrypted some time after that, ~v0.15.0 or so. Let me know if you need anything from me to help troubleshoot/reproduce. |
Still persists same problem. |
Are there steps to reproduce? I tried generating a wallet with 0.11.1, encrypting it with 0.18.1, and then calling
|
Experiencing same issue in v0.19.0.1 |
Same here. Been waiting patiently for a fix for this issue for weeks now - is there any movement on this? What are my options? I'd really like to be able to use my wallet for it's intended purpose. |
I've closed #16360 (which solved this) 6 months ago in favor of #15761, which unfortunately conflicted with other work from the same author.
#15761 has been rebased lately so... |
OK. What are my options as I need to access my BTC - a previous release maybe? If so, what version? |
Anyone? |
Helping with review maybe ?.. |
A review of what exactly? After reading what @byt3farm said a few posts up I also downgraded to version v0.17.1 (64-bit) & am now able to use my wallet normally & send payments. This issue was reported here on 26 May 2019 - that's 8 months ago. Since then there have been 3 releases & still the problem persists. I know you guys are busy, but that's pretty lame. How is a casual user supposed to know about this & how to fix it? Suddenly being unable to send payments from one's wallet for no apparent reason is enough to scare anyone, especially as there is no mention of this in the release notes of any of those 3 releases. Something in the release notes along the lines of "You might suddenly be unable to send coins from your own wallet for no reason if you upgrade to any version above 17.1 - this is a long known about issue" would be appropriate - at least users would then be aware & decide if they want to be locked out of their own wallets - only to get asked for a "review" here when asking for help. |
The fix ... ie #15761 |
I did not meant to be rude at all, that's just that ... We can't really know what will be merged or not (even less me, I'm just a casual contributor) : nobody decides. PRs get merged if they are reviewed. PRs are reviewed if there are people interesting in doing it (i.e. excited about the improvement, or because they have a stake in it !). Hence my answer. Now to be more precise, you could just test the PR and leave a comment saying you did so : that way achow101 would be aware that it's worth the rebases / fixes ! |
I'm a casual user, like most people, not a coder. I found this by googling the problem, because I'd never seen or had this problem before. I do read the release notes before deciding weather to upgrade or not though & as there's no mention of this in any of the release notes I presumed it would be safe to upgrade, wrongfully it seems. |
closed by #15761 |
Thanks @adamjonas |
Reaffirming @adamjonas' comment as #15761 has fixed this issue for my wallet. |
#15761 would have been nice provided in a 0.20.1 release since the inability to use old encrypted wallets is a pretty major bug. I'm not sure if I should temporarily use 0.17.1, or build the master branch to upgrade the wallet. I don't feel particularly comfortable using pre-release code for mainnet wallets. Edit: I did decide to build from master for the purpose of upgrading the wallet only. This went fine though I did have to deplete the keypool by running Hopefully in the future more attention will be made towards any wallet upgrades so that they go more smoothly as non-technically minded users wouldn't be able to resolve this as easily. |
Really wish this was prioritized. I have a wallet from 2010 that I just recovered and I really don't want to be building core myself just to upgrade. More and more people willing be digging up old wallets as the price climbs and not all of us 'early adopters' went into software development... |
The PR in question has already been merged and will be in the next major release which should be in ~1 month. |
Can we not have a hotfix release before then? I & others would really like to access our funds & use our wallets before then. |
At this point in time, a hotfix release would not be much faster than the 0.21 release itself. We are already in the release process for 0.21 itself and this process usually takes ~1 month for the final release. However there will be release candidates published before the final release. The first release candidate should be soon and will contain the fix. Additionally, #15761 itself has a few bugs and issues that are being addressed by #18836. This will be merged prior to 0.21 and any release candidates. |
Also experiencing this bug with a 2011 wallet that was not upgraded to HD, but was encrypted. Using v17.1 allowed me to send again, however the transaction is stuck. I transferred alot of trapped Bitcoin into this wallet... |
fyi, 0.21 rc2 is available for testing: https://lists.linuxfoundation.org/pipermail/bitcoin-core-dev/2020-November/000094.html Please use caution when testing a release that is not final. |
Did anyone try this yet? I'm afraid I don't have the bottle - too much BTC to lose if it goes south & I'd hate to be in the same position as @daveblack1 |
Should I presume that nobody tried it - or no, it doesn't work? |
I didn't want to be the first :) |
This issue should be opened again until it has been confirmed that the problem is fixed. |
@p3yot3 I successfully upgraded the wallet from the pre-release master branch and I've had no problems since. I'd be highly surprised if the RC doesn't work. I upgraded the wallet and then went straight back to using 0.20. I made sure to backup the wallet first of-course. If upgrading take note of my previous comment:
Hopefully 0.21 will be released soon, so it might be best to simply wait unless access is urgent. |
Fixed in RC5 & with the god-like help from @achow101 |
Hi,
I am trying to make a purchase but am unable to. bitcoin-qt gives the error:
"Can't generate a change-address key. No keys in the internal keypool and can't generate any keys."
When I try to Google this error, I only come up with mirrors of Bitcoin's source code. debug.log doesn't show any additional information.
No money is sent and there are no new transactions with the wallet.
The wallet is encrypted and unlocked. Using bitcoin-qt v0.18.0 on Gentoo Linux. Tried both the third-party layman version and compiling the official bitcoincore.org source and both fail to let me make a purchase. The last transaction on the wallet was in December 2018 and whatever the latest version of bitcoin-qt was back then.
The text was updated successfully, but these errors were encountered: