Symptoms
-
When applying subscription settings (e.g. in Hosting Settings, PHP Settings, etc.), the operation fails with:
PLESK_ERROR: Error: ProtDirUser_IIS::update() failed: Update Protected Directory #5 user failed: User ‘john_doe’ doesn’t exist. (Error code 1)
PLESK_ERROR: Error: ProtDirUser_IIS::update() failed: Update Protected Directory #5 user failed: URL ‘/plesk-stat’ is not protected In IIS7NativeProvider module
PLESK_ERROR: Error: ProtDirUser_IIS::update() failed: Add Protected Directory user failed: Url ‘plesk-stat’ is not protected.
-
A backup restoration finishes with the warning:
PLESK_INFO: Warning: Restore domain “example.com”
Execution of “C:Program Files (x86)ParallelsPleskbindomain.exe” –update example.com <…> failed with return code 1. Stderr is An error occurred during domain update: An error occurred during changing of hosting settings: ProtDirUser_IIS::update() failed: Update Protected Directory #401 user failed: URL ‘/plesk-stat’ is not protected In IIS7NativeProvider module Exception type: System.Exception at ProtectedUrls.get(ProtectedUrls* , unique_ptr* , basic_string* path) at updateProtectedUrlUser(example.com, /plesk-stat, john_doe, ) <…>
Cause
The database of protected directories is corrupted.
Resolution
-
Connect to the Plesk server via RDP.
-
Synchronize password-protected directories data:
C:> “%plesk_cli%repair.exe” –synchronize-protected-directories-storage
-
Retry to save subscription settings or restore a backup.
If the operation fails with the same error message, recreate password-protected directories for the faulty domains:
-
Go to Domians > example.com > Password-protected directories.
-
Select a password-protected directory and click Remove Protection.
-
Once removed, click Add Protected Directory and add the removed directory back.