[Yum] better error handling in yum?

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

 



yum should handle http errors better.

"[Errno 6] ERROR: Url Return no Content-Length  - something is wrong"

This is not a terribly useful error message.

It should say something like

"[Errno 6] ERROR: Server reports '503 Service Temporarily Unavailable'"

instead.

-Dan

connect(5, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("198.64.189.124")}}, 16) = 0
send(5, "GET /redhat/7.2/os/i386/headers/header.info HTTP/1.0\r\n", 54, 0) = 54
send(5, "Host: download.fedoralegacy.org\r\n", 33, 0) = 33
send(5, "User-agent: Yum/1.X\r\n", 21, 0) = 21
send(5, "\r\n", 2, 0)                   = 2
dup(5)                                  = 6
fcntl64(0x6, 0x3, 0xbffff218, 0x3)      = 2
fstat64(6, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40027000
_llseek(6, 0, 0xbffff090, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
read(6, "HTTP/1.1 503 Service Temporarily Unavailable\r\nDate: Thu, 29 Apr 2004 21:45:11 GMT\r\nServer: Apache/1.3.27 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.2.3 mod_throttle/3.1.2\r\nConnection: close\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<HTML><HEAD>\n<TITLE>503 Service Temporarily Unavailable</TITLE>\n</HEAD><BODY>\n<H1>Service Temporarily Unavailable</H1>\nThe server is temporarily unable to service your\nrequest due to maintenance downtime or capacity\nproblems. Please try again later.\n<HR>\n<ADDRESS>Apache/1.3.27 Server at <A HREF=\"mailto:jkeating@xxxxxxxxxxxxxxx\";>download.fedoralegacy.org</A> Port 80</ADDRESS>\n</BODY></HTML>\n", 4096) = 699
close(5)                                = 0
close(7)                                = 0
munmap(0x40028000, 4096)                = 0
write(2, "Error getting file http://download.fedoralegacy.org/redhat/7.2/os/i386/headers/header.info\n";, 91) = 91
write(2, "[Errno 6] ERROR: Url Return no Content-Length  - something is wrong\n", 68) = 68


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux