Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

Problem mysql restart via WHM



  • cPanelMichael
    Hello, Could you try restarting MySQL via the command line and verify if you see the same result? EX:
    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.
  • karentan
    Hi, I'm having the same problem when restarting in WHM this is what is shows: Cpanel::Exception::Timeout/(XID k4qvm8) The system failed to lock the file "/var/run/restartsrv_mysqld" after 197 seconds. at /usr/local/cpanel/Cpanel/ line 735. Cpanel::SafeFile::_timeout_exception("/var/run/restartsrv_mysqld", 197) called at /usr/local/cpanel/Cpanel/ line 766 Cpanel::SafeFile::_die_if_file_is_flocked_cuz_already_waited_a_while("/var/run/restartsrv_mysqld", 197) called at /usr/local/cpanel/Cpanel/ line 834 Cpanel::SafeFile::_lock_wait("/var/run/restartsrv_mysqld") called at /usr/local/cpanel/Cpanel/ line 355 Cpanel::SafeFile::_safelock("/var/run/restartsrv_mysqld") called at /usr/local/cpanel/Cpanel/ line 558 Cpanel::SafeFile::_safe_open(undef, ">>", "/var/run/restartsrv_mysqld", CODE(0xb7e268), "safeopen") called at /usr/local/cpanel/Cpanel/ line 115 Cpanel::SafeFile::safeopen(undef, ">>", "/var/run/restartsrv_mysqld") called at /usr/local/cpanel/Cpanel/RestartSrv/ line 25 Cpanel::RestartSrv::Lock::new("Cpanel::RestartSrv::Lock", "mysqld") called at /usr/local/cpanel/Cpanel/ServiceManager/ line 184 Cpanel::ServiceManager::Base::lock(Cpanel::ServiceManager::Services::Mysql=HASH(0x275cef8)) called at /usr/local/cpanel/Cpanel/ServiceManager/ line 460 Cpanel::ServiceManager::Base::BUILD(Cpanel::ServiceManager::Services::Mysql=HASH(0x275cef8), HASH(0xb50fe0)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Cpanel/Class/ line 49 Cpanel::Class::Object::BUILDALL(Cpanel::ServiceManager::Services::Mysql=HASH(0x275cef8), HASH(0xb50fe0)) called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int/Cpanel/Class/ line 41 Cpanel::Class::Object::new("Cpanel::ServiceManager::Services::Mysql", "service", "mysql") called at /usr/local/cpanel/Cpanel/ line 99 Cpanel::ServiceManager::new("Cpanel::ServiceManager", "service", "mysql") called at bin/ line 84 scripts::restartsrv_base::__ANON__() called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/ line 99 eval {...} called at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Try/ line 90 Try::Tiny::try(CODE(0x280d850), Try::Tiny::Catch=REF(0xb3eff8)) called at bin/ line 130 scripts::restartsrv_base::run("--html", "--wait", "--verbose") called at bin/ line 33 I also tried to restart via Putty and it is freeze like forever nothing happened. Could you help me how to fix this please. Thanks, Karen
  • cPanelMichael
    Hello Karen, It looks like you've opened support ticket #10367993 to report this behavior and one of our Technical Analysts has responded. Can you respond to the ticket to report any further issues or questions? Thank you.

Please sign in to leave a comment.