Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Banks 7 posts 77 karma points
    Jun 05, 2018 @ 10:05
    David Banks
    0

    Access to the path 'C:\inetpub\Umbraco\App_Data\TEMP\PluginCache' is denied.

    I'm running Umbraco in a Docker container (Windows). When I run it for the first time I get a Yellow Screen of Death:

    Access to the path 'C:\inetpub\Umbraco\App_Data\TEMP\PluginCache' is denied.
    

    I've given the AppPool user FullControl, it is also the owner of the directory and checked this with Get-Acl:

    >docker container exec f powershell Get-Acl "C:\inetpub\Umbraco\App_Data"
    
    
        Directory: C:\inetpub\Umbraco
    
    
    Path     Owner                       Access
    ----     -----                       ------
    App_Data F4BD33BA517F\UmbracoAppPool CREATOR OWNER Allow  268435456...
    

    Checking with dir the TEMP directory doesn't exist, App_Data is empty. It might be that creating this directory failed earlier.

    What extra step do I need to perform?

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Aug 01, 2024 @ 20:06
    Biagio Paruolo
    0

    Hi,

    you have to setup the permissions on the folder. Try this in docker file:

    Run section:

    WORKDIR /app COPY --from=publish /app/publish . USER root RUN chown -R $APPUID:$APPUID /app USER $APP_UID ENTRYPOINT ["dotnet", "ssss.dll"]

  • girish 23 posts 116 karma points
    Aug 02, 2024 @ 06:48
    girish
    0

    It sounds like there might be an issue with the permissions or the creation of the TEMP directory within your Docker container. Here are a few steps you can take to troubleshoot and resolve this issue:

    1. Ensure TEMP Directory Exists: Ensure that the TEMP directory exists. You can create it manually if it doesn't exist. Run the following command inside your Docker container:

      sh docker exec -it <container_name> powershell mkdir -p "C:\inetpub\Umbraco\App_Data\TEMP"

    2. Set Permissions on the TEMP Directory: After creating the TEMP directory, ensure that the permissions are correctly set. You can use the following PowerShell commands to set the appropriate permissions:

      sh docker exec -it <container_name> powershell $acl = Get-Acl "C:\inetpub\Umbraco\App_Data\TEMP" $ar = New-Object System.Security.AccessControl.FileSystemAccessRule("IIS AppPool\UmbracoAppPool", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow") $acl.SetAccessRule($ar) Set-Acl "C:\inetpub\Umbraco\App_Data\TEMP" $acl

    3. Verify Permissions: Verify the permissions on the TEMP directory to ensure they are correctly applied. You can use the following command:

      sh docker exec -it <container_name> powershell Get-Acl "C:\inetpub\Umbraco\App_Data\TEMP"

    4. Check Dockerfile and Docker Compose: Ensure your Dockerfile or Docker Compose configuration is not overriding permissions or deleting directories on container startup.

    5. Review AppPool Identity: Make sure the application pool identity running Umbraco inside the Docker container has the correct permissions. You can set it to use a specific user account if needed.

    6. Rebuild the Docker Container: Sometimes, rebuilding the Docker container can help apply all the changes correctly. Use the following commands to rebuild:

      sh docker-compose down docker-compose up --build

    By following these steps, you should be able to resolve the permission issue and ensure that the TEMP directory is correctly created and accessible by the Umbraco application.

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Aug 02, 2024 @ 07:31
    Biagio Paruolo
    1

    HI, I solved with permission in the Docker file. Other problem with Docker and Umbraco is the SSL and System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies