Unable to rename domain: Site old.example.com does not exist

Created:

2017-06-16 23:15:49 UTC

Modified:

2017-08-08 13:19:12 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to rename domain: Site old.example.com does not exist

Symptoms

1. On attempt to rename a domain from old.example.com to example.com the following error appears in Plesk:

Error: Site old.example.com does not exist at (WebServerManager::renameHosting line 3083) at renameHosting(old.example.com, example.com)(WebServerManager::renameHosting line 3122) at execute console command --rename-vhost(vconsoleapp::start line 122) at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --rename-vhost "--vhost-config=tmp2811.tmp" "--old-name=old.example.com"(vconsoleapp::run line 139) (Error code 1)

and the error below is logged in to %plesk_dir%admin\logs\php_error.log with debug enabled:

DEBUG [util_exec] [9791452ec38433bdcdb914195303f012-1] Finished in 0.84232s, Error code: 1, stdout: Site old.example.com does not exist
at (WebServerManager::renameHosting line 3083)
at renameHosting(old.example.com, example.com)(WebServerManager::renameHosting line 3122)
at execute console command --rename-vhost(vconsoleapp::start line 122)
at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --rename-vhost "--vhost-config=tmp2811.tmp" "--old-name=old.example.com"(vconsoleapp::run line 139), stderr:
[2017-06-16 17:58:49] ERR [1] PleskUtilException: "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --rename-vhost "--vhost-config=tmp2811.tmp" "--old-name=old.example.com" failed with code 1.
stdout:
Site old.example.com does not exist
at (WebServerManager::renameHosting line 3083)
at renameHosting(old.example.com, example.com)(WebServerManager::renameHosting line 3122)
at execute console command --rename-vhost(vconsoleapp::start line 122)
at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --rename-vhost "--vhost-config=tmp2811.tmp" "--old-name=old.example.com"(vconsoleapp::run line 139)
stderr:
file: C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\Agent\Transport\Local\Exec.php
line: 45
code: 0
trace: #0 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\Agent\Transport\Local.php(60): Service_Agent_Transport_Local_Exec->process(integer '1', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#1 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\Agent\Transport\Local.php(26): Service_Agent_Transport_Local->_command(integer '1', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#2 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\Agent.php(148): Service_Agent_Transport_Local->process(string '9791452ec38433bdcdb914195303f012', array)
#3 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\IIS\Manager.php(1004): Service_Agent->commit()
#4 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\IIS\Manager.php(232): Service_IIS_Manager->_commit()
#5 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Commands\RenameDomain.php(535): Service_IIS_Manager::renameVhost(string 'old.example.com', string 'example.com')
#6 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Commands\RenameDomain.php(522): Commands_RenameDomain->_renameInHostingWin(string 'old.example.com', string 'example.com')
#7 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Transactional.php(196): Commands_RenameDomain->applyRenameInHostingWin()
#8 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Transactional.php(129): Transactional->apply()
#9 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Commands\RenameDomain.php(145): Transactional->execute()
#10 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Smb\Plesk\Bridge\Domain.php(663): Commands_RenameDomain->rename()
#11 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Smb\Form\Final\Web\Settings.php(890): Smb_Plesk_Bridge_Domain->rename(string 'example.com')
#12 C:\Program Files (x86)\Parallels\Plesk\admin\application\smb\controllers\WebController.php(690): Smb_Form_Final_Web_Settings->processForm()
#13 C:\Program Files (x86)\Parallels\Plesk\admin\application\smb\controllers\WebController.php(480): Smb_WebController->_processHostingSettingsForm(object of type Smb_Form_Final_Web_Settings, object of type Smb_Plesk_Bridge_Domain)
#14 C:\Program Files (x86)\Parallels\Plesk\admin\externals\Zend\Controller\Action.php(516): Smb_WebController->settingsAction()
#15 C:\Program Files (x86)\Parallels\Plesk\admin\externals\Zend\Controller\Dispatcher\Standard.php(308): Zend_Controller_Action->dispatch(string 'settingsAction')
#16 C:\Program Files (x86)\Parallels\Plesk\admin\externals\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
#17 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Application\Web.php(39): Zend_Controller_Front->dispatch(NULL null)
#18 C:\Program Files (x86)\Parallels\Plesk\admin\htdocs\application.php(15): Plesk\Application_Web->run()
DEBUG [panel] Step failed 'applyRenameInHostingWin'. Site old.example.com does not exist
at (WebServerManager::renameHosting line 3083)
at renameHosting(old.example.com, example.com)(WebServerManager::renameHosting line 3122)
at execute console command --rename-vhost(vconsoleapp::start line 122)
at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --rename-vhost "--vhost-config=tmp2811.tmp" "--old-name=old.example.com"(vconsoleapp::run line 139)
(Error code 1)
=== Trace ===
#0 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\IIS\Manager.php(232): Service_IIS_Manager->_commit()
#1 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Commands\RenameDomain.php(535): Service_IIS_Manager::renameVhost('old.mfmartins.p...', 'example.com')
#2 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Commands\RenameDomain.php(522): Commands_RenameDomain->_renameInHostingWin('old.mfmartins.p...', 'example.com')
#3 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Transactional.php(196): Commands_RenameDomain->applyRenameInHostingWin()
#4 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Transactional.php(129): Transactional->apply()
#5 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Commands\RenameDomain.php(145): Transactional->execute()
#6 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Smb\Plesk\Bridge\Domain.php(663): Commands_RenameDomain->rename()
#7 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Smb\Form\Final\Web\Settings.php(890): Smb_Plesk_Bridge_Domain->rename('example.com')
#8 C:\Program Files (x86)\Parallels\Plesk\admin\application\smb\controllers\WebController.php(690): Smb_Form_Final_Web_Settings->processForm()
#9 C:\Program Files (x86)\Parallels\Plesk\admin\application\smb\controllers\WebController.php(480): Smb_WebController->_processHostingSettingsForm(Object(Smb_Form_Final_Web_Settings), Object(Smb_Plesk_Bridge_Domain))
#10 C:\Program Files (x86)\Parallels\Plesk\admin\externals\Zend\Controller\Action.php(516): Smb_WebController->settingsAction()
#11 C:\Program Files (x86)\Parallels\Plesk\admin\externals\Zend\Controller\Dispatcher\Standard.php(308): Zend_Controller_Action->dispatch('settingsAction')
#12 C:\Program Files (x86)\Parallels\Plesk\admin\externals\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 C:\Program Files (x86)\Parallels\Plesk\admin\plib\Application\Web.php(39): Zend_Controller_Front->dispatch(NULL)
#14 C:\Program Files (x86)\Parallels\Plesk\admin\htdocs\application.php(15): Plesk\Application_Web->run()
#15 {main}

2. There is no old.example.com site in IIS > [Server name] > Sites.

Cause

Incorrect website configuration in IIS.

Resolution

Re-create the site in IIS using the following command:

"%plesk_cli%\repair.exe" --reconfigure-web-site -web-site-name old.example.com

Additional info

How to enable/disable debug logging in Plesk 11.5 and higher for Windows

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