[Monotone-devel] Re: error: Extraneous data in key store (0.26pre2)

2006-02-19 Thread Henry Nestler

Nathaniel Smith wrote:

On Mon, Feb 13, 2006 at 06:24:54PM +0100, Henry Nestler wrote:

Hello Tim,

Timothy Brownawell wrote:

On Mon, 2006-02-13 at 13:40 +0100, Henry Nestler wrote:

$ ls ~/.monotone/keys
henry-privkey.txt  henry-pubkey.txt  server-privkey.txt  server-pubkey.txt

Those shouldn't be there. Instead, each key should have a "keypair"

Files I stored there by hand.  I thought, it would be a good place.  :(


Maybe the keystore should have a README file or something in it, that
we know to ignore and that warns people about this sort of thing?


"error: Extraneous data in key store"
A hint about the 'name' of wrong file you found, would help in error 
message.  Then I would see my private files and can move or delete them.


My badly was, that the files was created by old monotone version and I 
copied it into same place of new monotone keystore area.  I'm not know, 
that you scans any files in this directory.


--
Henry Nestler


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] Re: error: Extraneous data in key store (0.26pre2)

2006-02-18 Thread Nathaniel Smith
On Mon, Feb 13, 2006 at 06:24:54PM +0100, Henry Nestler wrote:
> Hello Tim,
> 
> Timothy Brownawell wrote:
> >On Mon, 2006-02-13 at 13:40 +0100, Henry Nestler wrote:
> >>$ ls ~/.monotone/keys
> >>henry-privkey.txt  henry-pubkey.txt  server-privkey.txt  server-pubkey.txt
> >
> >Those shouldn't be there. Instead, each key should have a "keypair"
> 
> Files I stored there by hand.  I thought, it would be a good place.  :(

Maybe the keystore should have a README file or something in it, that
we know to ignore and that warns people about this sort of thing?

-- Nathaniel

-- 
Eternity is very long, especially towards the end.
  -- Woody Allen


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


[Monotone-devel] Re: error: Extraneous data in key store (0.26pre2)

2006-02-13 Thread Henry Nestler

Hello Tim,

Timothy Brownawell wrote:

On Mon, 2006-02-13 at 13:40 +0100, Henry Nestler wrote:

$ ls ~/.monotone/keys
henry-privkey.txt  henry-pubkey.txt  server-privkey.txt  server-pubkey.txt


Those shouldn't be there. Instead, each key should have a "keypair"


Files I stored there by hand.  I thought, it would be a good place.  :(


packet (equivalent to pubkey+privkey), in its own file. Could you move
those files someplace else, and try migrating again?


I removed all files from ~/.monotone/keys, "db migrate" again and it 
works.  Thanks!


--
Henry Nestler


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] Re: error: Extraneous data in key store (0.26pre2)

2006-02-13 Thread Timothy Brownawell
On Mon, 2006-02-13 at 13:40 +0100, Henry Nestler wrote:
> $ ls ~/.monotone/keys
> henry-privkey.txt  henry-pubkey.txt  server-privkey.txt  server-pubkey.txt

Those shouldn't be there. Instead, each key should have a "keypair"
packet (equivalent to pubkey+privkey), in its own file. Could you move
those files someplace else, and try migrating again?

$ ls ~/.monotone/keys/
[EMAIL PROTECTED]
$ cat ~/.monotone/keys/[EMAIL PROTECTED]
[keypair [EMAIL PROTECTED]
<'#' character>

[end]
$ 

Tim




___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


[Monotone-devel] Re: error: Extraneous data in key store (0.26pre2)

2006-02-13 Thread Henry Nestler

Tried to store private keys into old file before migrate, but helps not.
The error is on db migrate now.

$ monotone-0.23 --db=test.db read < server-pubkey.txt
monotone: read 1 packet

$ monotone-0.23 --db=test.db read < server-privkey.txt
monotone: read 1 packet

$ ./monotone-0.26pre2-x86-semistatic --db=test.db db migrate
monotone: calculating necessary migration steps
enter passphrase for key ID [henry]:
monotone: moving key 'henry' from database to /home/henry/.monotone/keys
monotone: error: Extraneous data in key store.

$ rm ~/.monotone/keys/henry

$ ls ~/.monotone/keys
henry-privkey.txt  henry-pubkey.txt  server-privkey.txt  server-pubkey.txt

$ ./monotone-0.26pre2-x86-semistatic --db=test.db db migrate
monotone: calculating necessary migration steps
enter passphrase for key ID [henry]:
monotone: moving key 'henry' from database to /home/henry/.monotone/keys
monotone: error: Extraneous data in key store.

--
Henry Nestler
monotone: started up on Linux 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686
monotone: command line: './monotone-0.26pre2-x86-semistatic', 
'--db=colinux-testing8.db', 'db', 'migrate', '--debug'
monotone: set locale: LC_ALL=de_DE
monotone: initial abs path is: /home/henry/mt-0.26
monotone: converting 34 bytes from ISO-8859-1 to UTF-8
monotone: converting 24 bytes from ISO-8859-1 to UTF-8
monotone: converting 2 bytes from ISO-8859-1 to UTF-8
monotone: converting 7 bytes from ISO-8859-1 to UTF-8
monotone: converting 7 bytes from ISO-8859-1 to UTF-8
monotone: initializing from directory /home/henry/mt-0.26
monotone: searching for 'MT' directory with root '/'
monotone: 'MT' not found in '/home/henry/mt-0.26' with '' removed
monotone: 'MT' not found in '/home/henry' with 'mt-0.26' removed
monotone: 'MT' not found in '/home' with 'henry/mt-0.26' removed
monotone: search for 'MT' ended at '/' with 'home/henry/mt-0.26' removed
monotone: '/MT' does not exist
monotone: skipping nonexistent rcfile '/home/henry/.monotone/monotonerc'
monotone: skipping nonexistent rcfile 'MT/monotonerc'
monotone: executing command 'db'
monotone: executing SQL 'SELECT sql FROM sqlite_master WHERE (type = 'table' OR 
type = 'index') AND sql IS NOT NULL AND name not like 'sqlite_stat%' ORDER BY 
name'
monotone: result: 0 (not an error)
monotone: calculating necessary migration steps
monotone: executing SQL 'BEGIN EXCLUSIVE'
monotone: result: 0 (not an error)
monotone: executing SQL 'SELECT sql FROM sqlite_master WHERE (type = 'table' OR 
type = 'index') AND sql IS NOT NULL AND name not like 'sqlite_stat%' ORDER BY 
name'
monotone: result: 0 (not an error)
monotone: executing SQL 'SELECT id, keydata FROM private_keys;'
monotone: result: 0 (not an error)
monotone: executing SQL 'SELECT id, keydata FROM public_keys;'
monotone: result: 0 (not an error)
monotone: base64-decoding 859-byte old private key
monotone: loading lua hook persist_phrase_ok
monotone: lua: extracted bool = 1
monotone: loading lua hook get_passphrase
monotone: lua failure: isfunction() in get_fn; stack = nil  
monotone: Lua::ok(): failed
monotone: running arc4 process on 634 bytes of data
monotone: building signer from 634-byte decrypted private key
monotone: loading lua hook persist_phrase_ok
monotone: lua: extracted bool = 1
monotone: running arc4 process on 634 bytes of data
monotone: building signer from 634-byte decrypted private key
monotone: loading lua hook persist_phrase_ok
monotone: lua: extracted bool = 1
monotone: running arc4 process on 634 bytes of data
monotone: building signer from 634-byte decrypted private key
monotone: moving key 'henry' from database to /home/henry/.monotone/keys
monotone: read pubkey data packet
monotone: key_store.cc:31: detected error 'E(false)' violated
monotone: statement cache statistics
monotone: prepared 0 statements
monotone: error: Extraneous data in key store.
___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel