Bitcoin Forum
April 26, 2018, 03:05:00 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: { [Error: CWallet::GenerateNewKey() : AddKey failed] code: -1 }  (Read 1223 times)
loourr
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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1524711900
Hero Member
*
Offline Offline

Posts: 1524711900

View Profile Personal Message (Offline)

Ignore
1524711900
Reply with quote  #2

1524711900
Report to moderator
1524711900
Hero Member
*
Offline Offline

Posts: 1524711900

View Profile Personal Message (Offline)

Ignore
1524711900
Reply with quote  #2

1524711900
Report to moderator
1524711900
Hero Member
*
Offline Offline

Posts: 1524711900

View Profile Personal Message (Offline)

Ignore
1524711900
Reply with quote  #2

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

Activity: 326
Merit: 250


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

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

Activity: 1316
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
Newbie
*
Offline Offline

Activity: 21
Merit: 0


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: 1316
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
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: 2142
Merit: 1321



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!