Skip to main content

CPANEL-34745 - MariaDB 10.3.26-1 Breaks PHP < 7.2

Comments

76 comments

  • User Avatar
    filoucp
    In my case ( PDO with PHP7.2 and the Malformed communication packet error ) , It seems the problem only affects the PDO::query function. So rewriting the affected queries with PDO::prepare / PDOStatement::execute do work correctly in my scripts. I know it's not really a good workaround for most, but still better than downgrade or upgrade PHP version in my case.
    0
  • User Avatar
    Steini Petur
    This is a temporary fix to upgrade to 10.3.27, until MariaDB pushes 10.3.27 into the 10.3 repo. Use at your own risk. Open file /etc/yum.repos.d/MariaDB103.repo with an editor and change: baseurl = http://yum.mariadb.org/10.3/centos7-amd64
    to baseurl = http://yum.mariadb.org/10.3.27/centos7-amd64
    in order to force yum to update from the v10.3.27 path. Then run yum upgrade to upgrade to 10.3.27 This version fixes both the issue with PHP < 7.2 scripts, as well as the vulnerability reported by Rack911. In some servers I still had to run /scripts/autorepair fix_mariadb_show_grants_roles to fix the MySQL UI error. Finally restart MySQL with /scripts/restartsrv_mysql

    Actually this might be what I can look at, this seems straight forward and so this fixes both the UI and PHP issues, did you run into any issue in any of your nodes (assuming you have many to apply this too)
    0
  • User Avatar
    SigmaWeb
    The previous mariadb update (10.3.26) has created problems with some magento installations where mysqld process, produces high CPU load (this doesn't happen with 10.3.25). I was hopping that the new release 10.3.27 will fix this, but unfortunately I see that problem still exists. Does anyone else face this magento - mysqld high CPU load?
    0
  • User Avatar
    voip
    MariaDB has released updates to resolve the issue case MDEV-24121:
    0
  • User Avatar
    George_Fusioned
    Actually this might be what I can look at, this seems straight forward and so this fixes both the UI and PHP issues, did you run into any issue in any of your nodes (assuming you have many to apply this too)

    Nope, no issues at all with that workaround to install 10.2.36 / 10.3.27 although it might be obsolete now since MariaDB released the packages in their main repos: Emergency Release of MariaDB 10.5.8, 10.4.17, 10.3.27, and 10.2.36 is now available - MariaDB.org
    0
  • User Avatar
    George_Fusioned
    The previous mariadb update (10.3.26) has created problems with some magento installations where mysqld process, produces high CPU load (this doesn't happen with 10.3.25). I was hopping that the new release 10.3.27 will fix this, but unfortunately I see that problem still exists. Does anyone else face this magento - mysqld high CPU load?

    We've had a few servers with abnormally high RAM usage after upgrading from 10.3.25 -> 10.3.26, but it's stable again with 10.3.27 I believe it was related to [MDEV-24117] Memory management problem in statistics state for queries that have a large field IN (values) part - Jira
    0
  • User Avatar
    Domenico
    When will cPanel update the MariaDB upgrade to the latest and safe version within WHM ?
    0
  • User Avatar
    George_Fusioned
    If you run a upcp now, rpmup should get the latest/fixed MariaDB packages.
    0
  • User Avatar
    cPRex Jurassic Moderator
    That is correct - cPanel doesn't manage the MariaDB packages as those get pulled directly from the MariaDB repositories.
    0
  • User Avatar
    Domenico
    Yeah I know but that was not what I meant. Either way, it is fixed now. Thanks for your reply. :)
    0
  • User Avatar
    cPRex Jurassic Moderator
    @MindServer - I can't say for sure as there have been many changes to your system that you've outlined in this thread. The autofixer may have run previously, but it was only designed to run once on the system.
    0
  • User Avatar
    colin12345
    I have the same problem, I couldn't access or create any databases in Cpanel. Just wonder, how do I run the script? I could see the instructions is to run /scripts/autorepair fix_mariadb_show_grants_roles but how do I do this? Is there a step by step instructions on how to do this? Thanks.
    0
  • User Avatar
    colin12345
    You only need login with SSH access in your Linux Terminal and execute the command: /scripts/autorepair fix_mariadb_show_grants_roles Copy and paste him in Terminal. Have a nice day.

    Thank you for your reply, I'll try this.
    0
  • User Avatar
    Kent Brockman
    If you want to solve it with a single chain of commands, you can do this: yum versionlock clear && yum -y upgrade MariaDB-* && /scripts/autorepair fix_mariadb_show_grants_roles && /scripts/upcp
    Worked for us and our servers :)
    0
  • User Avatar
    Nurs1927
    If you want to solve it with a single chain of commands, you can do this: yum versionlock clear && yum -y upgrade MariaDB-* && /scripts/autorepair fix_mariadb_show_grants_roles && /scripts/upcp
    Worked for us and our servers :)

    Solved for me whit this command. Thanks.
    0
  • User Avatar
    cPRex Jurassic Moderator
    At this point the upstream issues have been resolved. That, in combination with the autofixer means this should no longer be an issue so I'm marking this as resolved.
    0

Please sign in to leave a comment.