Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-02-03 Thread Richard Levitte
In message 20110203072618.ga27...@topoi.pooq.com on Thu, 3 Feb 2011 02:26:18 
-0500, Hendrik Boom hend...@topoi.pooq.com said:

hendrik On Wed, Feb 02, 2011 at 12:09:23AM +0100, Richard Levitte wrote:
hendrik  In message 20110201200533.ga8...@topoi.pooq.com on Tue, 1 Feb 2011 
15:05:33 -0500, Hendrik Boom hend...@topoi.pooq.com said:
hendrik  
hendrik  In your configuration file, you have a logdir setting.  You
hendrik  might want to look at the log file there (write.log, I believe).
hendrik 
hendrik Yes.. There is oe now.  I stopped looking because for a while there 
hendrik wasn't one, but one has now showed up.  It seems to be asking me for a 
hendrik passphrase for key ID hend...@topoi.pooq.com {599fffe...}
hendrik 
hendrik Presumably, monotone wants a passphrase wo start up in server mode.
hendrik 
hendrik What's the recommended way to provide one nowadays?  The method
hendrik involving the get_passphrase hook that the tutorial says is deprecated 
hendrik because of insecurity?  It does have to be available when there's no 
hendrik user logged in on the server machine.

When it comes to automatic starts, such as starting a monotone server
under usher, this is of course a problem (as it is with all mechanisms
that require a password).  The solution still involves the
get_passphrase hook (the deprecation is more for users than server
maintainers), and make sure it's appropriately protected, or to use
the expanded version contrib/get_passphrase_from_file.lua, which has
the passphrases it need to cover in a separate file (which should be
appropriately protected).

hendrik  hendrik Or does it misreport a successful fork with an invalid
hendrik  hendrik monotone command as a failed fork?  Or ... (fill in the real
hendrik  hendrik explanation here, please?)
hendrik  
hendrik  Well, an invalid command of some sort WOULD result in a failed fork,
hendrik  so that's definitely a plausible explanation.  Check the log in
hendrik  {logdir}.
hendrik 
hendrik Well, as long as the monotone process gets started, even if it 
hendrik immediately complains and exits, the fork itself has succeeded, so at 
hendrik the very least it's a misleading error message.  But at this point 
hendrik that's just a quibble.

There's a little bit more done to check that the monotone server has
started correctly.  Usher waits for the server to output something and
expects the first line to contain beginning service.  If that
doesn't happen, it will consider the fork a failure, hence the error
message.  Maybe there should be a little bit more text explaining that
one might get more answers from the appropriate log...

Cheers,
Richard

-- 
Richard Levitte rich...@levitte.org
http://richard.levitte.org/

Life is a tremendous celebration - and I'm invited!
-- from a friend's blog, translated from Swedish

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-02-03 Thread Hendrik Boom
On Thu, Feb 03, 2011 at 10:28:06AM +0100, Richard Levitte wrote:
 In message 20110203072618.ga27...@topoi.pooq.com on Thu, 3 Feb 2011 
 02:26:18 -0500, Hendrik Boom hend...@topoi.pooq.com said:
 
 When it comes to automatic starts, such as starting a monotone server
 under usher, this is of course a problem (as it is with all mechanisms
 that require a password).  The solution still involves the
 get_passphrase hook (the deprecation is more for users than server
 maintainers), and make sure it's appropriately protected, or to use
 the expanded version contrib/get_passphrase_from_file.lua, which has
 the passphrases it need to cover in a separate file (which should be
 appropriately protected).

I don't really see a big difference between the script being protected 
and the separate file being protected.  Unless the file with the scripts 
gets to be huge with a lot of stuff that doesn't need protection, of 
course.

 
 hendrik  hendrik Or does it misreport a successful fork with an invalid
 hendrik  hendrik monotone command as a failed fork?  Or ... (fill in the 
 real
 hendrik  hendrik explanation here, please?)
 hendrik  
 hendrik  Well, an invalid command of some sort WOULD result in a failed 
 fork,
 hendrik  so that's definitely a plausible explanation.  Check the log in
 hendrik  {logdir}.
 hendrik 
 hendrik Well, as long as the monotone process gets started, even if it 
 hendrik immediately complains and exits, the fork itself has succeeded, so 
 at 
 hendrik the very least it's a misleading error message.  But at this point 
 hendrik that's just a quibble.
 
 There's a little bit more done to check that the monotone server has
 started correctly.  Usher waits for the server to output something and
 expects the first line to contain beginning service.  If that
 doesn't happen, it will consider the fork a failure, hence the error
 message.  Maybe there should be a little bit more text explaining that
 one might get more answers from the appropriate log...

Maybe the message should say that the monotone server failed to 
start up correctly.  That, after all, seems to be what's being tested.
When I saw the message that the fork failed, I immediately started 
looking for ways that tthe executable file 'mtn' might not be there or 
have the wrong permissions, etc. etc.

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-02-03 Thread Richard Levitte
In message 20110203160429.ga5...@topoi.pooq.com on Thu, 3 Feb 2011 11:04:29 
-0500, Hendrik Boom hend...@topoi.pooq.com said:

hendrik I don't really see a big difference between the script being
hendrik protected and the separate file being protected.  Unless the
hendrik file with the scripts gets to be huge with a lot of stuff
hendrik that doesn't need protection, of course.

There's another point, and it's that if needed, a script is easier to
upgrade (if need be) if the data is separate.  We've been hitting that
one a couple of times on code.monotone.ca.

hendrik  There's a little bit more done to check that the monotone server has
hendrik  started correctly.  Usher waits for the server to output something 
and
hendrik  expects the first line to contain beginning service.  If that
hendrik  doesn't happen, it will consider the fork a failure, hence the error
hendrik  message.  Maybe there should be a little bit more text explaining 
that
hendrik  one might get more answers from the appropriate log...
hendrik 
hendrik Maybe the message should say that the monotone server failed
hendrik to start up correctly.  That, after all, seems to be what's
hendrik being tested.  When I saw the message that the fork failed, I
hendrik immediately started looking for ways that tthe executable
hendrik file 'mtn' might not be there or have the wrong permissions,
hendrik etc. etc.

It's clearly better to look in the log file.  If mtn can't be started,
it will say execvp failed.

But you make a point here, that some of the messages are a bit cryptic
and really require that you know usher by source...  It could be smart
to make sure they're are a little bit more verbose, and thereby
comprehensible.

Cheers,
Richard

-- 
Richard Levitte rich...@levitte.org
http://richard.levitte.org/

Life is a tremendous celebration - and I'm invited!
-- from a friend's blog, translated from Swedish

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-02-02 Thread Hendrik Boom
On Wed, Feb 02, 2011 at 12:09:23AM +0100, Richard Levitte wrote:
 In message 20110201200533.ga8...@topoi.pooq.com on Tue, 1 Feb 2011 15:05:33 
 -0500, Hendrik Boom hend...@topoi.pooq.com said:
 
 In your configuration file, you have a logdir setting.  You might want
 to look at the log file there (write.log, I believe).

Yes.. There is oe now.  I stopped looking because for a while there 
wasn't one, but one has now showed up.  It seems to be asking me for a 
passphrase for key ID hend...@topoi.pooq.com {599fffe...}

Presumably, monotone wants a passphrase wo start up in server mode.

What's the recommended way to provide one nowadays?  The method
involving the get_passphrase hook that the tutorial says is deprecated 
because of insecurity?  It does have to be available when there's no 
user logged in on the server machine.

 hendrik Or does it misreport a successful fork with an invalid
 hendrik monotone command as a failed fork?  Or ... (fill in the real
 hendrik explanation here, please?)
 
 Well, an invalid command of some sort WOULD result in a failed fork,
 so that's definitely a plausible explanation.  Check the log in
 {logdir}.

Well, as long as the monotone process gets started, even if it 
immediately complains and exits, the fork itself has succeeded, so at 
the very least it's a misleading error message.  But at this point 
that's just a quibble.

Thanks.

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-02-01 Thread Richard Levitte
In message 20110201200533.ga8...@topoi.pooq.com on Tue, 1 Feb 2011 15:05:33 
-0500, Hendrik Boom hend...@topoi.pooq.com said:

hendrik On Mon, Nov 08, 2010 at 02:04:46PM -0500, Hendrik Boom wrote:
hendrik  
hendrik  I guess now comes the inevitable flood of stupid questions as i try 
to 
hendrik  make sense of the documentation.
hendrik  
hendrik 
hendrik Well, I have usher running, and depending on how I write the 
hendrik configuration file it reports I have one or two servers, called 
write, 
hendrik the one I want to start with, and local, the one inherited form the 
hendrik example in the documentation.
hendrik 
hendrik But when I try to sync with write from another computer, I geet 
hendrik problems:
hendrik 
hendrik hendrik@notlookedfor:~/write/Melinda$ mtn sync 
4691://topoi.pooq.com/write
hendrik enter passphrase for key ID [hend...@notlookedfor.topoi.pooq.com] 
(ad968be7...): 
hendrik mtn: connecting to 4691://topoi.pooq.com/write
hendrik mtn: Received warning from usher: Cannot fork server.
hendrik mtn: peer 4691://topoi.pooq.com/write IO terminated connection in 
working state (error)
hendrik mtn: error: I/O failure while talking to peer 
4691://topoi.pooq.com/write, disconnecting
hendrik hendrik@notlookedfor:~/write/Melinda$ 

In your configuration file, you have a logdir setting.  You might want
to look at the log file there (write.log, I believe).

hendrik Can I get usher to tell me what the command it uses really
hendrik is, so I can try it in isolation?

Basically, if we say that {monotone} and {local} are the values of the
settings with corresponding names, it does this:

{monotone} server --bind=127.0.0.1:{randomport} {local}

hendrik Or does it misreport a successful fork with an invalid
hendrik monotone command as a failed fork?  Or ... (fill in the real
hendrik explanation here, please?)

Well, an invalid command of some sort WOULD result in a failed fork,
so that's definitely a plausible explanation.  Check the log in
{logdir}.

-- 
Richard Levitte rich...@levitte.org
http://richard.levitte.org/

Life is a tremendous celebration - and I'm invited!
-- from a friend's blog, translated from Swedish

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-01-31 Thread Richard Levitte
In message 20110131075604.ga14...@topoi.pooq.com on Mon, 31 Jan 2011 02:56:04 
-0500, Hendrik Boom hend...@topoi.pooq.com said:

hendrik On Sat, Nov 20, 2010 at 02:22:37AM +0100, Richard Levitte wrote:
hendrik  In message 20101119201102.ga25...@topoi.pooq.com on Fri, 19 Nov 
2010 15:11:02 -0500, Hendrik Boom hend...@topoi.pooq.com said:
hendrik  
hendrik  hendrik (2) Is there a comment convention for the usher config file?
hendrik  
hendrikcomment This is a lengthy comment
hendrik 
hendrik The comment has to be in quotes?
hendrik Are newlines allowed?
hendrik Should this be documented in 
hendrik https://code.monotone.ca/p/contrib/page/UsherDocumentation/
hendrik ?

Quoted from that page:

  The configuration file for usher approximately follows monotone's basic_io 
format

See http://monotone.thomaskeller.biz/docbuild/html/Formats.html#Formats
for the basic_io format.

Maybe the usher documentation should point to the monotone
documentation for this.

Cheers,
Richard

-- 
Richard Levitte rich...@levitte.org
http://richard.levitte.org/

Life is a tremendous celebration - and I'm invited!
-- from a friend's blog, translated from Swedish

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2011-01-30 Thread Hendrik Boom
On Sat, Nov 20, 2010 at 02:22:37AM +0100, Richard Levitte wrote:
 In message 20101119201102.ga25...@topoi.pooq.com on Fri, 19 Nov 2010 
 15:11:02 -0500, Hendrik Boom hend...@topoi.pooq.com said:
 
 hendrik (2) Is there a comment convention for the usher config file?
 
   comment This is a lengthy comment

The comment has to be in quotes?
Are newlines allowed?
Should this be documented in 
https://code.monotone.ca/p/contrib/page/UsherDocumentation/
?

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-19 Thread Hendrik Boom
On Mon, Nov 08, 2010 at 02:04:46PM -0500, Hendrik Boom wrote:
 
 I guess now comes the inevitable flood of stupid questions as i try to 
 make sense of the documentation.

More stupid question.

(1) The listen addr in the sample script is 0.0.0.0:4691.

   The 4691 is the usual monotone port number.

   But I'm not familiar with IP to know what the 0.0.0.0 means.  Does 
   it mean it listens on all interfaces on the machine?

(2) Is there a comment convention for the usher config file?

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-19 Thread Richard Levitte
In message 20101119201102.ga25...@topoi.pooq.com on Fri, 19 Nov 2010 15:11:02 
-0500, Hendrik Boom hend...@topoi.pooq.com said:

hendrik (1) The listen addr in the sample script is 0.0.0.0:4691.
hendrik 
hendrikThe 4691 is the usual monotone port number.
hendrik 
hendrikBut I'm not familiar with IP to know what the 0.0.0.0 means.  Does 
hendrikit mean it listens on all interfaces on the machine?

Yes.

hendrik (2) Is there a comment convention for the usher config file?

  comment This is a lengthy comment

-- 
Richard Levitte rich...@levitte.org
http://richard.levitte.org/

Life is a tremendous celebration - and I'm invited!
-- from a friend's blog, translated from Swedish

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-10 Thread Timothy Brownawell

On 11/09/2010 10:31 PM, Hendrik Boom wrote:

On Tue, Nov 09, 2010 at 08:50:26PM -0600, Timothy Brownawell wrote:

On 11/08/2010 01:49 PM, Hendrik Boom wrote:

On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:

There is an actual release of usher available now. It's tagged as
usher-0.99 available from
 mtn://monotone.ca/contrib?net.venge.monotone.usher
and there is a tarball available at
 http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz


I did the ./configure, and make, and then I did make test
I got a lot of stuff that looked like errors, but I suspect that the
complete test environment wasn't available on my system.  I don't, to my
knowledge, have a server mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
or is that something the test scripts should have set up?


. It works on at least Debian and FreeBSD.


Using a Debian stable running on a 64-bit AMD64.


It wants socat installed, and it doesn't properly handle when monotone
sends the query string as part of the server name (it shouldn't do that
and 0.99 doesn't, but I think 0.48 does). It really should handle that,
and test against multiple monotone versions if available...


If I understand you correctly, this is just a problem with the test
suite, and not with usher itself?  So I can just proceed to use usher
without bothering with the tests?


Yes.


Of course, to be sure, I should install socat and repeat.  And if I
still have trouble, try with mtn 0.99?

Is sending the query string as part of the server name a problem for
usher, or just for the test suite?


It's a problem for usher itself, I'll try to get it fixed in the next 
day or two.


--
Timothy

Free public monotone hosting: http://mtn-host.prjek.net

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-09 Thread Timothy Brownawell

On 11/08/2010 01:49 PM, Hendrik Boom wrote:

On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:

There is an actual release of usher available now. It's tagged as
usher-0.99 available from
mtn://monotone.ca/contrib?net.venge.monotone.usher
and there is a tarball available at
http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz


I did the ./configure, and make, and then I did make test
I got a lot of stuff that looked like errors, but I suspect that the
complete test environment wasn't available on my system.  I don't, to my
knowledge, have a server mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
or is that something the test scripts should have set up?


. It works on at least Debian and FreeBSD.


Using a Debian stable running on a 64-bit AMD64.


It wants socat installed, and it doesn't properly handle when monotone 
sends the query string as part of the server name (it shouldn't do that 
and 0.99 doesn't, but I think 0.48 does). It really should handle that, 
and test against multiple monotone versions if available...


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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-09 Thread Timothy Brownawell

On 11/08/2010 01:04 PM, Hendrik Boom wrote:

On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:

There is an actual release of usher available now. It's tagged as
usher-0.99 available from
mtn://monotone.ca/contrib?net.venge.monotone.usher
and there is a tarball available at
http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz
. It works on at least Debian and FreeBSD.

You can also browse the source at
http://code.monotone.ca/p/contrib/source/tree/t:usher-0.99/
and see the documentation at

http://code.monotone.ca/p/contrib/source/file/t:usher-0.99/doc/documentation.html


I guess now comes the inevitable flood of stupid questions as i try to
make sense of the documentation.

I'm not clear what happens to authentication.  Have I messed something?

The example configuration has the line

monotonemtn -k my_key

This suggests to me that the various monotones in the herd are going to
be performing actions fot the user whose key is my_key.  What happens
to the identity of the remote user who is initiating the sync operation?


That's the server key, the same as you give to mtn serve. The remote 
user still authenticates with their own key; this is the key the server 
uses to authenticate to them.


--
Timothy

Free public monotone hosting: http://mtn-host.prjek.net

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-09 Thread Timothy Brownawell

On 11/08/2010 12:36 PM, Hendrik Boom wrote:


Well, I did download the tarball,


http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz


and untarred it.  The README file says

The documentation is in doc/documentation.html.

But there is no doc directory to be found in the tarball.


Looks like I forgot to put it in EXTRA_DIST to have it included in the 
tarball, so it's only in the source tree.


--
Timothy

Free public monotone hosting: http://mtn-host.prjek.net

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-09 Thread Hendrik Boom
On Tue, Nov 09, 2010 at 08:50:26PM -0600, Timothy Brownawell wrote:
 On 11/08/2010 01:49 PM, Hendrik Boom wrote:
 On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:
 There is an actual release of usher available now. It's tagged as
 usher-0.99 available from
 mtn://monotone.ca/contrib?net.venge.monotone.usher
 and there is a tarball available at
 http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz

 I did the ./configure, and make, and then I did make test
 I got a lot of stuff that looked like errors, but I suspect that the
 complete test environment wasn't available on my system.  I don't, to my
 knowledge, have a server mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
 or is that something the test scripts should have set up?

 . It works on at least Debian and FreeBSD.

 Using a Debian stable running on a 64-bit AMD64.

 It wants socat installed, and it doesn't properly handle when monotone  
 sends the query string as part of the server name (it shouldn't do that  
 and 0.99 doesn't, but I think 0.48 does). It really should handle that,  
 and test against multiple monotone versions if available...

If I understand you correctly, this is just a problem with the test 
suite, and not with usher itself?  So I can just proceed to use usher 
without bothering with the tests?

Of course, to be sure, I should install socat and repeat.  And if I 
still have trouble, try with mtn 0.99?

Is sending the query string as part of the server name a problem for 
usher, or just for the test suite?

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-08 Thread Hendrik Boom
On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:
 There is an actual release of usher available now. It's tagged as
 usher-0.99 available from
mtn://monotone.ca/contrib?net.venge.monotone.usher

This is what I've been waiting for!  But my browser had other ideas ...

 You can also browse the source at
http://code.monotone.ca/p/contrib/source/tree/t:usher-0.99/
 and see the documentation at

 http://code.monotone.ca/p/contrib/source/file/t:usher-0.99/doc/documentation.html

Whe I enter this URL into my iceweasel browser, it tell me:

You have chosen to open

   * documentation.html

 which is a: HTML Text
 from: http://code.monotone.ca

What should iceweasel do with this file?

* Open with [ /usr/bin/galeon (default) ]
* Save File
* Do this automatically for files like this from now on.

 [ X cancel ] [ OK ]

The drop-down menu that suggests using galeon (another browser) 
presents me to choose between
   [ /usr/bin/galeon (default) ]
and
   Other...

Is this weird, or what?  Iceweasel not knowing what to do with HTML?  
And suggesting handing it over to another browser?


Well, I did download the tarball, 

http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz

and untarred it.  The README file says 

The documentation is in doc/documentation.html.

But there is no doc directory to be found in the tarball.

Of course, when in the browser I select 'save file' and tell it where to 
put it, it saves it away nicely.  Then iceweasel has no trouble showing 
me the contents of the saved file, which appears to be -- what else? -- 
documentation!

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-08 Thread Hendrik Boom
On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:
 There is an actual release of usher available now. It's tagged as
 usher-0.99 available from
mtn://monotone.ca/contrib?net.venge.monotone.usher
 and there is a tarball available at
http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz
 . It works on at least Debian and FreeBSD.
 
 You can also browse the source at
http://code.monotone.ca/p/contrib/source/tree/t:usher-0.99/
 and see the documentation at

 http://code.monotone.ca/p/contrib/source/file/t:usher-0.99/doc/documentation.html

I guess now comes the inevitable flood of stupid questions as i try to 
make sense of the documentation.

I'm not clear what happens to authentication.  Have I messed something?

The example configuration has the line

monotonemtn -k my_key

This suggests to me that the various monotones in the herd are going to 
be performing actions fot the user whose key is my_key.  What happens 
to the identity of the remote user who is initiating the sync operation? 

-- hendrik

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-08 Thread Hendrik Boom
On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:
 There is an actual release of usher available now. It's tagged as
 usher-0.99 available from
mtn://monotone.ca/contrib?net.venge.monotone.usher
 and there is a tarball available at
http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz

I did the ./configure, and make, and then I did make test
I got a lot of stuff that looked like errors, but I suspect that the 
complete test environment wasn't available on my system.  I don't, to my 
knowledge, have a server mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
or is that something the test scripts should have set up?

 . It works on at least Debian and FreeBSD.

Using a Debian stable running on a 64-bit AMD64.

-- hendrik
make  check-TESTS
make[1]: Entering directory `/farhome/hendrik/dn/usher/usher-0.99'
TESTDIR=/farhome/hendrik/dn/usher/usher-0.99/test-dir
Running test test1...
Copying scripts...
scripts
scripts/foobar.sh
bound to 127.0.0.1:23345
bound to 127.0.0.1:8691
Testing: serve example 127.0.0.1:25436
Testing: multipull 3 mtn://HOST/prjek-s?net.prjek.separate
mtn: misuse: database 
/farhome/hendrik/dn/usher/usher-0.99/test-dir/test1/example.mtn does not exist
mtn: setting default server to mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
mtn: setting default branch include pattern to 'net.prjek.separate'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
mtn: Received warning from usher: No server named 'prjek-s?net.prjek.separate'
mtn: error: I/O failure while talking to peer 
mtn://127.0.0.1:8691/prjek-s?net.prjek.separate, disconnecting
mtn: setting default server to mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
mtn: setting default branch include pattern to 'net.prjek.separate'
Testing: multipull 3 'mtn://HOST/prjek?net.prjek.{fnord,foobar}'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
mtn: Received warning from usher: No server named 'prjek-s?net.prjek.separate'
mtn: error: I/O failure while talking to peer 
mtn://127.0.0.1:8691/prjek-s?net.prjek.separate, disconnecting
mtn: setting default server to mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
mtn: setting default branch include pattern to 'net.prjek.separate'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/prjek-s?net.prjek.separate
mtn: Received warning from usher: No server named 'prjek-s?net.prjek.separate'
mtn: error: I/O failure while talking to peer 
mtn://127.0.0.1:8691/prjek-s?net.prjek.separate, disconnecting
mtn: setting default server to 
mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}
mtn: setting default branch include pattern to 'net.prjek.{fnord,foobar}'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}
mtn: Received warning from usher: No server named 
'prjek?net.prjek.{fnord,foobar}'
mtn: error: I/O failure while talking to peer 
mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}, disconnecting
mtn: setting default server to 
mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}
mtn: setting default branch include pattern to 'net.prjek.{fnord,foobar}'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}
mtn: Received warning from usher: No server named 
'prjek?net.prjek.{fnord,foobar}'
mtn: error: I/O failure while talking to peer 
mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}, disconnecting
Testing: multipull 3 mtn://HOST/example?org.example
mtn: setting default server to 
mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}
mtn: setting default branch include pattern to 'net.prjek.{fnord,foobar}'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}
mtn: Received warning from usher: No server named 
'prjek?net.prjek.{fnord,foobar}'
mtn: error: I/O failure while talking to peer 
mtn://127.0.0.1:8691/prjek?net.prjek.{fnord,foobar}, disconnecting
mtn: setting default server to mtn://127.0.0.1:8691/example?org.example
mtn: setting default branch include pattern to 'org.example'
mtn: setting default branch exclude pattern to ''
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://127.0.0.1:8691/example?org.example
mtn: Received warning from usher: No server named 'example?org.example'
mtn: error: I/O failure while talking to peer 

Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-08 Thread Thomas Keller
Am 08.11.10 19:36, schrieb Hendrik Boom:
 On Fri, Nov 05, 2010 at 11:46:03PM -0500, Timothy Brownawell wrote:
 There is an actual release of usher available now. It's tagged as
 usher-0.99 available from
mtn://monotone.ca/contrib?net.venge.monotone.usher
 
 This is what I've been waiting for!  But my browser had other ideas ...
 
 You can also browse the source at
http://code.monotone.ca/p/contrib/source/tree/t:usher-0.99/
 and see the documentation at

 http://code.monotone.ca/p/contrib/source/file/t:usher-0.99/doc/documentation.html
 
 Whe I enter this URL into my iceweasel browser, it tell me:
 
 You have chosen to open
 
* documentation.html
 
  which is a: HTML Text
  from: http://code.monotone.ca
 
 What should iceweasel do with this file?
 
 * Open with [ /usr/bin/galeon (default) ]
 * Save File
 * Do this automatically for files like this from now on.
 
  [ X cancel ] [ OK ]
 
 The drop-down menu that suggests using galeon (another browser) 
 presents me to choose between
[ /usr/bin/galeon (default) ]
 and
Other...
 
 Is this weird, or what?  Iceweasel not knowing what to do with HTML?  
 And suggesting handing it over to another browser?

Its because individual files are represented with Content-disposition:
attachment and that makes the browser open up the save as dialog. I
linked the 0.99 version of the documentation now with a wiki page where
you can just view it:

http://code.monotone.ca/p/contrib/page/UsherDocumentation/

Thomas.

-- 
GPG-Key 0x160D1092 | tommyd3...@jabber.ccc.de | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en



signature.asc
Description: OpenPGP digital signature
___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-06 Thread Hendrik Boom
On Sat, Nov 06, 2010 at 06:36:38AM +0100, Richard Levitte wrote:
 This is a piece of software I'd like to see debianised...
 
 I see there's an ld debian branch...

I wonder whether it should be a replacement for 
monotone-server.  In function, if not in name.

-- hendrik

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


[Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-05 Thread Timothy Brownawell
There is an actual release of usher available now. It's tagged as
usher-0.99 available from
   mtn://monotone.ca/contrib?net.venge.monotone.usher
and there is a tarball available at
   http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz
. It works on at least Debian and FreeBSD.

You can also browse the source at
   http://code.monotone.ca/p/contrib/source/tree/t:usher-0.99/
and see the documentation at
   
http://code.monotone.ca/p/contrib/source/file/t:usher-0.99/doc/documentation.html

There will be a 1.0 release around the same time as monotone 1.0.

-- 
Timothy

Free public monotone hosting: http://mtn-host.prjek.net

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


Re: [Monotone-devel] usher 0.99 release (name-based virtual hosting for monotone)

2010-11-05 Thread Richard Levitte
This is a piece of software I'd like to see debianised...

I see there's an ld debian branch...

Cheers,
Richard

In message 4cd4dd8b.4080...@prjek.net on Fri, 05 Nov 2010 23:46:03 -0500, 
Timothy Brownawell tbrow...@prjek.net said:

tbrownaw There is an actual release of usher available now. It's tagged as
tbrownaw usher-0.99 available from
tbrownawmtn://monotone.ca/contrib?net.venge.monotone.usher
tbrownaw and there is a tarball available at
tbrownawhttp://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz
tbrownaw . It works on at least Debian and FreeBSD.
tbrownaw 
tbrownaw You can also browse the source at
tbrownawhttp://code.monotone.ca/p/contrib/source/tree/t:usher-0.99/
tbrownaw and see the documentation at
tbrownaw
http://code.monotone.ca/p/contrib/source/file/t:usher-0.99/doc/documentation.html
tbrownaw 
tbrownaw There will be a 1.0 release around the same time as monotone 1.0.
tbrownaw 
tbrownaw -- 
tbrownaw Timothy
tbrownaw 
tbrownaw Free public monotone hosting: http://mtn-host.prjek.net

-- 
Richard Levitte rich...@levitte.org
http://richard.levitte.org/

Life is a tremendous celebration - and I'm invited!
-- from a friend's blog, translated from Swedish

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