The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED An Error Occurred While Attempting To Check Whether Running Executables Are Up-to-Date

Discussion in 'General Discussion' started by linux4me2, Jul 18, 2017.

  1. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    149
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    In Security Advisor, I'm getting the message:
    If I manually run /usr/bin/needs-restarting, I get the following:
    Code:
    Traceback (most recent call last):
      File "/usr/bin/needs-restarting", line 173, in <module>
        sys.exit(main(sys.argv))
      File "/usr/bin/needs-restarting", line 154, in main
        for oldpkg in my.pkgSack.searchFiles(just_fn): # ghostfiles are always bogons
      File "/usr/lib/python2.6/site-packages/yum/packageSack.py", line 472, in searchFiles
        return self._computeAggregateListResult("searchFiles", name)
      File "/usr/lib/python2.6/site-packages/yum/packageSack.py", line 599, in _computeAggregateListResult
        sackResult = apply(method, args)
      File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 46, in newFunc
        return func(*args, **kwargs)
      File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 957, in searchFiles
        self.populate(repo, mdtype='filelists')
      File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 184, in populate
        xml = repo_get_function()
      File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1679, in getFileListsXML
        return self.retrieveMD('filelists')
      File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1571, in retrieveMD
        return self._retrieveMD(mdtype)
      File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1654, in _retrieveMD
        size=thisdata.size)
      File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 842, in _getFile
        raise Errors.NoMoreMirrorsRepoError, errstr
    yum.Errors.NoMoreMirrorsRepoError: failure: repodata/filelists.xml.gz from stable-generic: [Errno 256] No more mirrors to try.
    
    My list of mirrors with "ls -al /etc/yum.repos.d" is:
    Code:
    total 48
    drwxr-xr-x.  2 root root  4096 Jul 18 06:29 ./
    drwxr-xr-x  99 root root 16384 Jul 18 13:24 ../
    -rw-r--r--   1 root root   244 Jul 18 06:29 cPAddons.repo
    -rw-r--r--   1 root root   243 Apr 20 20:55 EA4-experimental.repo
    -rw-r--r--   1 root root   204 Apr 20 20:54 EA4.repo
    -rw-r--r--   1 root root   119 Jul 13 05:30 kernelcare.repo
    -rw-r--r--   1 root root   119 Mar 28 01:29 kernelcare.repo.rpmnew
    -rw-r--r--   1 root root   469 Mar 16  2016 yum.sourcedns.repo
    -rw-r--r--   1 root root   606 Mar 16  2016 yum.system.repo
    
    I don't think it's related, but Security Advisor is also telling me:
    How do I resolve the issue with /usr/bin/needs-restarting?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you run the "yum clean all" command and let us know if the issue persists?

    Thank you.
     
    linux4me2 likes this.
  3. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    149
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I ran "yum clean all", and it got rid of the error message in Security Advisor regarding /usr/bin/needs-restarting, giving the following output:
    After that, Security Advisor had the message:
    I did the graceful server reboot, and it resolved the problem with the outdated binary executables and now the kernel is also up-to-date.

    You can mark this one solved. Thank you!
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see the issue is now solved. Thank you for updating us with the outcome.
     
Loading...

Share This Page