I’ve followed the steps exactly as they are given in the link above. The docker container logs doesn’t provide me with any information either, part from one thing:
2025-03-24 19:15:42 [18:15:42 WRN] Storing keys in a directory ‘/home/app/.aspnet/DataProtection-Keys’ that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to Data Protection configuration in ASP.NET Core
2025-03-24 19:15:43 [18:15:43 INF] Starting recurring background jobs hosted services
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for OpenIddictCleanupJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for HealthCheckNotifierJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for LogScrubberJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for ContentVersionCleanupJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for ScheduledPublishingJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for TempFileCleanupJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for TemporaryFileCleanupJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for InstructionProcessJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for TouchServerJob
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for WebhookFiring
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for WebhookLoggingCleanup
2025-03-24 19:15:43 [18:15:43 INF] Starting background hosted service for ReportSiteJob
2025-03-24 19:15:43 [18:15:43 INF] Completed starting recurring background jobs hosted services
2025-03-24 19:15:43 [18:15:43 INF] Now listening on: http://[::]:8080
2025-03-24 19:15:43 [18:15:43 INF] Application started. Press Ctrl+C to shut down.
2025-03-24 19:15:43 [18:15:43 INF] Hosting environment: Development
2025-03-24 19:15:43 [18:15:43 INF] Content root path: /app
2025-03-24 19:16:20 [18:16:20 INF] Checking if FilePermissionsStep requires execution
2025-03-24 19:16:20 [18:16:20 INF] Running FilePermissionsStep
2025-03-24 19:16:20 [18:16:20 ERR] Failed FilePermissionsStep, with the message: Permission check failed:
2025-03-24 19:16:20 Folder creation: /wwwroot/css, /wwwroot/media
2025-03-24 19:16:20 File writing for packages:
2025-03-24 19:16:20 File writing:
2025-03-24 19:16:20 Media folder creation: /app/wwwroot/media
It does say something about a FilePermissionStep that’s failing. Is this related perhaps?
I had a problem in my DockerFile as well, I think. I now have these lines in there to make sure I set the correct permissions:
RUN chown $APP_UID umbraco --recursive
RUN chown $APP_UID wwwroot/media --recursive
I’ll post the last bit of my DockerFile as I made a few changes from the default there:
# We need to make sure that the user running the app has write access to the umbraco folder, in order to write logs and other files.
# Since these are volumes they are created as root by the docker daemon.
USER root
RUN mkdir umbraco
RUN mkdir umbraco/Data
RUN mkdir umbraco/Data/TEMP
RUN mkdir umbraco/Logs
RUN mkdir wwwroot/media
RUN chown $APP_UID umbraco --recursive
RUN chown $APP_UID wwwroot/media --recursive
USER $APP_UID
ENTRYPOINT ["dotnet", "MySite.dll"]
Now that I think about it; the Umbraco 15 dotnet templates package (Umbraco.Templates) has a Dockerfile template in there as well. I think that also has some code like @sebastiaan mentioned for this exact issue.
I applied the changes you’ve made, but im still getting the same outcome sadly.
I removed all the images I had and built everything up again but I cannot get umbraco to install.
And the logs are still the same as before the changes:
2025-03-25 18:30:21 [17:30:21 INF] Checking if FilePermissionsStep requires execution
2025-03-25 18:30:21 [17:30:21 INF] Running FilePermissionsStep
2025-03-25 18:30:21 [17:30:21 ERR] Failed FilePermissionsStep, with the message: Permission check failed:
2025-03-25 18:30:21 Folder creation: /wwwroot/css
2025-03-25 18:30:21 File writing for packages:
2025-03-25 18:30:21 File writing:
2025-03-25 18:30:21 Media folder creation:
have you made changes to your docker-compose file as well?