- Plesk for Windows
FTP users are not able to connect with the following error:
Connected to example.com (203.0.113.2).
220 Microsoft FTP Service
Name (example.com): user
331 Password required
530 User cannot log in, home directory inaccessible.
Remote system type is Windows_NT.
Status: Insecure server, it does not support FTP over TLS.
Command: USER johndoe
Response: 331 Password required
Command: PASS ********
Response: 530 User cannot log in, home directory inaccessible.
Error: Critical error: Could not connect to server
FTP user is absent in the IIS > Sites > 203.0.113.2 > localuser or there is no such FTP site at all.
The following message can be seen while executing
plesk repair ftpcommand:
plesk repair ftp
The junction 'C:\vhosts\Servers\1\localuser\username' does not exist ............................................................. [ERROR]
Misconfiguration of the FTP websites and FTP users.
Log into the server via RDP.
Execute the following command via the command line:
plesk repair ftp -y
Note: There is a probability, that the issue is resolved completely by this command. Check FTP access once again. In case the issue will persist, proceed further with the resolution.
Execute the following command via the command line in order to re-create the FTP site and users in IIS:
"%plesk_cli%\repair.exe" --reconfigure-ftp-site -webspace-name example.com
"%plesk_cli%\repair.exe" --repair-webspace-system-users -webspace-name example.com
- Retrieve a list of all subscriptions:
plesk bin subscription -l > C:\domains.txt
Change your directory to
Execute the repair.exe utility for all domains:
for /f "tokens=*" %d in ('type C:\domains.txt') do repair.exe --reconfigure-ftp-site -webspace-name %d
for /f "tokens=*" %d in ('type C:\domains.txt') do repair.exe --repair-webspace-system-users -webspace-name %d