Skip to main content

[UPS-421] MySQL 5.7.36 -> 5.7.37 upgrade failed due to GPG keys, causing upcp/rpmup failure warning email

Comments

21 comments

  • Joe A
    Hi, I also received similar errors today Downloading packages: warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-libs-compat-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY Retrieving key from
    0
  • hatchet_au
    Seeing the same here on DNSONLY servers. Not seeing the issue on CloudLinux enabled servers at this stage when running /usr/local/cpanel/scripts/rpmup
    0
  • Jeic
    Hi There, Same issue here. Around 6 servers affected.
    0
  • jimhermann
    Failing package is: mysql-community-libs-compat-5.7.37-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql I'd imagine this will be a pretty widespread issue so any comment appreciated.

    I had the same problem with two DNS-ONLY servers. I edited the /etd/yum.repos.d/Mysql57.repo file and changed all the "gpgcheck=1" lines to "gpgcheck=0" Then I executed yum update Then I edited the /etd/yum.repos.d/Mysql57.repo file and changed all the "gpgcheck=0" lines back to "gpgcheck=1" Finally, I updated the cPanel software. Jim
    0
  • sasha
    I had the same problem with two DNS-ONLY servers. I edited the /etd/yum.repos.d/Mysql57.repo file and changed all the "gpgcheck=1" lines to "gpgcheck=0" Then I executed yum update Then I edited the /etd/yum.repos.d/Mysql57.repo file and changed all the "gpgcheck=0" lines back to "gpgcheck=1" Finally, I updated the cPanel software. Jim

    I would not do that unless you personally know that is valid package and not a compromised drop in. This may be just a simple omission but signing keys are there for a reason.
    0
  • MarcoP
    Same issue on CloudLinux v7.9.0.
    0
  • MarcoP
    I've also tried [CODE=bash]cp /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql{,.bak} wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql https://repo.mysql.com/RPM-GPG-KEY-mysql rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql /usr/local/cpanel/scripts/rpmup
    But it didn't solve the issue. Moreover after noticing the huge filesize different between the original and the just downloaded GPG key I did moved the original key back. [CODE=bash]mv /etc/pki/rpm-gpg/RPM-GPG-KEY-{mysql.bak,mysql} rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
    0
  • hatchet_au
    I'd hope this will be something that cPanel push out as part of the update cycle rather than requiring every customer to do.
    0
  • ffeingol
    Not sure if it was updated, but the support article says there is an auto-fixer, so it "should" correct itself tonight or tomorrow night.
    0
  • volex
    Not sure if it was updated, but the support article says there is an auto-fixer, so it "should" correct itself tonight or tomorrow night.

    Yep that's an update as it didn't say that earlier today, I have just tested the manual method running /scripts/autorepair mysql_gpg_key then an rpmup on a dev system and it's worked without issue so assuming it does fire correctly it should resolve the issue. Actually further to that I've ran a upcp on an affected system and that has correctly completed without any manual intervention required so it appears it should auto-resolve once nightly upcp runs so should be solved.
    0
  • cPanelAnthony
    Hello! The GPG keys for the official MySQL repository have expired preventing installation or update of MySQL packages. Andrew provided the correct article with the autofixer script. We are keeping track in UPS-421 and I will update this thread once resolved.
    0
  • HostLABTR
    Hello @cPanelAnthony, every time the autorepair command (UPS-423) is run, "-2022" string is added to the repo files. You must have forgotten to write a control for it.
    0
  • volex
    Further to previous update unfortunately this doesn't appear to have resolved the issue via automatic nightly upcp's, not sure if it's due to timeouts being hit but on servers notably with more packages to update the automatic upcp has continued to fail, however manually running an rpmup has resolved for failing servers.
    0
  • Joe A
    Hi, automatic upcp still shows failure as of 6 hours ago. Fortunately manually running /usr/local/cpanel/scripts/upcp resolved this issue.
    0
  • mikeviv
    Hello I am having this same issue, can someone please point me in the right direction and tell me where to find /scripts/autorepair mysql_gpg_key to slove this problem
    0
  • ThGe
    This issue is solved for me, the update worked last night.
    0
  • cPanelAnthony
    Hello I am having this same issue, can someone please point me in the right direction and tell me where to find /scripts/autorepair mysql_gpg_key to slove this problem

    Hello! Can you check out
    0
  • saffa
    So only solved one of my problems. I am installing WHM from Marketplace and did it twice now and still the same error. Update from within WHM: [2022-02-03 16:48:41 +0000] E The install encountered a fatal error: (XID fvg83b) The system failed to determine the "mysqld" version. => Log closed Thu Feb 3 16:48:41 2022 [2022-02-03 16:48:41 +0000] E Running `/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.4218.113619.1643905781.log` failed, exited with code 2 (signal = 0) => Log closed Thu Feb 3 16:48:41 2022
    0
  • cPRex Jurassic Moderator
    Can you let me know which vendor that installation was attempted on?
    0

Please sign in to leave a comment.