[rhn-users] Adding local dir causes errors?

Todd Warner taw at redhat.com
Tue Aug 24 14:03:32 UTC 2004


On Mon, 23 Aug 2004, Shawn Protsman wrote:

> Hi all,
> 
> 1) I added a local directory to the rhn sources file
> (/etc/sysconfig/rhn/sources):
> 
> ### an local directory full of packages
> ### format
> dir localrpms /var/spool/RPMS/
> 
> 2) Restarted rhnsd:
> 
> [root at server1 qazmlp]# /etc/init.d/rhnsd restart
> Stopping Red Hat Network Daemon:                           [  OK  ]
> Starting Red Hat Network Daemon:                           [  OK  ]
> 
> 3) Tried to run the update:
> 
> [root at server1 qazmlp]# up2date -u
> Traceback (most recent call last):
>   File "/usr/sbin/up2date", line 1174, in ?
>     sys.exit(main() or 0)
>   File "/usr/sbin/up2date", line 772, in main
>     fullUpdate, dryRun=options.dry_run))
>   File "/usr/sbin/up2date", line 1066, in batchRun
>     batch.run()
>   File "up2dateBatch.py", line 62, in run
>   File "up2dateBatch.py", line 97, in __findPackagesToUpdate
>   File "packageList.py", line 157, in addGlobs
>   File "rhnPackageInfo.py", line 232, in getAvailablePackageList
>   File "rhnPackageInfo.py", line 166, in availablePackageList
>   File "rpcServer.py", line 304, in doCall
>   File "repoDirector.py", line 20, in listPackages
>   File "rpmSource.py", line 226, in listPackages
>   File "/usr/share/rhn/up2date_client/repoBackends/dirRepo.py", line
> 132, in listPackages
>     hdr = rpmUtils.readHeaderBlob(hdrBuf.unload())
> TypeError: readHeaderBlob() takes exactly 2 arguments (1 given)
> 
> If I comment out the added line everything works okay.  I have done this
> on another RH 3 ES box and it worked fine.  Any ideas what may be going
> wrong here?
> 
> Regards,
> Shawn

Version of up2date?

-- 
____________
 /odd Warner                                    <taw@{redhat,pobox}.com>
                Head Geek, QA/Sust.Eng. - Red Had Network
---------------------gpg info in the message headers--------------------
"When the going gets tough, you're halfway through a cliche" -Greg Dean(?)





More information about the rhn-users mailing list