Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem mysql restart in whm

Discussion in 'General Discussion' started by jaheem, Nov 3, 2017.

  1. jaheem

    jaheem Member

    Joined:
    May 31, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    my server mysql crached when i try to restart giv me

    Restarting MySQL Server

    Cpanel::Exception::Timeout/(XID znx69e) The system failed to lock the file “/var/run/restartsrv_mysql” after 60 seconds. at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330. Cpanel::Exception::create("Timeout", "The system failed to lock the file \x{e2}\x{80}\x{9c}[_1]\x{e2}\x{80}\x{9d} after [quant,_2"..., ARRAY(0x2f25be8)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46 Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__..., ARRAY(0x2f25be8)) called at /usr/local/cpanel/Cpanel/SafeFile.pm line 425 Cpanel::SafeFile::_do_flock_or_return_exception(GLOB(0x322beb0), "/var/run/restartsrv_mysql") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 370 Cpanel::SafeFile::_safe_open(GLOB(0x322beb0), ">>", "/var/run/restartsrv_mysql", CODE(0xb8fc10), "safeopen") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 78 Cpanel::SafeFile::safeopen(GLOB(0x322beb0), ">>", "/var/run/restartsrv_mysql") called at /usr/local/cpanel/Cpanel/RestartSrv/Lock.pm line 25 Cpanel::RestartSrv::Lock::new("Cpanel::RestartSrv::Lock", "mysql") called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 183 Cpanel::ServiceManager::Base::lock(Cpanel::ServiceManager::Services::Mysql=HASH(0x2d3bc50)) called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 459 Cpanel::ServiceManager::Base::BUILD(Cpanel::ServiceManager::Services::Mysql=HASH(0x2d3bc50), HASH(0xc060e0)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Cpanel/Class/Object.pm line 49 Cpanel::Class::Object::BUILDALL(Cpanel::ServiceManager::Services::Mysql=HASH(0x2d3bc50), HASH(0xc060e0)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Cpanel/Class/Object.pm line 41 Cpanel::Class::Object::new("Cpanel::ServiceManager::Services::Mysql", "service", "mysql") called at /usr/local/cpanel/Cpanel/ServiceManager.pm line 91 Cpanel::ServiceManager::new("Cpanel::ServiceManager", "service", "mysql") called at bin/restartsrv_base.pl line 60 main::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 98 eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 89 Try::Tiny::try(CODE(0x2cef9e0), Try::Tiny::Catch=REF(0xb99fc0)) called at bin/restartsrv_base.pl line 107



    Any help

    Thank you
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,396
    Likes Received:
    1,605
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you try restarting MySQL via the command line and verify if you see the same result? EX:

    Code:
    /scripts/restartsrv_mysql
    If so, do you notice any output to /var/lib/mysql/$hostname.err during the failed restart attempt? Note that these types of issues are typically better addressed by opening a support ticket via the link in my signature so we can get a better idea of what's happening.

    Thank you.
     
Loading...

Share This Page