Bug 17534

Summary: pyton error in the installation script : "bad magic in header"
Product: [Retired] Red Hat Linux Reporter: Geert Jordaens <geert.jordaens>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-09 18:53:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Geert Jordaens 2000-09-15 06:00:08 UTC
When trying to install a RH6.2 via bootnet.img + updates 20000419. I get a
pyton error in the installation script : "bad magic in header"

my system : P133
SCSI controler : AHA 2940 UW
SCSI Disk : QUANTUM VIKKING II 4.5GB
Ethernet adapter : NE 2000 compatible


    def readHeaders(self):

        connected = 0
        while not connected:
            try:
                url = urllib.urlopen(self.baseUrl + "/RedHat/base/hdlist")
            except IOError, (errnum, msg):
#                print "IOError occurred, trying again"
                time.sleep(5)
            else:
                connected = 1
                
	raw = url.read(16)
	hl = []
	while (raw):
	    info = struct.unpack("iiii", raw)
	    magic1 = socket.ntohl(info[0]) & 0xffffffff
	    if (magic1 != 0x8eade801 or info[1]):
		raise TypeError, "bad magic in header"

	    il = socket.ntohl(info[2])
	    dl = socket.ntohl(info[3])
	    totalSize = il * 16 + dl;
	    hdrString = raw[8:] + url.read(totalSize)
	    hdr = rpm.headerLoad(hdrString)
	    hl.append(hdr)

	    raw = url.read(16)

	return HeaderList(hl)

Comment 1 Geert Jordaens 2000-09-20 08:28:14 UTC
This error occured as I was trying to install via HTTP. I had to instal via 
HTTP because it doesn't work via FTP. The mirrorsite I've used was :
mirrors.pandora.be/mirrors/ftp.redhat.com. 
It is possible that the mirrors site needs a user name and password and 
responds with on of the folowing codes : HTTP response codes: 301, 302 or 401. 


Comment 2 Michael Fulbright 2000-10-09 18:53:41 UTC
This seems to be related to the mirror site you were attempting to use - we have
not had problems with either FTP or HTTP base installs in our testing.