An Error Occurred While Attempting To Check Whether Running Executables Are Up-to-Date
In Security Advisor, I'm getting the message:
An error occurred while attempting to check whether running executables are up-to-date: The "/usr/bin/needs-restarting" command (process 71245) reported error number 1 when it ended.
If I manually run /usr/bin/needs-restarting, I get the following:
My list of mirrors with "ls -al /etc/yum.repos.d" is:
I don't think it's related, but Security Advisor is also telling me: Kernel patched with KernelCare, but awaiting further updates. running kernel: 2.6.32-696.3.2.el6, most recent kernel: 2.6.32-696.6.3.el6.x86_64 The kernel will likely be patched to the current version within the next few days. If this delay is unacceptable, update the system"s software by running "yum update" from the command line and reboot the system.
How do I resolve the issue with /usr/bin/needs-restarting?
If I manually run /usr/bin/needs-restarting, I get the following:
Traceback (most recent call last):
File "/usr/bin/needs-restarting", line 173, in
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:
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: Kernel patched with KernelCare, but awaiting further updates. running kernel: 2.6.32-696.3.2.el6, most recent kernel: 2.6.32-696.6.3.el6.x86_64 The kernel will likely be patched to the current version within the next few days. If this delay is unacceptable, update the system"s software by running "yum update" from the command line and reboot the system.
How do I resolve the issue with /usr/bin/needs-restarting?
-
Hello, Could you run the "yum clean all" command and let us know if the issue persists? Thank you. 0 -
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: Loaded plugins: changelog, fastestmirror, priorities, security, tsflags, : universal-hooks Cleaning repos: EA4 cpanel-addons-production-feed kernelcare stable-arch : stable-generic stable-noarch system-base system-extras : system-updates-released Cleaning up Everything Cleaning up list of fastest mirrors
After that, Security Advisor had the message: Detected processes that are running outdated binary executables.Reboot the system in the "Graceful Server Reboot" area. Alternatively, SSH into this server and run "/usr/bin/needs-restarting", then manually restart each of the listed processes.
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!0 -
I'm happy to see the issue is now solved. Thank you for updating us with the outcome. 0 -
I am also happy after 4 years. It worked for me too :) 0 -
i tried to run the /usr/bin/needs-restarting first then reboot server and follow-up with yum clean all. seem not working i guess i have to manually restart each of the listed processes. but can i know what is the processes i need to manually restart? 0 -
i tried to run the /usr/bin/needs-restarting first then reboot server and follow-up with yum clean all. seem not working i guess i have to manually restart each of the listed processes. but can i know what is the processes i need to manually restart?
Can you provide the output from the "needs-restarting" script?0 -
[root@cp186 ~]# /usr/bin/needs-restarting This system is receiving updates from CloudLinux Network server. [root@cp186 ~]# yum clean all This system is receiving updates from CloudLinux Network server. 229 files removed just like that. 0 -
Do you have the ability to reach out to CloudLinux support? Failed to check whether running executables are up-to-date: The system received unexpected output from "/usr/bin/needs-restarting": This system is receiving updates from CloudLinux Network server. " CloudLinux (zendesk.com)
0 -
I'm having the same problem. The steps of: #/usr/bin/needs-restarting #yum clean all #reboot didn't worked for me. cPanel & WHM update failure in upcp script: E [/usr/local/cpanel/scripts/update-packages] The "/usr/local/cpanel/scripts/update-packages" command (process 13173) reported error number 1 when it ended. Failed to check whether running executables are up-to-date: The system received unexpected output from "/usr/bin/needs-restarting": This system is receiving updates from CloudLinux Network server. We need focus by cpanel team to fix this problem. 0 -
Definitively, the error occurs because the cPanel scripts don't understand the line, "This system is receiving updates from CloudLinux Network server." All that needs to happen is for cPanel ignore the first line after issuing a yum/dnf request. 0
Please sign in to leave a comment.
Comments
11 comments