Skip to main content

PHP Error

Comments

7 comments

  • cPanelLauren
    What is rh-php72? This isn't a standard cPanel PHP Package
    0
  • EdW
    I got this error message when I updated the server, aslo this a new server with CSf firewall and cpanel. I have been running websites and severs for over a decade, and have never seen this, this is one of two servers I am setting up for a nonprofit, that Cpanel was kind enough to support us, we thank you for that also. Ed [2020-02-21 12:06:27 -0500] 29% complete [2020-02-21 12:06:27 -0500] - Finished in 0.862 seconds [2020-02-21 12:06:27 -0500] Processing: Running rpmup (yum -y update) [2020-02-21 12:06:27 -0500] - Processing command `/usr/local/cpanel/scripts/rpmup` [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] "yum" reported error code "1" when it ended: w/ yum [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] Loaded plugins: fastestmirror, langpacks, universal-hooks [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] Loading mirror speeds from cached hostfile [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] One of the configured repositories failed (Unknown), [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] and yum doesn't have enough cached data to continue. At this point the only [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] safe thing yum can do is fail. There are a few ways to work "fix" this: [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] 1. Contact the upstream for the repository and get them to fix the problem. [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] 2. Reconfigure the baseurl/etc. for the repository, to point to a working [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] upstream. This is most often useful if you are using a newer [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] distribution release than is supported by the repository (and the [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] packages for the previous distribution release still work). [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] 3. Run the command with the repository temporarily disabled [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] yum --disablerepo= ... [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] 4. Disable the repository permanently, so yum won't use it by default. Yum [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] will then just ignore the repository until you permanently enable it [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] again or use --enablerepo for temporary usage: [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] yum-config-manager --disable [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] or [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] subscription-manager repos --disable= [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] 5. Configure the failing repository to be skipped, if it is unavailable. [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] Note that yum will try to contact the repo. when it runs most commands, [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] so will have to try and fail each time (and thus. yum will be be much [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] slower). If it is a very temporary problem though, this is often a nice [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] compromise: [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] yum-config-manager --save --setopt=.skip_if_unavailable=true [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] Cannot find a valid baseurl for repo: EA4/7/x86_64 [2020-02-21 12:06:28 -0500] E [/usr/local/cpanel/scripts/rpmup] Could not retrieve mirrorlist Log closed Fri Feb 21 12:06:28 2020
    0
  • HostNoc
    Have you upgraded PHP through Red Hat Software Collections (SCL) repository
    0
  • keat63
    rh-php72 - A release of PHP 7.2 with PEAR 1.10, enhanced language features and performance improvement.
    0
  • cPanelLauren
    rh-php72 - A release of PHP 7.2 with PEAR 1.10, enhanced language features and performance improvement.
    0
  • EdW
    Thinking I may just wipe the server, unless somebody has a fix for this. Might be faster to wipe. Thanks to everyone who has replied and anyone who may reply.
    0
  • cPanelLauren
    Well, the issue is the custom packages, if you remove those and install ea-php72 instead this should resolve the issue.
    0

Please sign in to leave a comment.