Articles in this section

Plesk backup completed with warning: psacontentfile.FileAccessException Access to the path is denied

Plesk for Windows kb: technical ABT: Group A

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:
    mceclip0.png

Cause

Wrong permissions for domain files.

Resolution

  1. Connect to the server via RDP

  2. Open a PowerShell window as administrator

  3. Repair permissions for the affected subscription:

    PS plesk repair --repair-webspace-security -all-filesystem-objects -webspace-name example.com

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.