Skip to main content

/usr/local/cpanel/scripts/rpmup fails during upcp

Comments

7 comments

  • cPanelMichael
    [2019-06-02 05:26:21 +1000] E [/usr/local/cpanel/scripts/rpmup] The "/usr/local/cpanel/scripts/rpmup" command (process 27120) reported error number 1 when it ended.

    Hello @Glendon Turner, The error message quoted above is what's preventing the cPanel update from succeeding. Can you execute this command manually to verify if there are any issues with the RPM update process on your system? /usr/local/cpanel/scripts/rpmup
    Thank you.
    0
  • Glendon Turner
    Hi, Thank you for the reply. I ran the command and have pasted the section where it fails below. I have tried running it with the '--skip-broken' option and it still fails at the same place. It seems that mosquitto is the culprit, it there a way to prevent it from trying to update this item? ---> Package yum-utils.noarch 0:1.1.30-42.el6_10 will be an update ---> Package zsh.x86_64 0:4.3.11-4.el6.centos.2 will be updated ---> Package zsh.x86_64 0:4.3.11-9.el6_10 will be an update --> Finished Dependency Resolution Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt) You could try using --skip-broken to work around the problem ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: cpanel-analytics-1.3.3-1.1.noarch has missing requires of cpanel-version >= ('0', '73.0.0', None) info [rpmup] Completed yum execution "--assumeyes --config /etc/yum.conf update": in 13.533 second(s). (XID 2c6rmr) The system failed to execute yum with the arguments "--assumeyes --config /etc/yum.conf update" because of an error: The "/usr/bin/yum --assumeyes --config /etc/yum.conf update" command (process 30537) reported error number 1 when it ended. : Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt) Requires: libwebsockets checkyum version 22.3 (excludes: bind-chroot perl ruby) [root@server ~]#
    0
  • Glendon Turner
    I have added mosquitto* to the exclude line in /etc/yum.conf and ran it again. It has now passed where the error occurred and is downloading updates. I will post what outcome I get when it finishes.
    0
  • cPanelMichael
    (XID 2c6rmr) The system failed to execute yum with the arguments "--assumeyes --config /etc/yum.conf update" because of an error: The "/usr/bin/yum --assumeyes --config /etc/yum.conf update" command (process 30537) reported error number 1 when it ended. : Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt) Requires: libwebsockets

    I have added mosquitto* to the exclude line in /etc/yum.conf and ran it again. It has now passed where the error occurred and is downloading updates. I will post what outcome I get when it finishes.

    Hello @Glendon Turner, I'm glad to see you were able to find the culprit. If you'd like to resume YUM updates for the mosquitto RPM in the future, it looks you'll need to install the libwebsockets package dependency from the CentOS EPEL repo (e.g. yum install libwebsockets). Keep in mind assistance with this third-party package or the YUM repo it comes from falls outside our scope of support. Thank you.
    0
  • Glendon Turner
    Thank you for your helpful advice. Today I have not received any error messages and we don't use libwebsockets for mqtt. I appreciate and understand that this falls outside your support scope but your advice helped me to locate where the problem was and it seems to be working now. Thank you
    0
  • cPanelMichael
    Hello @Glendon Turner, You're very welcome. I've marked this thread as solved. Thanks!
    0
  • internetbug256
    Hello Googleing for the same error message I found this thread. This is the daily email I am getting: The cPanel & WHM update process failed for the following reason: Maintenance ended; however, it did not exit cleanly (256). The following events were logged: "scripts/rpmup". Review the update logs to determine why the update failed. Update log preview: ... ... [2019-09-30 00:56:21 -0700] E [/usr/local/cpanel/scripts/rpmup] The "/usr/local/cpanel/scripts/rpmup" command (process 10913) reported error number 1 when it ended. This is what I get when running manually the command: [root@host gabriel]# /usr/local/cpanel/scripts/rpmup checkyum version 22.3 (excludes: bind-chroot kernel ruby) info [rpmup] Starting yum execution "--assumeyes --config /etc/yum.conf update --disablerepo=epel"". Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 208.43.129.162 * cpanel-addons-production-feed: 208.43.129.162 * cpanel-plugins: 208.43.129.162 * base: mirror.layeronline.com * extras: mirror.layeronline.com * remi-safe: repo1.sea.innoscale.net * updates: mirror.layeronline.com Resolving Dependencies --> Running transaction check ---> Package iputils.x86_64 0:20160308-8.el7 will be updated ---> Package iputils.x86_64 0:20160308-10.el7 will be an update ---> Package shadow-utils.x86_64 2:4.1.5.1-25.el7_6.1 will be updated ---> Package shadow-utils.x86_64 2:4.6-5.el7 will be an update --> Finished Dependency Resolution Total download size: 1.3 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. -------------------------------------------------------------------------------- Total 1.7 MB/s | 1.3 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 2:shadow-utils-4.6-5.el7.x86_64 1/4 Error unpacking rpm package 2:shadow-utils-4.6-5.el7.x86_64 Updating : iputils-20160308-10.el7.x86_64 2/4 Error unpacking rpm package iputils-20160308-10.el7.x86_64 Verifying : iputils-20160308-10.el7.x86_64 1/4 Verifying : 2:shadow-utils-4.6-5.el7.x86_64 2/4 iputils-20160308-8.el7.x86_64 was supposed to be removed but is not! Verifying : iputils-20160308-8.el7.x86_64 3/4 2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64 was supposed to be removed but is not! Verifying : 2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64 4/4 Complete! info [rpmup] Completed yum execution "--assumeyes --config /etc/yum.conf update --disablerepo=epel"": in 4.662 second(s). (XID exzpxt) The system failed to execute yum with the arguments "--assumeyes --config /etc/yum.conf update --disablerepo=epel"" because of an error: The "/usr/bin/yum --assumeyes --config /etc/yum.conf update --disablerepo=epel"" command (process 22973) reported error number 1 when it ended. : Error unpacking rpm package 2:shadow-utils-4.6-5.el7.x86_64 Error unpacking rpm package iputils-20160308-10.el7.x86_64 iputils-20160308-8.el7.x86_64 was supposed to be removed but is not! 2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64 was supposed to be removed but is not! checkyum version 22.3 (excludes: bind-chroot ruby) [root@host gabriel]# Any help or tip will be really appreciated. I have this issue in several cpanel installations. Thanks
    0

Please sign in to leave a comment.