monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] populating a depot server


From: Jeremy Fitzhardinge
Subject: Re: [Monotone-devel] populating a depot server
Date: Wed, 12 Nov 2003 09:12:40 -0800

On Mon, 2003-11-10 at 11:26, graydon hoare wrote:
> > But when I do "monotone post" it asks for my password and then says
> > "monotone: posted 0 / 1995 packets ok".  The depot still has an
> > empty database ("depot operational with 0 packets").  What's going
> > wrong?
> 
> that's a bit more troubling. it's possible your HTTP server doesn't
> run CGIs under a permission which lets them write to the file. also
> possible your crypto++ (or your depot's crypto++) was compiled with an
> optimization setting which causes its RSA calculation to fail (when
> verifying your posting signature); we've seen that before.
> 
> if you run post with --verbose, you'll see the HTTP header which the
> depot responded with. that might shed some light on how it's failing.

I'm still getting strange results.

When I do the monotone post --verbose, it says:

: abulafia:pts/12; monotone post --verbose
monotone: opening rcfile '/home/jeremy/.monotonerc' ... monotone: ok
monotone: executing post command
monotone: no URL provided, posting all queued targets
monotone: db.fetch("SELECT url FROM posting_queue GROUP BY url")
monotone: parsed URL: proto 'http', user '', host 'www.goop.org', port '80', 
path '/~jeremy/valgrind/monotone/depot.cgi', group 'valgrind'
monotone: found 1 targets for posting
monotone: parsed URL: proto 'http', user '', host 'www.goop.org', port '80', 
path '/~jeremy/valgrind/monotone/depot.cgi', group 'valgrind'
monotone: db.fetch("SELECT content FROM posting_queue WHERE url = 
'http://www.goop.org/~jeremy/valgrind/monotone/depot.cgi/valgrind'")
monotone: db.fetch("SELECT id FROM private_keys WHERE id = 'address@hidden'")
monotone: db.fetch("SELECT keydata FROM private_keys where id = 
'address@hidden'")
monotone: base64-decoding 856-byte private key
monotone: lua isfunction() failed in get_fn
enter passphrase for key ID address@hidden :
monotone: running arc4 process on 633 bytes of data
monotone: building signer from 633-byte decrypted private key
monotone: produced 128-byte signature
monotone: resolving name www.goop.org
monotone: name www.goop.org resolved to IP 206.170.148.147
monotone: resolved 'www.goop.org' as '206.170.148.147'
monotone: connecting to port number 80
monotone: HTTP -> 'POST 
/~jeremy/valgrind/monotone/depot.cgi?q=post&group=valgrind&address@hidden&sig=9a89d669055e0762893d7708da0ebf00def7d152ab1089415916599f1bd8621fdc12423166cfb68850b5b0c52b8fdbdee3ce92c139ed90b9fa7a58a7e92829dfb0240d613cddc13e8bba8c0ef9240monotone:
 HTTP -> 'Host: www.goop.org'
monotone: HTTP -> 'Content-Length: 8203082'
monotone: HTTP -> 8203082 bytes
monotone: HTTP <-  0
monotone: HTTP ERROR: ''
monotone: posted 0 / 17797 packets ok

Now depot.cgi?q=status says:
depot operational with 10840 packets

Did I lose a bunch of packets somewhere?

This also seems to make depot.cgi sit there and chew a lot of time - it
seemed like the error return was the server timing out rather than the
.cgi failing.  The web server's logs seem to think there was no problem,
and reports the POST finishing with status 200.

        J





reply via email to

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