monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] problem with denied permissions


From: Martin Bruse
Subject: [Monotone-devel] problem with denied permissions
Date: Mon, 21 Feb 2011 11:07:56 +0100

Hello, I don't subscribe to this list, so please reply directly to me if you have any helpful hints :)

Today when I tried to sync with my usher at home, I got a denied read permission for something that worked perfectly fine a couple days ago.

I have now simplified the case slightly by removing usher from the equation, and this is what it looks like now:

client machine:
--------------------8<------------------
[0:address@hidden ~/monotoneroot/com.menyou.webapp.main]$ mtn ls keys
[public keys]
...
bc1c458bdffa1f9b21fca7cfd7719606a3b64c83 address@hidden
...

[private keys]
bc1c458bdffa1f9b21fca7cfd7719606a3b64c83 address@hidden

[0:address@hidden ~/monotoneroot/com.menyou.webapp.main]$ mtn sync
mtn: connecting to mtn://troja.ath.cx:25500
mtn: finding items to synchronize:
mtn: certificates | keys | revisions
mtn:       21,183 |   28 |     7,260
mtn: warning: protocol error while processing peer mtn://troja.ath.cx:25500: 'received network error: denied 'bc1c458bdffa1f9b21fca7cfd7719606a3b64c83' read permission for '*' excluding '' because of branch 'com.blabah.ruburple.main''
mtn:  bytes in | bytes out | revs in
mtn:       161 |       328 |       0
mtn: error: processing failure while talking to peer mtn://troja.ath.cx:25500, disconnecting
[1:address@hidden ~/monotoneroot/com.menyou.webapp.main]$ 
--------------------8<------------------

server machine:
--------------------8<------------------
[0:address@hidden ~]$mtn -d doc/monotone.db.serve ls keys

[public keys]
...
bc1c458bdffa1f9b21fca7cfd7719606a3b64c83 address@hidden
...

[private keys]
035902c824d70472af0e9bbabef7211b0df42ac7 address@hidden

[0:address@hidden ~]$cat .monotone/monotonerc

function get_netsync_read_permitted (collection, identity)
if (identity == "address@hidden") then return true end
...
     return false
end
     
function get_netsync_write_permitted (identity)
if (identity == "address@hidden") then return true end
...
        return false
end

function get_passphrase(keypair_id)
...
end
[0:address@hidden ~]$mtn -d doc/monotone.db --bind 0.0.0.0:25500 serve
mtn: beginning service on 0.0.0.0 : 25500
mtn: accepted new client connection from 84.55.121.130 : 37034
mtn: warning: error: denied 'bc1c458bdffa1f9b21fca7cfd7719606a3b64c83' read permission for '*' excluding '' because of branch 'com.blabah.ruburple.main'
mtn: peer 84.55.121.130:37034 IO failed in working state (error)

--------------------8<------------------

Any idea how this happened?

regards,
//Martin Bruse

reply via email to

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