[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] netsync problems again
From: |
Peter Simons |
Subject: |
[Monotone-devel] netsync problems again |
Date: |
06 Apr 2004 18:21:04 +0200 |
I have just set-up a fresh repository and now I'm having
problems again. :-(
I have started the server as follows:
monotone --verbose --norc --rcfile permissions.lua \
--db=public.db serve monotone.cryp.to to.cryp
But when I try to push the branch to.cryp.mapson to the
repository, the server denies access with the following
error:
monotone: accepting new connection on monotone.cryp.to : 5253
monotone: accepted new client connection from 213.146.112.87:43200
monotone: db.fetch("SELECT keydata FROM public_keys where id =
'address@hidden'")
monotone: i/o probe with 0 armed
monotone: wrote 47 bytes to fd 6 (peer 213.146.112.87:43200), 0 remain in
output buffer
monotone: i/o probe with 0 armed
monotone: read 214 bytes from fd 6 (peer 213.146.112.87:43200)
monotone: db.execute("BEGIN")
monotone: processing 0 byte input buffer from peer 213.146.112.87:43200
monotone: received 'auth' netcmd from client
'767862b0b7a05ef652e675652029238745d7462e' for collection
'to.cryp.mapson' in source mode with nonce1
'595d6a5f50cc2f652b5e60b5ed471302418c1be6' and nonce2
'7304d412c9dfa7e7277fa42ae89e125db11b0fc5'
monotone: warning: not currently serving requested collection 'to.cryp.mapson'
monotone: db.execute("COMMIT")
monotone: fd 6 (peer 213.146.112.87:43200) processing finished, disconnecting
monotone: i/o probe with 0 armed
When I start the server giving the branch name explicitly,
as in
monotone --verbose --norc --rcfile permissions.lua \
--db=public.db serve monotone.cryp.to to.cryp to.cryp.mapson
then it works.
And just to be sure, here is the contents of the LUA file:
-- Anonymous Access only to cryp.to.*
function get_netsync_anonymous_read_permitted (collection)
if (string.find(collection, "^to%.cryp%.")) then return true end
return false
end
-- Configure read- and write access.
function get_netsync_read_permitted (collection, identity)
if (identity == "address@hidden") then return true end
return false
end
function get_netsync_write_permitted (collection, identity)
if (string.find(collection, "^to%.cryp%.")) then
if (identity == "address@hidden") then return true end
end
return false
end
Any idea what I might be doing wrong?
Peter
- [Monotone-devel] netsync problems again,
Peter Simons <=