• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue 500 Plesk\Exception\Database

noam6990

New Pleskian
Server Error

500 Plesk\Exception\Database​

DB query failed: SQLSTATE[HY000] [2002] No such file or directory
TypePlesk\Exception\Database
MessageDB query failed: SQLSTATE[HY000] [2002] No such file or directory
FileMysql.php
Line79
 
The Server Error 500 Plesk\Exception\Database error indicates a database issue, but other then that it's an very generic error. It could be a full disk, wrong database server configuration or a corrupted database. You'll have search trough the log files for more details on the issue.

I have the same error con my windows server, and i can`t find how to solve it, PLESK HELP US!!!!
If you require direct assistance from Plesk open a support ticket so the support team can investigate and solve the problem for you.
 
Unfortunately, if you have a plesk license that has been purchased through a reseller (your hosting company) you can't access the support ticket system....
 

Attachments

  • Screenshot 2024-04-23 at 09.48.04.png
    Screenshot 2024-04-23 at 09.48.04.png
    121.5 KB · Views: 2
I have the same problem on windows server.

Plesk, after the automatic update to 18.0.60_14244 (previously it was 18.0.59_14022), started showing this error and no longer logs into Plesk:

500 Plesk\Exception\Database - DB query failed: SQLSTATE[HY000] [2002] No connection cloud be made because the target machine actively refused it.

Looking at the log, I found these errors:

---------------------
[2024-04-18 23:54:36.489956] MSI (04): Output:
[2024-04-18 23:55:08.894461] MSI (04): Stop service...
[2024-04-18 23:55:08.894461] MSI (04): Start service...
[2024-04-18 23:55:08.894461] MSI (04): Upgrade only the system tables...
[2024-04-18 23:55:08.894461] MSI (04): Restart service...
[2024-04-18 23:55:08.894461] MSI (04): Execute C:\Program Files (x86)\Plesk\MySQL\bin\mysql_upgrade.exe "--defaults-file=\"C:\Program" Files "(x86)\Plesk\MySQL\my.ini --force --upgrade-system-tables --host=. --protocol=pipe --socket=ommited" failed: The --upgrade-system-tables option was used, user tables won't be touched.

...continuing...

[2024-04-18 23:55:08.910084] MSI (04): mysql.transaction_registry OK
[2024-04-18 23:55:08.910084] MSI (04): Phase 2/8: Installing used storage engines... Skipped
[2024-04-18 23:55:08.910084] MSI (04): Phase 3/8: Running 'mysql_fix_privilege_tables'
[2024-04-18 23:55:08.910084] MSI (04): ERROR 2013 (HY000) at line 2581: Lost connection to server during query
[2024-04-18 23:55:08.910084] MSI (04): ERROR 2006 (HY000) at line 2607: Server has gone away

...continuing...

[2024-04-18 23:55:08.988201] MSI (04): ERROR 2006 (HY000) at line 8506: Server has gone away
[2024-04-18 23:55:08.988201] MSI (04): FATAL ERROR: Upgrade failed
[2024-04-18 23:55:08.988201] MSI (04): at (execExtUtilChecked line 160)
[2024-04-18 23:55:08.988201] MSI (04): at Launch mysql_upgrade(mysqlmng_adm::upgradeServerData line 411)
[2024-04-18 23:55:08.988201] MSI (04): Incorrect function. (Error code 1) at Start service PleskSQLServer
[2024-04-18 23:55:08.988201] MSI (04): at (service::startStopService line 997)
[2024-04-18 23:55:08.988201] MSI (04): at Error occurred on starting PleskSQLServer service.
[2024-04-18 23:55:08.988201] MSI (04): Errors in error log file:
[2024-04-18 23:55:08.988201] MSI (04): 2024-04-18 23:55:07 0 Could not open mysql.plugin table: "Can't find file: '.\mysql\plugin.MAI' (errno: 2 "No such file or directory")". Some plugins may be not loaded
[2024-04-18 23:55:08.988201] MSI (04): 2024-04-18 23:55:07 0 Can't open and lock privilege tables: Can't find file: '.\mysql\servers.MAI' (errno: 2 "No such file or directory")
[2024-04-18 23:55:09.003826] MSI (04): 2024-04-18 23:55:07 0 Fatal error: Can't open and lock privilege tables: Can't find file: '.\mysql\db.MAI' (errno: 2 "No such file or directory")
[2024-04-18 23:55:09.003826] MSI (04): 2024-04-18 23:55:07 0 Aborting
[2024-04-18 23:55:09.003826] MSI (04): (mysqlmng_adm::startService line 222)
[2024-04-18 23:55:09.003826] MSI (04): at (mysqlmng_adm::startService line 225)
[2024-04-18 23:55:09.003826] MSI (04): at startService()(mysqlmng_adm::startService line 228)
[2024-04-18 23:55:09.003826] MSI (04): at restartService()(mysqlmng_adm::restartService line 238)
[2024-04-18 23:55:09.003826] MSI (04): at Restart service(mysqlmng_adm::upgradeServerData line 430)
[2024-04-18 23:55:09.003826] MSI (04): at (mysqlmng_adm::upgradeServerData line 436)
[2024-04-18 23:55:09.003826] MSI (04): at Unable to execute console command: '--upgrade-server-data'(vconsoleapp::start line 95)
[2024-04-18 23:55:09.003826] MSI (04): at Unable to execute command: '"C:\Program Files (x86)\Plesk\admin\bin\mysqlmng_adm.exe" --upgrade-server-data'(vconsoleapp::run line 117)
[2024-04-18 23:55:09.003826] MSI (04): Critical action 'Upgrade data of Plesk SQL Server...' failed:
Command "C:\Program Files (x86)\Plesk\admin\bin\mysqlmng_adm.exe" --upgrade-server-data failed with code 1. Output: Stop service...
Start service...
Upgrade only the system tables...
Restart service...
---------------------

What is the solution for this case?
 
Back
Top