• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Dash in DB name causes plesk exception when viewing full resource statistics

Mshaker

Basic Pleskian
OS: centos 5 x64
Plesk version: 9.5.2 CentOS 5 95100504.10

When you create a database containing the '-' character it creates the database as expected however on disk the database directory path '-' gets created as '@002d'.

Eg. create database name called example-database
Database name: example-database
On disk: /var/lib/mysql/example@002ddatabase/

After the database is created you can no longer view the domains "Full Summary" report as it now throws a "PleskUtilException"

get_dir_size: Error: unable to get dir size for /var/lib/mysql/example-database

System error 2: No such file or directory

0: DatabaseManagerMySQL.php:284
DatabaseManagerMySQL->getDatabaseSizeImpl(string 'example-database', resource)
1: DatabaseManager.php:323
DatabaseManager->getDatabaseSize(object of type Database)
2: class.DomainReport.php:673
DomainReport->make_report_full_databases_()
3: class.Report.php:277
Report->make_report(integer '61')
4: ReportUIPointer.php:40
ReportUIPointer->accessItem(string 'POST', NULL null)
5: UIPointer.php:596
UIPointer->access(string 'POST')
6: plesk.php:38

Just a note that dumping the database and recreating it without the '-' will fix the exception.
 
Right, it is known issue. I hope it will be fixed soon. Now we can recommend you do not use any special symbols for database names.
 
Hi,

We have experienced this problem in version 9.5.3 CentOS 5 95101022.06 - do you know when this will finally be resolved?

Thanks
 
Back
Top