• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Failed to add new Domain - ftpmng failed: Value does not fall within the expected range.

kipialive

New Pleskian
Server operating system version
Microsoft Windows Server 2019 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.55.1
Hi,
There is all the relevant information.
Clean installation of Windows

Product version: Plesk Obsidian 18.0.55.1
OS version: Microsoft Windows Server 2019 x86_64
Build date: 2023/09/07 05:00
Revision: 1fc0497a62cfc0433e08f10b330f85174065af95

Installed with the following components ::

.\plesk-installer.exe --console --select-release-id PANEL_18_0_54_WIN `
--install-component panel `
--install-component common `
--install-component mysql-odbc `
--install-component plesk-urlprotection `
--install-component urlrewrite `
--install-component gitforwindows `
--install-component git `
--install-component msodbcsql11 `
--install-component msodbcsql13 `
--install-component msodbcsql17 `
--install-component php56 `
--install-component php70 `
--install-component php71 `
--install-component php72 `
--install-component modsecurity `
--install-component webdav `
--install-component heavy-metal-skin

During the installation of the first new domain, the installation failed on "Creating physical hosting" step.

ftpmng failed: Value does not fall within the expected range.
In Microsoft.Web.Administration module
Exception type: System.ArgumentException
at Microsoft.Web.Administration.Interop.IAppHostWritableAdminManager.CommitChanges()
at Microsoft.Web.Administration.ConfigurationManager.CommitChanges()
at Microsoft.Web.Administration.ServerManager.CommitChanges()
at ServerManagerFactory.commit()
at IISServerManager.commit(IISServerManager* )
at addServer(10.102.15.149)(IIsFtp7ServerAdapter::addServer line 740)
at updateFtp(10.102.15.149)(FtpServerManager::updateFtp line 389)
at addIPAddress(10.102.15.149)(FtpServerManager::addIPAddress line 59)
at Unable to execute console command: '--add-ip-address'(vconsoleapp::start line 95)
at Unable to execute command: '"C:\Program Files (x86)\Plesk\admin\bin64\ftpmng" --add-ip-address "--ip-address=10.102.15.149"'(vconsoleapp::run line 117)
(Error code 1)
Configuring PHP

Refreshing "Plesk components" - not helped
 
More additional information
If I manually run the command
PS C:\Users\Administrator> "C:\Program Files (x86)\Plesk\admin\bin64\ftpmng" --add-ip-address "--ip-address=10.102.15.149"
At line:1 char:53
+ ... rogram Files (x86)\Plesk\admin\bin64\ftpmng" --add-ip-address "--ip-a ...
+ ~~~~~~~~~~~~~~
Unexpected token 'add-ip-address' in expression or statement.
At line:1 char:1
+ "C:\Program Files (x86)\Plesk\admin\bin64\ftpmng" --add-ip-address "- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The '--' operator works only on variables or on properties.
+ CategoryInfo : ParserError: :)) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken


# Get a list of ALL instaled Windows Feature on OS ###
PS C:\Users\Administrator> Get-WindowsFeature | Where-Object {$_. installstate -eq "installed"}

Display Name Name Install State
------------ ---- -------------
[X] File and Storage Services FileAndStorage-Services Installed
[X] Storage Services Storage-Services Installed
[X] Web Server (IIS) Web-Server Installed
[X] Web Server Web-WebServer Installed
[X] Common HTTP Features Web-Common-Http Installed
[X] Default Document Web-Default-Doc Installed
[X] Directory Browsing Web-Dir-Browsing Installed
[X] HTTP Errors Web-Http-Errors Installed
[X] Static Content Web-Static-Content Installed
[X] HTTP Redirection Web-Http-Redirect Installed
[X] Health and Diagnostics Web-Health Installed
[X] HTTP Logging Web-Http-Logging Installed
[X] Tracing Web-Http-Tracing Installed
[X] Performance Web-Performance Installed
[X] Static Content Compression Web-Stat-Compression Installed
[X] Security Web-Security Installed
[X] Request Filtering Web-Filtering Installed
[X] Basic Authentication Web-Basic-Auth Installed
[X] IP and Domain Restrictions Web-IP-Security Installed
[X] URL Authorization Web-Url-Auth Installed
[X] Windows Authentication Web-Windows-Auth Installed
[X] Application Development Web-App-Dev Installed
[X] .NET Extensibility 4.7 Web-Net-Ext45 Installed
[X] ASP Web-ASP Installed
[X] ASP.NET 4.7 Web-Asp-Net45 Installed
[X] CGI Web-CGI Installed
[X] ISAPI Extensions Web-ISAPI-Ext Installed
[X] ISAPI Filters Web-ISAPI-Filter Installed
[X] WebSocket Protocol Web-WebSockets Installed
[X] FTP Server Web-Ftp-Server Installed
[X] FTP Service Web-Ftp-Service Installed
[X] Management Tools Web-Mgmt-Tools Installed
[X] IIS Management Console Web-Mgmt-Console Installed
[X] IIS Management Scripts and Tools Web-Scripting-Tools Installed
[X] Management Service Web-Mgmt-Service Installed
[X] .NET Framework 4.7 Features NET-Framework-45-Fea... Installed
[X] .NET Framework 4.7 NET-Framework-45-Core Installed
[X] ASP.NET 4.7 NET-Framework-45-ASPNET Installed
[X] WCF Services NET-WCF-Services45 Installed
[X] TCP Port Sharing NET-WCF-TCP-PortShar... Installed
[X] System Data Archiver System-DataArchiver Installed
[X] Telnet Client Telnet-Client Installed
[X] Windows Defender Antivirus Windows-Defender Installed
[X] Windows PowerShell PowerShellRoot Installed
[X] Windows PowerShell 5.1 PowerShell Installed
[X] Windows PowerShell ISE PowerShell-ISE Installed
[X] WoW64 Support WoW64-Support Installed
[X] XPS Viewer XPS-Viewer Installed
 
The issue has been seen here before on one occasion, but we could not find a specific reason for it. The standard solution suggestion is:
Deploy a server from scratch, install Plesk on it anew (make sure to disable firewall and antivirus).

It could also be good to submit the issue to https://support.plesk.com so that an engineer can check it directly on your server and maybe find the cause.
 
Thanks for your reply.
I found where the problem is and how to reproduce it.
You get this error if you override your "applicationHost.config" from your old environment.
It was very unintuitive to find the reasons for this error since the ftpmng.exe application does not logically fit in with the applicationHost.config file.
As you say, the solution is to deploy a server from scratch, install Plesk, and configure all websites via Plesk, not manually via editing files.

Thanks any way.
 
Does this mean you copied applicationHost.config from another server to your current server?
 
So there is a setting in applicationHost.config that contains a value that is out of range. Whatever value that could be.
 
Back
Top