Symptoms
-
Backup completes with warnings:
WARNING: (domain object 'example.com') [e4404190-b0b5-425e-a309-500e258cfe97]: Unable to get attributes of the file C:Inetpubvhostsexample.comhttpdocsimgoriginaisphoto.jpg: Access is denied. The file will not be archived. [:0]
-
The following error can be found in %plesk_dir%adminconfphp_error.log:
psacontentfile.FileAccessException: Can not open for reading file "C:/Inetpub/vhostsexample.comhttpdocs/file.jpg". Access to the path 'C:Inetpubvhostsexample.comhttpdocs/file.jpg' is denied.
-
System user of a subscription does not have access to this file:
PS Get-Acl C:Inetpubvhostsexample.comhttpdocsfile.jpg | Format-List
Path : Microsoft.Powershell.CoreFileSystem::C:Inetpubvhostsexample.comhttpdocsfile.jpg
Owner : WIN-TESTWMS-1-5-21-2700000000-1230000000-1950000000-1084
Group : WIN-TESTWMNone
Access : NT AUTHORITYSYSTEM Allow FullControl
Audit :
<...> -
Website prompting for credentials when the dedicated application pool is enabled in Domains > example.com > Dedicated IIS App pool for website > Switch on.
-
Failed requests tracing shows that there are Access is denied records for some domain's files:
Cause
Wrong permissions for domain files.
Resolution
-
Connect to the server via RDP
-
Open a PowerShell window as administrator
-
Repair permissions for the affected subscription:
PS plesk repair --repair-webspace-security -all-filesystem-objects -webspace-name example.com