monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] fatal error question


From: Jeff Bowman
Subject: [Monotone-devel] fatal error question
Date: Wed, 17 Nov 2004 22:44:01 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I am pretty new to monotone, but like it's ideas. I read the manual online and
performed the tutorial. 

I did this:

mkdir c:\juice\jim
mkdir c:\juice\abe
mkdir c:\juice\beth

then ran the tutorial switching directories each time to assume the role of the
developer listed in the tutorial. In the last section during the merge topic, I
left a server process running for jim as 

monotone --rcfile=.monotonerc --db=jim.db serve hostname co.jp.juicebot.jb7

then in abe, I did the sync and in another window did a merge for jim

monotone --db=jim.db heads
monotone: branch 'co.jp.juicebot.jb7' is currently unmerged:
350217affe28288723af5fd3c03a5f25d2098ba6 address@hidden 2004-11-17T20:28:12
93c99d5ca36cc3f6e01bc4043548004fe6fc20ad address@hidden 2004-11-17T20:25:17

monotone --db=jim.db merge
monotone: merging with revision 1 / 2monotone: [source] 350217affe28288723af5fd3
c03a5f25d2098ba6
monotone: [source] 93c99d5ca36cc3f6e01bc4043548004fe6fc20ad
monotone: common ancestor a359ac1a1150c61bed336e5da6eaa8c981492eb5 found
monotone: trying 3-way merge
enter passphrase for key ID address@hidden: passphrase

monotone: [merged] ded747200a6ec9b78f14b68faa049741bf845590

then as beth I tried to sync (recall the server for him is still up and running
during the merge and after).

monotone --db=beth.db sync hostname co.jp.juicebot.jb7
monotone: rebuilding merkle trees for collection co.jp.juicebot.jb7
monotone: including branch co.jp.juicebot.jb7
monotone: [keys: 2] [rcerts: 12]
monotone: connecting to hostname
enter passphrase for key ID address@hidden: passphrase

monotone: [bytes in: 7587] [bytes out: 1299]
monotone: discarding debug log
monotone: fatal: std::logic_error: netsync.cc:565: invariant 'I(j !=
attach_map.end())' violated


The only way I could get around this error and get beth's copy sync'd was to
follow these steps:

monotone --db=beth.db privkey address@hidden > beth.privkey
monotone --db=beth2.db db init
monotone --db=beth2.db read < beth.privkey
monotone --db=beth2.db read < beth.pubkey
monotone --db=beth2.db read < jim.pubkey
monotone --db=beth2.db read < abe.pubkey

monotone --db=beth2.db sync hostname co.jp.juicebot.jb7
monotone: rebuilding merkle trees for collection co.jp.juicebot.jb7
monotone: connecting to hostname
enter passphrase for key ID address@hidden: passphrase

monotone: [bytes in: 14198] [bytes out: 1840]
monotone: successful exchange with dusu3500b31

monotone --db=beth2.db update
monotone: selected update target ded747200a6ec9b78f14b68faa049741bf845590
monotone: updating src/apple.c to 5ffdcd6bf1dc19dad64b23b88f3b74ad9ce37ad9
monotone: updated to base revision ded747200a6ec9b78f14b68faa049741bf845590

monotone --db=beth2.db heads
monotone: branch 'co.jp.juicebot.jb7' is currently merged:
ded747200a6ec9b78f14b68faa049741bf845590 address@hidden address@hidden 2
004-11-17T20:42:00 2004-11-17T20:29:59

so, the question is, when errors like this happen, how does one recover. This is
a lot of effort for some of my users to try to figure out. I'm not always
available to help walk them through processes like this. 

Also, haveing created the second db and syncing with another user (jim in this
case) can I delete the original db and rename the second to the original?

Thanks,

Jeff





reply via email to

[Prev in Thread] Current Thread [Next in Thread]