Created on 2008-03-31.14:00:24 by kowey, last changed 2009-10-23.23:28:34 by admin.
File name |
Uploaded |
Type |
Edit |
Remove |
config.log
|
kowey,
2008-03-31.14:27:25
|
text/x-log |
|
|
configure-output
|
kowey,
2008-03-31.14:35:31
|
application/octet-stream |
|
|
msg4112 (view) |
Author: kowey |
Date: 2008-03-31.14:00:22 |
|
I think this patch breaks darcs for me at work, because the current version of
the HTTP library does not like our proxy server. The result is that darcs, with
any command, just hangs... [as do helper programs like ./list_authors].
* add phone-home capability to darcs on failure.
The idea is to check for the status of the darcs version, and print an
appropriate recommendation (e.g. please upgrade, this is a seriously old
version of darcs rather than "please send in a bug report").
This feature requires the http package be installed. Perhaps we should
require this.
M ./configure.ac -2
M ./src/Darcs/Bug.lhs -6 +19
Hah! I remember my prior zeal for switching to HTTP. Payback!
|
msg4114 (view) |
Author: droundy |
Date: 2008-03-31.14:05:11 |
|
On Mon, Mar 31, 2008 at 02:00:24PM -0000, Eric Kow wrote:
> I think this patch breaks darcs for me at work, because the current version of
> the HTTP library does not like our proxy server. The result is that darcs, with
> any command, just hangs... [as do helper programs like ./list_authors].
>
> * add phone-home capability to darcs on failure.
> The idea is to check for the status of the darcs version, and print an
> appropriate recommendation (e.g. please upgrade, this is a seriously old
> version of darcs rather than "please send in a bug report").
>
> This feature requires the http package be installed. Perhaps we should
> require this.
>
> M ./configure.ac -2
> M ./src/Darcs/Bug.lhs -6 +19
>
> Hah! I remember my prior zeal for switching to HTTP. Payback!
I don't think it could be this patch, as this patch shouldn't have any
effect at all until a bug is reported. Unless perhaps you've been
compiling with no http library at all, and relying on external calls to
curl or wget?
Can you send the output of any command run with debug output? (And ideally
consider adding more debug output if it you don't see what's triggering the
hang?) Thanks!
--
David Roundy
Department of Physics
Oregon State University
|
msg4115 (view) |
Author: kowey |
Date: 2008-03-31.14:11:50 |
|
It gets stuck after this...
$ ./darcs what --debug-verbose
Beginning identifying repository .
Done identifying repository .
Beginning reading pristine
Reading hash file 9794e683ce0102adb1438846cc77878b6dfcedce from pristine.hashed/
I'm doing copyFileUsingCache on
pristine.hashed/9794e683ce0102adb1438846cc77878b6dfcedce
|
msg4118 (view) |
Author: droundy |
Date: 2008-03-31.14:16:08 |
|
Can you give me the output of configure?
--
David Roundy
Department of Physics
Oregon State University
|
msg4119 (view) |
Author: kowey |
Date: 2008-03-31.14:27:25 |
|
> I don't think it could be this patch, as this patch shouldn't have any
> effect at all until a bug is reported. Unless perhaps you've been
> compiling with no http library at all, and relying on external calls to
> curl or wget?
Just to make sure, I have confirmed that unpulling this patch and
doing make maintainer-clean solves the hanging. Likewise, pulling it
back in (make maintainer-clean) causes it to hang again.
I suspect it's not the meat of the patch that causes the problem, but
the mandatory use of HTTP, which affects non-phone-home-related parts
of darcs code, if I understand correctly.
Attached is my config.log
Attachments
|
msg4123 (view) |
Author: droundy |
Date: 2008-03-31.14:30:47 |
|
On Mon, Mar 31, 2008 at 02:27:26PM -0000, Eric Kow wrote:
> Just to make sure, I have confirmed that unpulling this patch and
> doing make maintainer-clean solves the hanging. Likewise, pulling it
> back in (make maintainer-clean) causes it to hang again.
>
> I suspect it's not the meat of the patch that causes the problem, but
> the mandatory use of HTTP, which affects non-phone-home-related parts
> of darcs code, if I understand correctly.
Right, which is why I'm wanting to see how your darcs was configured.
> Attached is my config.log
Could you just run ./configure >> configure-output and send me that? The
config.log is way too verbose for me to usefully parse (except when I've
already seen a configure error in the actual output).
--
David Roundy
Department of Physics
Oregon State University
|
msg4124 (view) |
Author: kowey |
Date: 2008-03-31.14:35:31 |
|
> Could you just run ./configure >> configure-output and send me that? The
> config.log is way too verbose for me to usefully parse (except when I've
> already seen a configure error in the actual output).
Yep!
Attachments
|
msg4129 (view) |
Author: droundy |
Date: 2008-03-31.14:47:24 |
|
On Mon, Mar 31, 2008 at 02:35:33PM -0000, Eric Kow wrote:
> > Could you just run ./configure >> configure-output and send me that? The
> > config.log is way too verbose for me to usefully parse (except when I've
> > already seen a configure error in the actual output).
>
> Yep!
This is really weird. According to this you do have libcurl, and configure
finds it. So you should never be using HTTP unless you run into a bug.
I'm adding it more debug prints to the HTTP module, but for now could you
just add a little putStrLn "I'm here in HTTP" in HTTP.fetchFile and see if
it's actually called?
Also, if strace is available, could you try running your darcs what command
under strace, to see if that gives a hint as to what system commands are
being called? Thanks!
--
David Roundy
Department of Physics
Oregon State University
|
msg4132 (view) |
Author: droundy |
Date: 2008-03-31.15:20:01 |
|
I've now uploaded patches which will give more debug output. Can you try
running with the latest darcs-unstable, and see what debug output you get? (and
post it...)
|
msg4135 (view) |
Author: kowey |
Date: 2008-03-31.15:26:59 |
|
> I've now uploaded patches which will give more debug output. Can you try
> running with the latest darcs-unstable, and see what debug output you get? (and
> post it...)
Before I do that, I might note that the putStrLns do indicate it's
trying to fetch http://darcs.net/maintainence
in darcs what
Right... compiling away
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
|
msg4137 (view) |
Author: kowey |
Date: 2008-03-31.15:28:02 |
|
Also, in case anybody else suffers from this, unpulling this patch
from HTTP helps:
* Send abs_path as Request-URI to comply with HTTP 1.1 spec.
RFC2616 Section 5.1.2 specifies that abs_path MUST be used to
identify a resource on a origin server or gateway, not absoluteURI
which is for use with proxies.
Change Request's Show instance to use /path/to/resource rather than
http://server/path/to/resource.
|
msg4140 (view) |
Author: droundy |
Date: 2008-03-31.15:59:24 |
|
All right Eric, I've been able to track this down. I'm investigating a bit more
(to figure out why bug is being called and then caught), but have a fix which
will be on its way soon. So then your darcs will only hang when there's a bug.
But it ought to actually print a message indicating there's a bug before
hanging (if my lazy IO is done right).
|
msg4141 (view) |
Author: droundy |
Date: 2008-03-31.16:09:32 |
|
Ah, the problem was in Prefs where I threw an exception using bug, with the
intent to catch it. So now I've fixed both bugs that allowed this to happen.
Now when we call bug it won't check maintenance until we actually print the
message (or read the string, anyhow), and we don't abuse bug in this way in
Prefs, instead using "fail", which is somewhat more appropriate.
|
msg4149 (view) |
Author: droundy |
Date: 2008-03-31.19:07:16 |
|
The following patch updated the status of issue771 to be resolved in the unstable branch:
* resolve issue771: make _bugDoc try to do IO in a lazier manner.
This keeps us from downloading http://darcs.net/maintenance unless we
actually need to report an error message to our users.
You can view the patch details online here:
http://darcs.net/cgi-bin/darcs.cgi/unstable/?c=annotate&p=20080331160119-72aca-72b05553c4ef2e4513ebc18f41568c015c600468.gz
|
|
Date |
User |
Action |
Args |
2008-03-31 14:00:24 | kowey | create | |
2008-03-31 14:05:12 | droundy | set | status: unread -> unknown nosy:
+ droundy messages:
+ msg4114 |
2008-03-31 14:11:51 | kowey | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4115 |
2008-03-31 14:16:10 | droundy | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4118 |
2008-03-31 14:27:26 | kowey | set | files:
+ config.log nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4119 |
2008-03-31 14:30:50 | droundy | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4123 |
2008-03-31 14:35:33 | kowey | set | files:
+ configure-output nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4124 |
2008-03-31 14:47:26 | droundy | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4129 |
2008-03-31 15:20:03 | droundy | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4132 |
2008-03-31 15:27:00 | kowey | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4135 |
2008-03-31 15:28:03 | kowey | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4137 |
2008-03-31 15:59:25 | droundy | set | nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4140 |
2008-03-31 16:09:33 | droundy | set | status: unknown -> resolved nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4141 |
2008-03-31 19:07:17 | droundy | set | status: resolved -> resolved-in-unstable nosy:
droundy, tommy, beschmi, kowey, Serware messages:
+ msg4149 title: HTTP + proxy server hangs (2.0.0pre4) -> make _bugDoc try to do IO in a lazier manner. |
2008-09-04 21:33:04 | admin | set | status: resolved-in-unstable -> resolved nosy:
+ dagit |
2009-08-06 17:57:42 | admin | set | nosy:
+ markstos, jast, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy |
2009-08-06 21:01:26 | admin | set | nosy:
- beschmi |
2009-08-10 22:19:00 | admin | set | nosy:
- markstos, darcs-devel, zooko, jast, mornfall |
2009-08-11 00:09:21 | admin | set | nosy:
- dagit |
2009-08-25 18:08:13 | admin | set | nosy:
+ darcs-devel, - simon |
2009-08-27 14:09:34 | admin | set | nosy:
tommy, kowey, darcs-devel, thorkilnaur, dmitry.kurochkin, Serware |
2009-10-23 22:42:37 | admin | set | nosy:
+ serware, - Serware |
2009-10-23 23:28:34 | admin | set | nosy:
+ Serware, - serware |
|