Bitcoin Forum
April 23, 2024, 04:44:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: { [Error: CWallet::GenerateNewKey() : AddKey failed] code: -1 }  (Read 1345 times)
loourr (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
August 11, 2014, 02:56:45 AM
 #1

Any idea what error code -1 means and what could be causing this?

I'm trying to refill my keypool and then back up my wallet.dat so first I call walletpassphrase followed by keypoolrefill and then I get the error

{ [Error: CWallet::GenerateNewKey() : AddKey failed] code: -1 }

Not quite sure what could be causing this since the same unlock pattern works for send on this same wallet.

Gavin documents the error codes here (https://bitcointalk.org/index.php?topic=33122.0) but unfortunately left out -1.
1713890698
Hero Member
*
Offline Offline

Posts: 1713890698

View Profile Personal Message (Offline)

Ignore
1713890698
Reply with quote  #2

1713890698
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713890698
Hero Member
*
Offline Offline

Posts: 1713890698

View Profile Personal Message (Offline)

Ignore
1713890698
Reply with quote  #2

1713890698
Report to moderator
1713890698
Hero Member
*
Offline Offline

Posts: 1713890698

View Profile Personal Message (Offline)

Ignore
1713890698
Reply with quote  #2

1713890698
Report to moderator
1713890698
Hero Member
*
Offline Offline

Posts: 1713890698

View Profile Personal Message (Offline)

Ignore
1713890698
Reply with quote  #2

1713890698
Report to moderator
rapta
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
August 11, 2014, 05:09:10 AM
 #2

Is the wallet accessible file permission wise?
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


https://gliph.me/hUF


View Profile
August 11, 2014, 12:05:56 PM
 #3


Do you unlock the wallet with some time argument, i.e. 600?

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
loourr (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
August 11, 2014, 02:56:28 PM
Last edit: August 11, 2014, 03:10:31 PM by loourr
 #4

yeah, currently doing

bitcoind walletpassphrase myreallysafepassword 5

and the permissions on my wallet.dat are

-rw------- or 600
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


https://gliph.me/hUF


View Profile
August 11, 2014, 03:01:12 PM
 #5


That will give you only 5 seconds. Might be a bit short?

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
loourr (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
August 11, 2014, 03:14:10 PM
 #6

Thanks, I'll try it for longer.

On a related note. If I unlock my wallet for say 30min and then make a copy of my wallet in that time without re locking it, will the copy be encrypted?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3374
Merit: 4598



View Profile
August 11, 2014, 03:29:44 PM
 #7

Thanks, I'll try it for longer.

On a related note. If I unlock my wallet for say 30min and then make a copy of my wallet in that time without re locking it, will the copy be encrypted?

Yes.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!