• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

yum update fails

Jon_Larson

New Pleskian
Plesk recently attempted to do an auto-update and it failed. I have not been able to get it to update since. When I connect using SSH, and try to do a manual yum update I get the following error:

Code:
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                            |  13 kB     00:00
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 294, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 146, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 438, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 232, in doCommand
    return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
  File "/usr/share/yum-cli/cli.py", line 725, in updatePkgs
    self.update()
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3782, in update
    updates = self.up.getUpdatesTuples()
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 925, in <lambda>
    up = property(fget=lambda self: self._getUpdates(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 743, in _getUpdates
    self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 906, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 686, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 290, in populateSack
    self.doSetup()
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 105, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 197, in postreposetup_hook
    if downgrade_ftp and _len_non_ftp(repo.urls) == 1:
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 701, in <lambda>
    urls = property(fget=lambda self: self._geturls(),
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 698, in _geturls
    self._baseurlSetup()
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 644, in _baseurlSetup
    mirrorurls.extend(list(self.metalink_data.urls()))
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 741, in <lambda>
    metalink_data = property(fget=lambda self: self._getMetalink(),
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 728, in _getMetalink
    self._metalink = metalink.MetaLinkRepoMD(result)
  File "/usr/lib/python2.6/site-packages/yum/metalink.py", line 186, in __init__
    root = xmlparse(filename)
  File "/usr/lib/python2.6/site-packages/yum/misc.py", line 1154, in cElementTree_xmlparse
    _cElementTree_import()
  File "/usr/lib/python2.6/site-packages/yum/misc.py", line 1142, in _cElementTree_import
    from xml.etree import cElementTree
  File "/usr/lib64/python2.6/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
  File "<string>", line 19, in <module>
AttributeError: 'module' object has no attribute 'ElementTree'

Any help resolving this would be fantastic.. thanks.
 
Hi Jon_Larson,

to list possible yum problems, please use the command:

rpm -Va python\* yum\*

Afterwards, please correct the listed depending rpm - issues, by re-installing them with the command:

rpm -Uvh --force --nodeps /var/cache/yum/*/packages/YOUR_PACKAGE_NAME.rpm

... and check again for issues afterwards with "rpm -Va python\* yum\*"



It could be a good idea to use in addition:

yum clean all
rpm --rebuilddb
 
Hi Jon_Larson,

to list possible yum problems, please use the command:

rpm -Va python\* yum\*

Afterwards, please correct the listed depending rpm - issues, by re-installing them with the command:

rpm -Uvh --force --nodeps /var/cache/yum/*/packages/YOUR_PACKAGE_NAME.rpm

... and check again for issues afterwards with "rpm -Va python\* yum\*"



It could be a good idea to use in addition:

yum clean all
rpm --rebuilddb

I resolved all of the dependencies it was missing, but am still getting the same error. When I run rpm -Va python\* yum \* I get:

Code:
.M.....T.    /usr/lib64/python2.6/ConfigParser.pyc
S.5....T.    /usr/lib64/python2.6/__future__.pyc
.......T.    /usr/lib64/python2.6/atexit.pyc
.......T.    /usr/lib64/python2.6/base64.pyc
.......T.    /usr/lib64/python2.6/codecs.pyc
.......T.    /usr/lib64/python2.6/collections.pyc
.......T.    /usr/lib64/python2.6/email/charset.pyc
.......T.    /usr/lib64/python2.6/email/message.pyc
.......T.    /usr/lib64/python2.6/fnmatch.pyc
.......T.    /usr/lib64/python2.6/functools.pyc
.......T.    /usr/lib64/python2.6/hashlib.pyc
.......T.    /usr/lib64/python2.6/keyword.pyc
.......T.    /usr/lib64/python2.6/posixpath.pyc
.......T.    /usr/lib64/python2.6/quopri.pyc
.......T.    /usr/lib64/python2.6/re.pyc
S.5....T.    /usr/lib64/python2.6/site.pyc
.......T.    /usr/lib64/python2.6/sre_constants.pyc
.......T.    /usr/lib64/python2.6/ssl.pyc
.......T.    /usr/lib64/python2.6/stringprep.pyc
.......T.    /usr/lib64/python2.6/textwrap.pyc
.......T.    /usr/lib64/python2.6/threading.pyc
.......T.    /usr/lib64/python2.6/traceback.pyc
.......T.    /usr/lib64/python2.6/uu.pyc
S.5....T.    /usr/lib64/python2.6/xml/etree/ElementTree.py
S.5....T.    /usr/lib64/python2.6/xml/etree/ElementTree.pyc

Are these files missing or is there something I am supposed to do with them? I'm not sure what it is telling me.
 
Hi Jon_Larson,

you could try to re-install yum and python ... and afterwards I would suggest

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base

to finish your previous, unfinished Plesk update.
 
Back
Top