Hi Dan,

With our current Apache config, we don't see anything outwardly wrong reflected in the access log when a user issues a ctl-c against pkg(1) while a download is in progress. However, on the pkg.dedpotd logs, we see the traceback as shown below.

Have you tried turning on %X in the apache log file?  We don't use
that, but if it does what I think it will, it should show you something
when the connection was aborted.

http://httpd.apache.org/docs/2.2/mod/mod_log_config.html

%X      Connection status when response is completed:
X =     connection aborted before the response completed.
+ =     connection may be kept alive after the response is sent.
- =     connection will be closed after the response is sent.

Thanks for the tip.

Based on a test where I added the %X directive to the log config in Apache and I severed the network connection between my client and the repo during a package installation, I indeed see an "X" at the end of the last record in the trace included below.

It's good that we can easily determine when connections are aborted, but we'd like to correlate those aborted connections with the packages being installed and/or updated.

Since files for multiple packages can be transferred in a single filelist response, I assume that it's not feasible for us to reliably report that download of a single package was affected by an aborted connection. Perhaps the best we can do at the Apache access log level is to write a script to report on the most recent manifest requests containing intent header info associated with the failed filelist. Doing this would enable us to at least report on the one or more packages and the operations that were intended.

Does that seem reasonable?

Is there still room for an RFE for depotd to automatically make the package or transaction information clear in its logs file as a result of an aborted connection? (All we're seeing now is the exception trace that I reported earlier).

Thanks,
Chris


129.150.32.62 - - [21/Jul/2009:13:00:38 -0700] "GET /dev/latest/catalog/0 HTTP/1.1" 200 - "-" "pkg/5bcd97b6fcb1 (darwin i386; 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386; user; pkg)" "569d1dc7-6770-11de-936a-00144f47da9c" "-" -

129.150.32.62 - - [21/Jul/2009:13:00:38 -0700] "HEAD /dev/latest/manifest/0/[email protected]%2c0-0.26%3a20080425t022210z HTTP/1.1" 200 - "-" "pkg/5bcd97b6fcb1 (darwin i386; 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386; user; pkg)" "569d1dc7-6770-11de-936a-00144f47da9c" "([email protected],0-0.26:20080425T022210Z;reason=process;operation=install)" - 129.150.32.62 - - [21/Jul/2009:13:00:39 -0700] "POST /dev/latest/filelist/0 HTTP/1.1" 200 1546240 "-" "pkg/5bcd97b6fcb1 (darwin i386; 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386; user; pkg)" "569d1dc7-6770-11de-936a-00144f47da9c" "-" -

129.150.32.62 - - [21/Jul/2009:13:00:42 -0700] "POST /dev/latest/filelist/0 HTTP/1.1" 200 266240 "-" "pkg/5bcd97b6fcb1 (darwin i386; 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386; user; pkg)" "569d1dc7-6770-11de-936a-00144f47da9c" "-" X

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to