Help - Search - Members - Calendar
Full Version: up2date error UnboundLocalError
The Planet Forums > System Administration > Other
wwwwizard
Hey there,

I run RHEL4 and Plesk 8.2. I ran the plesk updater at some point and it choked. Now, I cannot run up2date at all, and I don't understand what the following means, nor how to fix it. Please help!

[root@rhbig00 ]# up2date --showall
There was an error downloading: http://autoinstall.plesk.com/PSA_8.2.0/dis...919.15.i586.hdr
There was an error downloading: http://autoinstall.plesk.com/PSA_8.2.0/dis...919.15.i586.hdr
There was an error downloading: http://autoinstall.plesk.com/PSA_8.2.0/dis...919.15.i586.hdr
There was an error downloading: http://autoinstall.plesk.com/PSA_8.2.0/dis...919.15.i586.hdr
There was an error downloading: http://autoinstall.plesk.com/PSA_8.2.0/dis...919.15.i586.hdr
An error has occurred:
exceptions.UnboundLocalError
See /var/log/up2date for more information


[root@rhbig00 ]# tail /var/log/up2date
[Sun Dec 16 10:17:03 2007] up2date updating login info
[Sun Dec 16 10:17:03 2007] up2date logging into up2date server
[Sun Dec 16 10:17:03 2007] up2date successfully retrieved authentication token from up2date server
[Sun Dec 16 10:17:03 2007] up2date availablePackageList from network
[Sun Dec 16 10:17:04 2007] up2date File "/usr/sbin/up2date", line 1288, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 617, in main
printList(rhnPackageInfo.getAvailableAllArchPackageList(), cfg['showChannels'])
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 330, in getAvailableAllArchPackageList
package_list = availablePackageList(
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 169, in availablePackageList
progressCallback = progressCallback)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 236, in doCall
ret = apply(method, args, kwargs)
File "/usr/share/rhn/up2date_client/repoDirector.py", line 22, in listPackages
return self.handlers[channel['type']].listPackages(channel, msgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/rpmSource.py", line 229, in listPackages
msgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 272, in listPackages
hdr = rd.getHeader([name,ver,rel,epoch,arch, "0",channel['label']])
File "/usr/share/rhn/up2date_client/repoDirector.py", line 33, in getHeader
return self.handlers[channel['type']].getHeader(pkg, msgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/rpmSource.py", line 213, in getHeader
header = source.getHeader(pkg, progressCallback = progressCallback)
File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 112, in getHeader
return hdr

Thank you!
Jeff
James Jhurani
There is a file /etc/sysconfig/rhn/sources(i believe that is the right file) it contains a bunch of calls to http://autoinstall.plesk.com just remove them and it should resolve the problem.
wwwwizard
That worked, but what did those lines do? Do I need them? Will I still be able to update Plesk through the control panel? Have I just given up some functionality, or were they simply remnants of an update gone awry?
James Jhurani
I'm not sure what SWSoft was thinking when they put them on RHEL versions other than 5. Because they dont use yum(I don't even think it's installed by default)...

It shouldn't affect anything you do with the updater, since the updater uses the plesk autoinstaller.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.