Restore fails with error: "The filename, directory name, or volume label syntax is incorrect"

Created:

2016-11-16 13:06:38 UTC

Modified:

2017-04-24 11:21:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Restore fails with error: "The filename, directory name, or volume label syntax is incorrect"

Applicable to:

  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

When you try to restore a Plesk Panel backup on the server, the restore is not done and you receive the following error message in the GUI:

Deployer has been terminated by exception: boost::filesystem::create_directory: The filename, directory name, or volume label syntax is incorrect: "C:\\Inetpub\\vhosts\\<domain name>\\C:"

The path can vary from server to server, but the disk label (like C:) is repeated twice.

Resolution

In order to detect the number of incorrect rows in the database, run the following command:

"%plesk_bin%"\\dbclient --direct-sql --sql="select count(*) from sys_users where home like '%//%'"

If this count is not 0, you will need to perform the following set of actions:

  1. Back up the sys_users table for the current psa database:
    mysqldump -uadmin -p<password> -P8306 psa sys_users > c:\\psasysusers.dump

Your Plesk Panel might be using a non-standard psa database (for example, psa2). You can check this information in the Registry.

  1. Open c:\\psasysusers.dump in WordPad and replace all // with / .

  2. Restore sys_users from the resulting file:

    mysql -uadmin -p<password> -P8306 psa < c:\\psasysusers.dump`

After that, you will need to perform another Plesk backup and the error will be gone when you will try to restore the newly created backup.

MySQL commands should be run from the following folder:

%plesk_dir%\\Databases\\MySQL51\\bin or %plesk_dir%\\Databases\\MySQL\\bin

Have more questions? Submit a request
Please sign in to leave a comment.