Articles in this section

Domain creation fails on a Plesk server: String must not be empty

Plesk for Windows kb: technical

Applicable to:

  • Plesk for Windows

Symptoms

  • On a Windows Plesk server, a domain or subdomain cannot be created or restored, because an error that is similar to the following is shown:

    PLESK_ERROR: Domain example.com creation failed
    String must not be empty
    In module
    Exception type: System.Runtime.InteropServices.COMException
    at Microsoft.Web.Administration.Interop.IAppHostProperty.set_Value(Object value)
    at Microsoft.Web.Administration.ConfigurationElement.SetAttributeValue(String attributeName, Object value)
    at FastCgiCollection.Add(String fullPath, String arguments)
    at IISFastCgiApplications.add(IISFastCgiApplications* , shared_ptr<IFastCgiApplication>* , basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* executablePath, basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* arguments)
    at updateHandler(PHP-php, 100)(WebServerAdapter::updateHandler line 1532)
    at updateHandlers(100, false)(WebServerAdapter::updateHandlers line 1465)
    at setScriptMaps(100, true)(WebServerAdapter::setScriptMaps line 1371)
    at configHosting(sub.example.com)(WebServerAdapter::configHosting line 393)
    at configHosting(sub.example.com)(WebServerManager::configHosting line 2656)
    at Unable to execute console command: '--install-vhost'(vconsoleapp::start line 95)
    at Unable to execute command: '"C:\Program Files (x86)\Plesk\admin\bin64\websrvmng" --install-vhost "--vhost-config=C:/Program Files (x86)/Plesk/PrivateTemp/iahf8886de8.tmp"'(vconsoleapp::run line 117)
    (Error code 1)

  • An error that is similar to the following can be found in the /var/log/plesk/install/autoinstaller3 log:

    CONFIG_TEXT: [2022-03-09 02:41:27.960080] Bootstrapper has finished action (exec time: 2 sec.): parent_name='panel', sequence='post', stage='commit', sequence_order='0', operation='install', exec_cmd='"[PLESK_INSTALLDIR]\admin\bin\upgrade.exe"'', m_arch='', exit code: 1, output: PHP Warning: The use statement with non-compound name 'Exception' has no effect
    Line: 6
    File: C:\Program Files (x86)\Plesk\admin\plib\modules\pagespeed-insights\library\EventListener.php
    Stack Trace:
    #0 Smb_Exception_Syntax::handleError(2, The use statement with non-compound name 'Exception' has no effect, C:\Program Files (x86)\Plesk\admin\plib\modules\pagespeed-insights\library\EventListener.php, 6, Array ([fileName] => C:\Program Files (x86)\Plesk/admin/plib/modules/pagespeed-insights/library/EventListener.php)) called at [C:\Program Files (x86)\Plesk\admin\plib\interfaces\InterfacesManager.php:269]
    #1 require_once() called at [C:\Program Files (x86)\Plesk\admin\plib\interfaces\InterfacesManager.php:269]
    #2 InterfacesManager::{closure}() called at [C:\Program Files (x86)\Plesk\admin\plib\Extension\Helper.php:84]
    #3 Plesk\Extension\Helper::contextSafe(Closure Object ()) called at [C:\Program Files (x86)\Plesk\admin\plib\interfaces\InterfacesManager.php:270]
    #4 InterfacesManager::_loadImplFile(C:\Program Files (x86)\Plesk/admin/plib/modules/pagespeed-insights/library/EventListener.php) called at [C:\Program Files (x86)\Plesk\admin\plib\interfaces\InterfacesManager.php:122]
    #5 InterfacesManager::getImpls(EventListener) called at [C:\Program Files (x86)\Plesk\admin\plib\interfaces\InterfacesManager.php:162]
    #6 InterfacesManager::callImpls(EventListener, handleEvent, Array ([0] => plesk_component,[1] => 0,[2] => plesk_component_upgrade,[3] => Array ([Plesk component name] => mariadb105,[COMP_SERVICE_NODE] => 1),[4] => Array ([Plesk component name] => mariadb105,[COMP_SERVICE_NODE] => 1))) called at [C:\Program Files (x86)\Plesk\admin\plib\ActionLog.php:643]
    #7 ActionLog->_callEventListeners() called at [C:\Program Files (x86)\Plesk\admin\plib\ActionLog.php:406]
    #8 ActionLog->submit() called at [C:\Program Files (x86)\Plesk\admin\plib\ActionLog\Binding\ActionTrait.php:30]
    #9 Plesk\ActionLog\Binding\Package->actionLog(Plesk\Package\Event\Update Object (), plesk_component_upgrade, Array ([COMP_PLESK_COMPONENT_NAME] => package_name,[COMP_SERVICE_NODE] => service_node_id))
    #10 call_user_func_array(Array ([0] => Plesk\ActionLog\Binding\Package Object (),[1] => actionLog), Array ([0] => Plesk\Package\Event\Update Object (),[1] => plesk_component_upgrade,[2] => Array ([COMP_PLESK_COMPONENT_NAME] => package_name,[COMP_SERVICE_NODE] => service_node_id))) called at [C:\Program Files (x86)\Plesk\admin\plib\Event\Dispatcher.php:46]
    #11 Plesk\Event\Dispatcher->dispatchEvent(Plesk\Package\Event\Update Object ()) called at [C:\Program Files (x86)\Plesk\admin\plib\Event.php:31]
    #12 Plesk\Event::dispatch(Plesk\Package\Event\Update Object ()) called at [C:\Program Files (x86)\Plesk\admin\plib\Service\Node\Environment\Components\Packages\Abstract.php:107]
    #13 Service_Node_Environment_Components_Packages_Abstract->onPropertyChanged(mariadb105, 10.5.13.0, 10.5.15.0) called at [C:\Program Files (x86)\Plesk\admin\plib\Db\Table\Dictionary\ServiceNodeEnvironment.php:162]
    #14 Db_Table_Dictionary_ServiceNodeEnvironment->_processChanges(Array ([asp] => 10.0.20348.1,[asp.net.2] => 3.5.30729.4926,[asp.net.4] => 4.8.0,[aspnetcoremodule] => 12.2.19226.0,[aspnetcoremodule_v2] => 16.0.22015.0,[awstats] => 7.7,[dotnetcoreruntime_1_0] => 1.0.9,[dotnetcoreruntime_1_1] => 1.1.6,[dotnetcoreruntime_2_0] => 2.0.5,[dotnetcoreruntime_2_1] => 2.1.30,[dotnetcoreruntime_2_2] => 2.2.7,[dotnetcoreruntime_3_0] => 3.0.0,[dotnetcoreruntime_3_1] => 3.1.22,[dotnetcoreruntime_5_0] => 5.0.14,[dotnetcoreruntime_6_0] => 6.0.2,[dynamic-compression] => 10.0.20348.1,[failed_requests_tracing] => 10.0.20348.1,[fastcgi] => 10.0.20348.1,[git] => 2.34.1,[health-monitor] => 18.0.41,[horde] => ,[iis] => 10.0,[iisftp7] => 10.0.20348.1,[iisnodemodule] => 0.2.21.0,[mailenable] => 10.35,[mariadb103] => ,[mariadb105] => 10.5.13.0,[mewebmail] => 10.35,[modsecurity] => 2.9.5,[msdns] => 10.0.20348.524,[mssql_MSSQLSERVER2016] => 15.0.2080.9,[mysql56] => ,[mysql57] => ,[mysqlodbc3] => 3.51.30,[mysqlodbc5] => 5.3.14,[node_js] => 12.22.9,[php5_3] => 5.3.29,[php5_4] => 5.4.45,[php5_5] => 5.5.38,[php5_6] => 5.6.40,[php7_0] => 7.0.33,[php7_1] => 7.1.33,[php7_2] => 7.2.34,[php7_3] => 7.3.33,[php7_4] => 7.4.28,[php8_0] => 8.0.16,[php8_1] => 8.1.3,[phpmyadmin] => 5.0.3,[psa] => 18.0.41,[qos] => 10.0.20348.1,[spamassassin] => 3.4.5,[ssi] => 10.0.20348.1,[task-manager] => 18.0.41.8197,[urlrewrite] => 7.2.1993,[webalizer] => ,[webdeploy] => 10.0.1994,[websockets] => 10.0.20348.1,[winfw] => Service), Array ([asp] => 10.0.20348.1,[asp.net.2] => 3.5.30729.4926,[asp.net.4] => 4.8.0,[aspnetcoremodule] => 12.2.19226.0,[aspnetcoremodule_v2] => 16.0.22015.0,[awstats] => 7.7,[dotnetcoreruntime_1_0] => 1.0.9,[dotnetcoreruntime_1_1] => 1.1.6,[dotnetcoreruntime_2_0] => 2.0.5,[dotnetcoreruntime_2_1] => 2.1.30,[dotnetcoreruntime_2_2] => 2.2.7,[dotnetcoreruntime_3_0] => 3.0.0,[dotnetcoreruntime_3_1] => 3.1.22,[dotnetcoreruntime_5_0] => 5.0.14,[dotnetcoreruntime_6_0] => 6.0.2,[dynamic-compression] => 10.0.20348.1,[failed_requests_tracing] => 10.0.20348.1,[fastcgi] => 10.0.20348.1,[git] => 2.34.1,[health-monitor] => 18.0.41,[horde] => ,[iis] => 10.0,[iisftp7] => 10.0.20348.1,[iisnodemodule] => 0.2.21.0,[mailenable] => 10.35,[mariadb103] => ,[mariadb105] => 10.5.15.0,[mewebmail] => 10.35,[modsecurity] => 2.9.5,[msdns] => 10.0.20348.524,[mssql_MSSQLSERVER2016] => 15.0.2080.9,[mysql56] => ,[mysql57] => ,[mysqlodbc3] => 3.51.30,[mysqlodbc5] => 5.3.14,[node_js] => 12.22.9,[php5_3] => 5.3.29,[php5_4] => 5.4.45,[php5_5] => 5.5.38,[php5_6] => 5.6.40,[php7_0] => 7.0.33,[php7_1] => 7.1.33,[php7_2] => 7.2.34,[php7_3] => 7.3.33,[php7_4] => 7.4.28,[php8_0] => 8.0.16,[php8_1] => 8.1.3,[phpmyadmin] => 5.0.3,[psa] => 18.0.41,[qos] => 10.0.20348.1,[spamassassin] => 3.4.5,[ssi] => 10.0.20348.1,[task-manager] => 18.0.42.8327,[urlrewrite] => 7.2.1993,[webalizer] => ,[webdeploy] => 10.0.1994,[websockets] => 10.0.20348.1,[winfw] => Service)) called at [C:\Program Files (x86)\Plesk\admin\plib\Db\Table\Dictionary\ServiceNodeEnvironment.php:104]
    #15 Db_Table_Dictionary_ServiceNodeEnvironment->sync() called at [C:\Program Files (x86)\Plesk\admin\plib\Service\Driver\Packages\Windows.php:99]
    #16 Service_Driver_Packages_Windows->sync() called at [C:\Program Files (x86)\Plesk\admin\plib\Service\Driver\Core\Plesk.php:11]
    #17 Service_Driver_Core_Plesk->syncAllData() called at [C:\Program Files (x86)\Plesk\admin\plib\Db\Table\Row\ServiceNode\ManagementNode.php:15]
    #18 Db_Table_Row_ServiceNode_ManagementNode->refreshProperties() called at [C:\Program Files (x86)\Plesk\admin\plib\api-common\AbstractCu.php:1721]
    #19 AbstractCu::componentUpdate() called at [C:\Program Files (x86)\Plesk\admin\plib\Upgrade\upgrade.php:31]

Cause

A previously failed Plesk update process is commonly responsible for the error.

3rd-line pending https://jira.plesk.ru/browse/PPS-12681. Please add a comment there if an issue occurs, providing server access. If the ticket must be closed asap, please check if Google Pagespeed Insights extension is installed and provide this info along with the version of the installed extension in a PPS comment.

Resolution

The issue can usually be resolved by following these steps:

  1. Log into Plesk

  2. Go to Tools & Settings > Server Components page and click on Refresh button.

If the issue still persists:

  1. Connect to the server via RDP.

  2. Back up the directory with the affected domain: %plesk_vhosts%example.com

  3. Remove the subscription example.com

  4. Create it again and restore from the backup.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.