Jellyfin Forum
SOLVED: Access to the path is denied - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Access to the path is denied (/t-solved-access-to-the-path-is-denied)



Access to the path is denied - shagy1337 - 2023-12-31

Hello,
I am quite a bit out of my dept here. E.g. I have never used docker before.

I am trying to set up Jellyfin on Synology DS423, DSM 7.2.1
I used this guide for installation.
Libraries in Jellyfin are set up and pointed to the correct folders. But nothing is showing up in the libraries. And scanning doesn't seem to be able to start.

From what I see in the log, seem to be an access issue.
Here is the log

Code:
[2023-12-31 08:28:06.176 +00:00] [INF] [21] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.17.0.1" request
[2023-12-31 08:28:11.910 +00:00] [INF] [120] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Scan Media Library"
[2023-12-31 08:28:11.911 +00:00] [INF] [120] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2023-12-31 08:28:11.944 +00:00] [ERR] [122] Emby.Server.Implementations.Library.LibraryManager: Error running post-scan task
System.ArgumentException: Not enough valid pictures provided to create a splashscreen!
  at Jellyfin.Drawing.Skia.SplashscreenBuilder.GenerateCollage(IReadOnlyList`1 posters, IReadOnlyList`1 backdrops)
  at Jellyfin.Drawing.Skia.SplashscreenBuilder.GenerateSplash(IReadOnlyList`1 posters, IReadOnlyList`1 backdrops, String outputPath)
  at Jellyfin.Drawing.Skia.SkiaEncoder.CreateSplashscreen(IReadOnlyList`1 posters, IReadOnlyList`1 backdrops)
  at Emby.Server.Implementations.Library.SplashscreenPostScanTask.Run(IProgress`1 progress, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Library.LibraryManager.RunPostScanTasks(IProgress`1 progress, CancellationToken cancellationToken)
[2023-12-31 08:28:11.946 +00:00] [INF] [122] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 0 seconds
[2023-12-31 08:28:11.946 +00:00] [ERR] [120] Emby.Server.Implementations.IO.LibraryMonitor: Error in Directory watcher for: "/tvshows"
System.UnauthorizedAccessException: Access to the path '/tvshows' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
[2023-12-31 08:28:11.946 +00:00] [INF] [120] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/tvshows"
[2023-12-31 08:28:11.947 +00:00] [INF] [122] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2023-12-31 08:28:11.981 +00:00] [INF] [120] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/tvshows"
[2023-12-31 08:28:42.905 +00:00] [INF] [72] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Scan Media Library"
[2023-12-31 08:28:42.905 +00:00] [INF] [72] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2023-12-31 08:28:42.942 +00:00] [ERR] [96] Emby.Server.Implementations.Library.LibraryManager: Error running post-scan task
System.ArgumentException: Not enough valid pictures provided to create a splashscreen!
  at Jellyfin.Drawing.Skia.SplashscreenBuilder.GenerateCollage(IReadOnlyList`1 posters, IReadOnlyList`1 backdrops)
  at Jellyfin.Drawing.Skia.SplashscreenBuilder.GenerateSplash(IReadOnlyList`1 posters, IReadOnlyList`1 backdrops, String outputPath)
  at Jellyfin.Drawing.Skia.SkiaEncoder.CreateSplashscreen(IReadOnlyList`1 posters, IReadOnlyList`1 backdrops)
  at Emby.Server.Implementations.Library.SplashscreenPostScanTask.Run(IProgress`1 progress, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Library.LibraryManager.RunPostScanTasks(IProgress`1 progress, CancellationToken cancellationToken)
[2023-12-31 08:28:42.944 +00:00] [INF] [96] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 0 seconds
[2023-12-31 08:28:42.944 +00:00] [ERR] [115] Emby.Server.Implementations.IO.LibraryMonitor: Error in Directory watcher for: "/tvshows"
System.UnauthorizedAccessException: Access to the path '/tvshows' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
[2023-12-31 08:28:42.944 +00:00] [INF] [115] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/tvshows"
[2023-12-31 08:28:42.945 +00:00] [INF] [96] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2023-12-31 08:28:42.979 +00:00] [INF] [115] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/tvshows"




[Image: image.png]
[Image: image.png]


RE: Access to the path is denied - Efficient_Good_5784 - 2023-12-31

Are you using the scheduled task method or docker compose method from the guide you linked? Keep in mind with the container manager app, you can now use yaml files to launch apps.
Also, what the guide is showing you to do is something that can be done directly on the system shell. Synology has access to the shell with SSH turned off by default, but if you turn it on, you can SSH into your NAS and run the command directly. I don't understand why Synology units don't have an interface built in to directly access the shell from the main web GUI. The guide is showing that you can use the scheduled task feature to run a command like you normally would on a shell interface.

If you're doing the scheduled task method, try removing the whole -u flag line. It should put Jellyfin to run as root which should have access to all of your linked folders.
If this fixes the issue, then it's a permissions issue. The user you configured to the Jellyfin container doesn't have access to the folder. You'll have to remake the container with a user that does, or give the existing user permissions to access the folders you want.

A bit of a side note. If you want, I can explain how to create and launch a docker container using yaml files through the shell of your nas. You'll avoid having to make an automated task to launch the docker image. And since you can store yaml files, making changes to containers (or updating to a new image) is just editing an exiting yaml file instead of redoing a large docker run command each time.


RE: Access to the path is denied - shagy1337 - 2023-12-31

Thank you!
Removing the -u line worked!

yaml file way would be helpful. But i don't want you to go out of your way for that. Unless you have a guide ready to go.


RE: Access to the path is denied - Efficient_Good_5784 - 2023-12-31

I created a short guide for the yaml files: https://forum.jellyfin.org/t-guide-running-jellyfin-in-synology-s-dsm-7-using-docker-compose

Hope it helps.