Skip to main content

Getting regular update failure in upcp script emails

Comments

4 comments

  • andrew.n
    Can you paste here the full error which you get when you run the script?
    0
  • cseufert
    I have narrowed it down to running # needs-restarting
    which randomly fails reading a path like /proc/xxxx/cmdline
    So I guess it could be a bug in DNF, but unsure who to go about solving it, as its intermittant, and running needs-restarting manually can work fine somtimes, and fail others.
    0
  • Rachel S
    "Try to run the following command and verify: $ sudo cat /etc/cpupdate.conf $ sudo cat /usr/local/cpanel/version $ sudo cat /var/cpanel/updatelogs/update.$$$.log >>In above command you have to replace the ""update.$$$.log"" with the most recent update log, indicating that the update failed. Also, try to run the following command and verify: $ sudo /usr/local/cpanel/scripts/find_outdated_services Now, try to rebuild the RPM database to check if it works: ""WHM Home " Software " Rebuild RPM Database"" Lastly, you can run the following command manually to check if it still continues to fail, and verify the message for the failure. $ sudo /usr/local/cpanel/scripts/post_sync_cleanup If this does not work, you need to force another cPanel update with the following command ""/scripts/upcp --force"" Still, if that doesn't work, then the last option Run the following command: $ sudo yum clean all $ sudo yum update Just for information: $ sudo yum clean all :- The command ""yum clean"" clears the cache of repositories that have been enabled in /etc/yum. repos. In the commands below, ""all files"" refers to ""all files in presently enabled repositories."" Use the "enablerepo='*' option if you wish to clean any (temporarily) disabled repositories as well. $ sudo yum update ""yum update"" brings all currently installed packages up to date with the latest versions available in the repository."
    0
  • cPRex Jurassic Moderator
    I would second the "yum update" option since these errors seem to be related to dnf. I would run this and see if that helps the situation: dnf clean all && dnf makecache yum update
    0

Please sign in to leave a comment.