Applicable to:
- Plesk for Windows
Symptoms
-
Backup completes with warnings:
WARNING: (domain object 'example.com') [e4404190-b0b5-425e-a309-500e258cfe97]: Unable to get attributes of the file C:\Inetpub\vhosts\example.com\httpdocs\img\originais\photo.jpg: Access is denied. The file will not be archived. [:0]
-
The following error can be found in %plesk_dir%admin\conf\php_error.log:
psacontentfile.FileAccessException: Can not open for reading file "C:/Inetpub/vhosts\example.com\httpdocs/file.jpg". Access to the path 'C:\Inetpub\vhosts\example.com\httpdocs/file.jpg' is denied.
-
System user of a subscription does not have access to this file:
PS Get-Acl C:\Inetpub\vhosts\example.com\httpdocs\file.jpg | Format-List
Path : Microsoft.Powershell.Core\FileSystem::C:\Inetpub\vhosts\example.com\httpdocs\file.jpg
Owner : WIN-TESTWM\S-1-5-21-2700000000-1230000000-1950000000-1084
Group : WIN-TESTWM\None
Access : NT AUTHORITY\SYSTEM 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
Comments
0 comments
Please sign in to leave a comment.