Symptoms
-
While performing relocation of
VHOST
directory via Plesk Reconfigurator the following error appeared:Incorrect function. (Error code 1) at ftpmng failed: The system cannot find the file specified. (Error code 2) at GetLongPathName(D:Websitesexample.comhttpdocsStaging)
at (VFileName: longFile Name line 253)at psaobsolete. Virtual HostsLocation.Change (String source, String dest)
at reconfigurator.Change Location. Set Relocate State() -
Plesk and all domains are down with the following error:
Server Error
500 - external server error.
There is a problem with the resource you are looking for, and it cannot be displayed. -
After repairing Plesk database with
plesk repair db
the following error can be shown while accessing any Plesk element:PleskUtilException: Path is not allowed
-
The following error can be found in %plesk_dir%adminlogsphp_error.log:
ERR [panel] PleskUtilException: Path is not allowed
file: C:Program Files (x86)PleskadminplibServiceDriverFilesystemPleskWindows.php
line: 763
code: 0
trace: #0 C:Program Files (x86)PleskadminplibServiceDriverFilesystemPleskWindows.php(53): Service_Driver_Filesystem_Plesk_Windows::checkAdvancedFilemngXMLErrorCode(string '<XmlError Error="Path is not allowed." ErrorCode="path_is_not_allowed" ErrorDetails="C:inetpubvhos...')
#1 C:Program Files (x86)PleskadminplibFileManager.php(314): Service_Driver_Filesystem_Plesk_Windows->ls(string 'staging', string 'C:Inetpubvhostsexample.com', string 'dirs', string 'bytes', boolean true)
#2 C:Program Files (x86)PleskadminplibFileManager.php(304): FileManager->ls_wrapper(string 'dirs', string 'C:Inetpubvhostsexample.com', boolean true)
#3 C:Program Files (x86)PleskadminplibSmbViewListContentFiles.php(108): FileManager->ls_dirs_wrapper(string 'C:Inetpubvhostsexample.com', boolean true)
#4 C:Program Files (x86)PleskadminplibSmbViewListContentFiles.php(100): Smb_View_List_ContentFiles->_getDirectoriesList(string 'C:Inetpubvhostsexample.com')
#5 C:Program Files (x86)PleskadminplibCommonPanelViewListAbstract.php(482): Smb_View_List_ContentFiles->_getDataProvider()
#6 C:Program Files (x86)PleskadminplibCommonPanelViewListAbstract.php(225): CommonPanel_View_List_Abstract->_setupPaginator()
#7 C:Program Files (x86)PleskadminplibCommonPanelViewListAbstract.php(217): CommonPanel_View_List_Abstract->_setupList()
#8 C:Program Files (x86)PleskadminapplicationsmbcontrollersFileManagerController.php(1266): CommonPanel_View_List_Abstract->__construct(object of type Zend_View, object of type Zend_Controller_Request_Http, array)
#9 C:Program Files (x86)PleskadminapplicationsmbcontrollersFileManagerController.php(850): Smb_FileManagerController->_getFilesList()
#10 C:Program Files (x86)Pleskadminplibvendorpleskzf1libraryZendControllerAction.php(516): Smb_FileManagerController->listAction()
#11 C:Program Files (x86)Pleskadminplibvendorpleskzf1libraryZendControllerDispatcherStandard.php(308): Zend_Controller_Action->dispatch(string 'listAction')
#12 C:Program Files (x86)Pleskadminplibvendorpleskzf1libraryZendControllerFront.php(954): Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
#13 C:Program Files (x86)PleskadminplibApplicationWeb.php(48): Zend_Controller_Front->dispatch(object of type Zend_Controller_Request_Http)
#14 C:Program Files (x86)Pleskadminhtdocsapplication.php(15): PleskApplication_Web->run()
Cause
Incorrect VHOST paths in the database and Windows registry. Plesk Reconfigurator changed paths in psa
database and Windows registry but due to an error, all the files and domain content are still in the old VHOST path.
Resolution
-
Connect to the server via RDP
-
Backup
psa
database:plesk db dump psa > c:psa.sql
-
Repair paths with the following command:
plesk repair db -v
-
Open registry editor and change the path for
HTTPD_VHOSTS_D
value atComputerHKEY_LOCAL_MACHINESOFTWAREWOW6432NodePLESKPSA ConfigConfig