Skip to main content

Mysql cannot start

Comments

90 comments

  • CpDem
    to fix, roll back failed update
    yum downgrade mysql-community-*

    4
  • epesi

    Optimizr try to run MySQL password reset from WHM admin panel. It helped in my case.

    If MySQL is running correctly and is recognized by WHM/cPanel then you should see MySQL processes.

    Try the password reset and report your outcome here for others to save them time.

    I wasted approximately 10 hours on various fixes including downgrading, in-place upgrade, purging and clean install... when the fix would take just several minutes if it was properly displayed on cPanel front page. Instead their fix, which I'm referencing above was backdated.

    cPanel team - whatever you do at least monitor your own f$#% forum and respond quickly in case of emergency like that. Do you need crisis management training?

    Your software package is mature and does excellent job and I am paying for both cPanel and DirectAdmin (among others) and will rate cPanel higher than DA. If you improve your support just a little bit you will win many more customers and they will be happy customers.

    Now you have unhappy and frustrated admins looking for help. Where it is?
    You should send e-mail immediately to all cPanel subscribers to warn them about the problem and how to fix it, even if it doesn't apply to them. Do it now!

    4
  • Cloudlinux/Cpanel User

    Stupid Cpanel upcp.  WHY can't they block this update ?????

    3
  • clopezi

    Same issue here and same fix here. One hour sweating. 

    2
  • amin alnasra

    I faced the same issue 

    to prevent this issue I locked the mysql version by this command on almalinux 

    dnf install python3-dnf-plugin-versionlock
    yum versionlock mysql-community-*
     
    2
  • ::Gomez::

    To lock the version (and avoid the upgrade) run this

     

    dnf install python3-dnf-plugin-versionlock

    yum versionlock mysql-community-*

    2
  • Shyam

    Mel Tallagsen, Why did you downgrade from 8.0.37 to 8.0.36, isn't 8.0.38 suppose to be the buggy version that crashed MySQL and 8.0.37 works okay (at least in our case), I'm a bit confused and curious now 🙄🤔

    2
  • Oscar Serrano

    One of our dedicated servers also failed and this solve the issue, thanks for sharing:


    Downgrade the problematic update:
    yum downgrade mysql-community-*

    Now lock the version to avoid a new failures:
    yum install yum-versionlock
    yum versionlock mysql-community-*

    cPanel shuts down direct support for servers that didnt purchased their license directly, like our servers purchased from Bluehost. The Bluehost dedicated support team, does not even qualifies to be called support tem. We are all alone now.

    Thanks to the community and CloudLinux support team, that point us in the right direction.

     

    2
  • Unnamed User

    Upgraded to 8.39 a few days ago. All working OK.

    2
  • Shuki Unknown

    I have the same issue!

    1
  • Julio80

    Same issue here

    1
  • Julio80

    That fixed it, thanks!

    1
  • Shuki Unknown

    Thanks!

    yum downgrade mysql-community-*

    fixed it for me!

     

    1
  • KevinLevin

    That fixed it.
    Official:

    https://support.cpanel.net/hc/en-us/articles/24546938662039-Upstream-issue-MySQL-8-0-38-does-not-start-Segmentation-Fault

    you might also want to versionlock the mysql-community-* for a while until the issue is resolved to prevent updating it again with the same result:

    https://support.cpanel.net/hc/en-us/articles/1500013004522-How-to-version-lock-RPM-packages

    1
  • Unnamed User

    thanks its working now after downgrade SQL version

     

    yum downgrade mysql-community-*

    1
  • Twest

    The downgrade script worked, thank you!

    yum downgrade mysql-community-*

    1
  • epesi

    For all Ubuntu 20.04 users - SOLVED and TESTED

    Just follow steps in the official article published by cPanel support 10 hours ago:

    MySQL 8.0.38 was released upstream. After automatic updates, there are multiple reports that MySQL is not starting.

    Workaround

    • Downgrade to the previous subversion of MySQL 8:

    https://support.cpanel.net/hc/en-us/articles/24546938662039-Upstream-issue-MySQL-8-0-38-does-not-start-Segmentation-Fault

    It worked great and all old databases are visible and working.

    We were down for 12 hours and 45 mins because of it. Wasted a lot of time trying other methods. I hope this message will save you time.

    Good luck!

    1
  • Mel Tallagsen

    no response from support on our side either, just a link to a fix that didn't work... gonna try this method now, thank you guys for being such an active group

    1
  • LvH

    Mel Tallagsen
    Have you tried the downgrade? This seems to work for most people. If not: what happened instead of mySQL starting OK (and what's the exact error it's getting stuck on)? 

    1
  • KevinLevin

    @Mel

    Check your /etc/my.cnf and see if you have the following:

    innodb_force_recovery = 

    If you have - remove that line and restart the mysql server.

    1
  • epesi

    cPanel support team - can you please promote solution to this huge problem?

    Quick fix:

    1
  • epesi

    Doing so can maybe will decrease the number of tickets?

    Be more proactive guys. We admins have certain responsibilities and uptime is one thing we have to worry about. The latest release was not properly tested you know it know. But you can still turn this fiasco into an example of how bad support can be turned into great support.

    An error doesn't become a mistake until you refuse to correct it.
     - John F. Kennedy.

    1
  • Mel Tallagsen

    I am absolutely amazed by the fast response i got once i set the support ticket for direct response... 

     

    I have downgraded the MySQL server for you:

    yum downgrade mysql-community-* --disablerepo=base --disablerepo=centos-sclo-rh --disablerepo=centos-sclo-sclo --disablerepo=extras --disablerepo=updates
    [TRUNCATED]
    Removed:
    mysql-community-client.x86_64 0:8.0.37-1.el7 mysql-community-client-plugins.x86_64 0:8.0.37-1.el7
    mysql-community-common.x86_64 0:8.0.37-1.el7 mysql-community-devel.x86_64 0:8.0.37-1.el7
    mysql-community-icu-data-files.x86_64 0:8.0.37-1.el7 mysql-community-libs.x86_64 0:8.0.37-1.el7
    mysql-community-libs-compat.x86_64 0:8.0.37-1.el7 mysql-community-server.x86_64 0:8.0.37-1.el7

    Installed:
    mysql-community-client.x86_64 0:8.0.36-1.el7 mysql-community-client-plugins.x86_64 0:8.0.36-1.el7
    mysql-community-common.x86_64 0:8.0.36-1.el7 mysql-community-devel.x86_64 0:8.0.36-1.el7
    mysql-community-icu-data-files.x86_64 0:8.0.36-1.el7 mysql-community-libs.x86_64 0:8.0.36-1.el7
    mysql-community-libs-compat.x86_64 0:8.0.36-1.el7 mysql-community-server.x86_64 0:8.0.36-1.el7

    Complete!

     
    Please note the MySQL service did not start after the downgrade:

    /scripts/restartsrv_mysql --status
    (XID np6tbn) The “mysql” service is down.

     
    This is because the following option was enabled. I went ahead and disabled it:

    grep ^#innodb_force /etc/my.cnf
    #innodb_force_recovery = 6

     
    MySQL is now working correctly:

    /scripts/restartsrv_mysql --status
    mysqld (/usr/sbin/mysqld) is running as mysql with PID 26192 (systemd+/proc check method).

     
    Please make sure to double-check the article provided before to ensure the version lock is configured to avoid another automatic MySQL upgrade.
     
    Let me know if there is anything else I can do for you.

    1
  • clopezi

    It's not cPanel fault, obviously, but we miss their support here.

    On the other hand, all fundamental packages should be distributed with previous testing.

    MySQL 8 was the default option for cPanel for some years, so a little responsibility maybe they have...

    1
  • cPRex Jurassic Moderator

    I'm actually seeing that 8.0.39 does *not* fix the segfaults on startup as this isn't covered in the release notes:

    https://bugs.mysql.com/bug.php?id=115469

    That seems odd to me, but we're still waiting on MySQL to fix that.

    Starting in version 122, which is now in Edge, all cPanel installations will default to MariaDB.  I still don't have a way to go from MySQL 8 to a MariaDB version, but you could add that feedback to our page at features.cpanel.net and the team will see that.

    1
  • Unnamed User

    This line made me laugh:

     like to commend the Oracle team for their swift response to this problem.

    LOL

    1
  • Julio80
    AlmaLinux v8.10.0 STANDARD standard
    cPanel Version
    120.0.11
    0
  • Alec Siviter

    Same issue for us - the rollback worked and brought MySQL back online.

    0
  • yayhosting

    Just confirming we have this issue as well. Not all servers failed the upgrade, some upgraded fine.

    Both on AlmaLinux and Ubuntu 20.04.

    We also downgraded, which also fixed it for us.

    0
  • LvH

    Fuuuuuu.... We were just doing an upgrade on a legacy server from mySQL 5.7 to mySQL 8.0 to start elevation to AlmaLinux and we ran in to this. I spent hours trying to debug what was going wrong and the inexplicable error with zero pointers and no search results got me to nuke the whole thing and start terminating and then restoring accounts from backups. Damn. 

    The timing is insane. Was just debating this afternoon: do it now or tomorrow? Nothing was published about this bug yet and we decided to do it today. Aaarghh. Oh well. Murphy's law.

    Here's the strange thing by the way: nuking the mySQL datafolder instantly gets mySQL to start again. Just removing all databases isn't enough, but nuking the full contents of that dir gets mySQL back working and happy to restore databases as well. (So don't try this at home unless you have a backup of the datadir and full backups of the cPanel accounts. Its the only reason I even started experimenting with this.) 

    0

Please sign in to leave a comment.