SOLVED upcp - /scripts/rpmup command reported error number 29 when it ended.

jimlongo

Well-Known Member
Mar 20, 2008
237
16
68
on 2 separate servers (both running CentOs7) I got these errors in upcp reported. Started last night on 70.0.47 and continuing today on 70.0.48


The “/usr/local/cpanel/scripts/rpmup” command (process 11867) reported error number 29 when it ended.

Code:
[2018-06-04 17:31:46 -0400]      [/usr/local/cpanel/scripts/find_and_fix_rpm_issues]   Preparing...                          ########################################
[2018-06-04 17:31:46 -0400]      [/usr/local/cpanel/scripts/find_and_fix_rpm_issues]   Updating / installing...
[2018-06-04 17:31:46 -0400]      [/usr/local/cpanel/scripts/find_and_fix_rpm_issues]   rpm_is_working-1.0-0                  ########################################
[2018-06-04 17:31:46 -0400]   26% complete
[2018-06-04 17:31:46 -0400]    - Finished in 2.330 seconds
[2018-06-04 17:31:46 -0400]   Processing: Running rpmup (yum -y update)
[2018-06-04 17:31:46 -0400]    - Processing command `/usr/local/cpanel/scripts/rpmup`
[2018-06-04 17:32:18 -0400] E    [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 11867) reported error number 29 when it ended.
[2018-06-04 17:32:18 -0400]   The Administrator will be notified to review this output when this script completes
[2018-06-04 17:32:18 -0400]    - Finished command `/usr/local/cpanel/scripts/rpmup` in 31.878 seconds
[2018-06-04 17:32:18 -0400]   29% complete
 

jimlongo

Well-Known Member
Mar 20, 2008
237
16
68
SERVER1
Code:
[email protected] [~]# /usr/local/cpanel/scripts/rpmup
info [rpmup] Resolving potential yum cache issue …

“yum” reported error code “1” when it ended:  w/ yum
Often errors like this can be resolved by running `yum makecache`
[email protected] [~]# yum makecache
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://vzdownload.swsoft.com/download/mirrors/centos-7 error was
12: Timeout on http://vzdownload.swsoft.com/download/mirrors/centos-7: (28, 'Connection timed out after 30001 milliseconds')


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: vz-base







SERVER2
Code:
[[email protected] ~]# /usr/local/cpanel/scripts/rpmup
  Checking that the RPM DB is OK...
  glibc-2.17-222.el7.x86_64
  OK: RPM DB is responding to queries
  Testing if rpm_is_working RPM is installed
  package rpm_is_working is not installed
  Testing if it's possible to install a simple RPM
  Preparing...                          ########################################
  Updating / installing...
  rpm_is_working-1.0-0                  ########################################
checkyum version 22.3
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 66.23.237.210
 * cpanel-addons-production-feed: 66.23.237.210
 * base: ewr.edge.kernel.org
 * extras: ewr.edge.kernel.org
 * updates: ewr.edge.kernel.org
No packages marked for update
checkyum version 22.3
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Could not retrieve mirrorlist http://vzdownload.swsoft.com/download/mirrors/centos-7 error was 12: Timeout on http://vzdownload.swsoft.com/download/mirrors/centos-7: (28, 'Connection timed out after 30001 milliseconds')
Hello @jimlongo,

For the first server, this error suggests your system is configured with a custom /etc/yum.repos.d/vz.repo YUM repository, and connections to it are timing out. You can add an "enabled=0" line to both the [vz-base] and [vz-updates] sections of this REPO to disable it. For example:

Code:
[vz-base]
name=vz-base
mirrorlist=http://vzdownload.swsoft.com/download/mirrors/centos-7
enabled=0
gpgcheck=0

[vz-updates]
name=vz-updates
mirrorlist=http://vzdownload.swsoft.com/download/mirrors/updates-released-ce7
enabled=0
gpgcheck=0
Then, run the yum makecache command again. This should allow updates to proceed. Once you've confirmed updates are working, you may want to check with your VPS hosting provider to verify why the custom YUM repo configured on your system is not working properly.

For the second server, it looks like the RPM update completed well. Are cPanel updates still failing on this server, and if so, is the error message still the same?

Thank you.
 

jimlongo

Well-Known Member
Mar 20, 2008
237
16
68
My provider found that the IP of the mirror serving the update files was blocked by the firewall.