Bitcoin Forum
December 18, 2017, 09:11:47 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: { [Error: CWallet::GenerateNewKey() : AddKey failed] code: -1 }  (Read 1212 times)
loourr
Newbie
*
Offline Offline

Activity: 21


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.
1513631507
Hero Member
*
Offline Offline

Posts: 1513631507

View Profile Personal Message (Offline)

Ignore
1513631507
Reply with quote  #2

1513631507
Report to moderator
1513631507
Hero Member
*
Offline Offline

Posts: 1513631507

View Profile Personal Message (Offline)

Ignore
1513631507
Reply with quote  #2

1513631507
Report to moderator
1513631507
Hero Member
*
Offline Offline

Posts: 1513631507

View Profile Personal Message (Offline)

Ignore
1513631507
Reply with quote  #2

1513631507
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513631507
Hero Member
*
Offline Offline

Posts: 1513631507

View Profile Personal Message (Offline)

Ignore
1513631507
Reply with quote  #2

1513631507
Report to moderator
1513631507
Hero Member
*
Offline Offline

Posts: 1513631507

View Profile Personal Message (Offline)

Ignore
1513631507
Reply with quote  #2

1513631507
Report to moderator
1513631507
Hero Member
*
Offline Offline

Posts: 1513631507

View Profile Personal Message (Offline)

Ignore
1513631507
Reply with quote  #2

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

Activity: 327


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

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

Activity: 1288


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
Newbie
*
Offline Offline

Activity: 21


View Profile
August 11, 2014, 02:56:28 PM
 #4

yeah, currently doing

bitcoind walletpassphrase myreallysafepassword 5

and the permissions on my wallet.dat are

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

Activity: 1288


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
Newbie
*
Offline Offline

Activity: 21


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: 2002



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!