Anaconda kickstart installation error " [Errno 14] Downloaded more than max size "

Latest response

Problem Description:
Anaconda fails to download the first rpm from the %package section of kickstart with following error.

14:04:57,836 WARNING : Try 1/10 for http://svnserver.eu.novartis.net/svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm failed: [Errno 14] Downloaded more than max size for http://svnserver.eu.novartis.net/svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm: 29083 > 14776
14:04:58,090 WARNING : Failed to get http://svnserver.eu.novartis.net/svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm from mirror 1/1, or downloaded file is corrupt
14:04:58,108 WARNING : package download failure, retrying automatically

The corresponding http access_log is confusing while the first try had success status 200 and the Retry has status "500"

status = 200
"GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 200 155252 "-" "Red Hat Enterprise Linux (anaconda)/6.4"

status=500
"GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 500 81920 "-" "Red Hat Enterprise Linux (anaconda)/6.4"

download with curl:
[root@localhost server]# curl -o nss-pam-ldapd-0.7.5-14.el6_2.1.x86_64.rpm --range 1384-15404 http://svnserver.eu.novartis.net/svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 151k 100 151k 0 0 18028 0 0:00:08 0:00:08 --:--:-- 119k
[root@localhost server]# ls -lrt
-rw-r--r--. 1 root root 155252 Sep 18 09:27 nss-pam-ldapd-0.7.5-14.el6_2.1.x86_64.rpm

Attached the anaconda log file. Please help.

Attachments

Responses

Hi Amarnath,

interesting problem. I think we'd need to see more data to get somewhere though.

Is there a possibility that you have some kind of caching proxy in between your host and the httpd repo?

https://access.redhat.com/solutions/316813 discusses this in terms of RHN Proxy, but this is a little bit of a shot in the dark at the moment.

can you get the relevant section of the log from the httpd server and see if we can build up a picture of what both sides of the equation were doing at the time?

one interesting test would be to drop the --range argument to curl, get the whole RPM and then check its cksum.

Checksums are found on the individual rpm package page: nss-pam-ldapd-0.7.5-14.el6_2.1.x86_64.rpm

let us know,
Mark

Hi Mark,

Thank you for your swift response.

I did check the PROXY solution and since there were no rpms downloaded /var/cache directory. One different I missed out to mention is I am using an svn server's mod_dav_svn.so in httpd to download the rpms.

I tried the curl without --range and checked the sha256sum on the downloaded rpm the checksum matched with Redhat checksum.

[root@phinhy-l73450-086117139189 server]# curl http://svnserver.eu.novartis.net/svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm -o nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 151k 100 151k 0 0 68854 0 0:00:02 0:00:02 --:--:-- 119k

[root@phinhy-l73450-086117139189 server]# ls -lt nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm
-rw-r--r--. 1 root root 155252 Sep 18 11:11 nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm

[root@phinhy-l73450-086117139189 server]# sha256sum nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm
155916604e03deef61fa7e1c46ff9c72caf4b252a7b9ee6338ec834fe499c67b nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm

Redhat:
https://access.redhat.com/downloads/content/rhel---6/x86_64/168/nss-pam-ldapd/0.7.5-18.2.el6_4/x86_64/fd431d51/package

Curl with --range to retrived the same result (Found this from https://bugzilla.redhat.com/show_bug.cgi?id=643656)
[root@phinhy-l73450-086117139189 BaseOS]# curl http://svnserver.eu.novartis.net/svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm -o nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm --range 1384-15404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 151k 100 151k 0 0 78206 0 0:00:01 0:00:01 --:--:-- 278k
[root@phinhy-l73450-086117139189 BaseOS]# sha256sum nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm
155916604e03deef61fa7e1c46ff9c72caf4b252a7b9ee6338ec834fe499c67b nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm
[root@phinhy-l73450-086117139189 BaseOS]#

Httpd server access log:

147.167.69.203 - - [18/Sep/2014:12:05:16 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 200 155252 "-" "Red Hat Enterprise Linux (anaconda)/6.4"
147.167.69.203 - - [18/Sep/2014:12:05:20 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 200 155252 "-" "Red Hat Enterprise Linux (anaconda)/6.4"
147.167.69.203 - - [18/Sep/2014:12:05:26 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 200 155252 "-" "Red Hat Enterprise Linux (anaconda)/6.4"
147.167.69.203 - - [18/Sep/2014:12:20:17 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 500 65536 "-" "Red Hat Enterprise Linux (anaconda)/6.4"
147.167.69.203 - - [18/Sep/2014:12:20:20 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 500 65536 "-" "Red Hat Enterprise Linux (anaconda)/6.4"
147.167.69.203 - - [18/Sep/2014:12:23:47 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 500 81920 "-" "Red Hat Enterprise Linux (anaconda)/6.4"
147.167.69.203 - - [18/Sep/2014:12:23:55 +0200] "GET /svn/BaseOS/trunk/repo/redhat/repos/yum/Errata/nss-pam-ldapd-0.7.5-18.2.el6_4.x86_64.rpm HTTP/1.1" 500 81920 "-" "Red Hat Enterprise Linux (anaconda)/6.4"

error log:

[Thu Sep 18 12:20:17 2014] [error] [client 147.167.69.203] Unable to deliver content. [500, #0]
[Thu Sep 18 12:20:17 2014] [error] [client 147.167.69.203] (104)Connection reset by peer: Could not write data to filter. [500, #0]
[Thu Sep 18 12:20:20 2014] [error] [client 147.167.69.203] Unable to deliver content. [500, #0]
[Thu Sep 18 12:20:20 2014] [error] [client 147.167.69.203] (104)Connection reset by peer: Could not write data to filter. [500, #0]

Hi Amarnath,

I have found this upstream which appears to match the problem: http://svn.haxx.se/dev/archive-2009-08/0274.shtml.

I have been unable to find any records in kbase, Bugzilla, or customer tickets that match either the upstream report or the errors you describe (at least not outside of rhn-proxy).

Assuming the httpd server is running on RHEL, are you able to open a ticket please? I think this needs to be investigated further through the support channels.

Sorry we can't fix it here,
Mark

Hi Mark,

Thanks for the pointers. I noticed apache DOS's such as file, disk and mem cache are enabled, but not deflate. On retry I see httpd memory beefing up and suddenly dropping and the corresponding error log indicates that anaconda suddenly terminating the remote connection.

Anyway, due to time constraint I have resolved to cdrom based installation and later updating packages during %post install from the SVN. One last question though on checksum, is the checksum(sha256) is validated against the primary.sqlite3.bz2 or with rpm headers?

Many thanks for your help.

Regards,
Amarnath.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.