Why system throwing error 'Downloaded more than max size ?

Solution Verified - Updated -

Environment

  • Red Hat Network Satellite 5.4.1
  • Red Hat Network Proxy 5.4.1
  • Red Hat Enterprise Linux
  • Local repository

Issue

  • Package installation on a system from Local repository fails with below error:
[root@mybox ]# yum -y install hbase
:
Downloading Packages:
http://example.com/hadoop/HDP-1.3.0/hbase/hbase-0.94.6.1.3.0.0-107.el6.noarch.rpm: [Errno 14] Downloaded more than max size for http://example.com/hadoop/HDP-1.3.0/hbase/hbase-0.94.6.1.3.0.0-107.el6.noarch.rpm: 33657143 > 30592822
:
Error Downloading Packages:
  hbase-0.94.6.1.3.0.0-107.el6.noarch: failure: hbase/hbase-0.94.6.1.3.0.0-107.el6.noarch.rpm from HDP-1.3.0: [Errno 256] No more mirrors to try.
  • When trying to kickstart client system through RHN Proxy (Registered with RHN Satellite) it fails and throws error while downloading rpm package:
03:18:09,700 WARNING : Try 1/10 for http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm failed: [Errno 14] Downloaded more than max size for http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm: 46858 > 33352
03:18:09,951 WARNING : Failed to get http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm from mirror 1/1, or downloaded file is corrupt
03:18:09,954 WARNING : package download failure, retrying automatically
03:18:12,968 WARNING : Try 1/10 for http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm failed: [Errno 14] Downloaded more than max size for http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm: 52034 > 33352
03:18:13,219 WARNING : Failed to get http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm from mirror 1/1, or downloaded file is corrupt
03:18:13,221 WARNING : package download failure, retrying automatically
03:18:19,238 WARNING : Try 1/10 for http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm failed: [Errno 14] Downloaded more than max size for http://rhnproxy.example.com/ks/dist/ks-rhel-x86_64-server-6-6.3/Packages/certmonger-0.56-1.el6.x86_64.rpm: 46851 > 33352

Resolution

when trying to Install a package from a Local repository

  • Try to delete and again download the problematic package in the local repository.
  • Regenerate repodata for local repository:
 # createrepo --update /path/to/rpms
  • On the Client System clear the yum cache and again try to install the package:
 # yum clean all
 # yum -y install <Packagename>

when trying to kickstart through RHN Proxy

  • Clean cache from /var/spool/squid and /var/cache/rhn on RHN Proxy server.
# rhn-proxy stop
# rm -rfv /var/spool/squid/*
# rm -rfv /var/cache/rhn/* 
# rhn-proxy start

Root Cause

  • The Package was corrupted so the actual size of the package differ form the one available in repodata.
  • As the actual size of package and the one in repodata differs yum fail to download the package.
  • Temporary issue with RHN Proxy cache.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.