Instantly crashing synology NAS Docker #166

Closed
opened 2026-02-06 19:23:04 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @deten on GitHub (Dec 29, 2018).

Here's my docker run command to create the container:

docker run -d \
    --name=jellyfin-emby-unlocked \
    --net=host \
    --user $XXXX:$XXX \
    -p 8096:8096 \
    -v /volume2/video/TestEmby:/config \
    -v /volume2/video:/media \
    jellyfin/jellyfin

Heres the log:


Unhandled   Exception: System.AggregateException: One or more errors occurred. (Access to   the path '/config/logs/server-63681661975.txt' is denied.) --->   System.UnauthorizedAccessException: Access to the path   '/config/logs/server-63681661975.txt' is denied. --->   System.IO.IOException: Permission denied
--
--- End of inner exception stack trace ---
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess   access, FileShare share, Int32 bufferSize, FileOptions options)
at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)   in /repo/Emby.Server.Implementations/Logging/SimpleLogManager.cs:line 172
at   Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSeverity   severity, CancellationToken cancellationToken) in   /repo/Emby.Server.Implementations/Logging/SimpleLogManager.cs:line 52
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32   millisecondsTimeout, CancellationToken cancellationToken)
at MediaBrowser.Server.Mono.MainClass.Main(String[] args)
Aborted


Originally created by @deten on GitHub (Dec 29, 2018). Here's my docker run command to create the container: ``` docker run -d \ --name=jellyfin-emby-unlocked \ --net=host \ --user $XXXX:$XXX \ -p 8096:8096 \ -v /volume2/video/TestEmby:/config \ -v /volume2/video:/media \ jellyfin/jellyfin ``` Heres the log: ``` Unhandled Exception: System.AggregateException: One or more errors occurred. (Access to the path '/config/logs/server-63681661975.txt' is denied.) ---> System.UnauthorizedAccessException: Access to the path '/config/logs/server-63681661975.txt' is denied. ---> System.IO.IOException: Permission denied -- --- End of inner exception stack trace --- at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Emby.Server.Implementations.Logging.FileLogger..ctor(String path) in /repo/Emby.Server.Implementations/Logging/SimpleLogManager.cs:line 172 at Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSeverity severity, CancellationToken cancellationToken) in /repo/Emby.Server.Implementations/Logging/SimpleLogManager.cs:line 52 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at MediaBrowser.Server.Mono.MainClass.Main(String[] args) Aborted ```
Author
Owner

@sparky8251 commented on GitHub (Dec 29, 2018):

Try:

docker run -d \
    --name=jellyfin-emby-unlocked \
    --net=host \
    -e UID=XXXX \
    -e GUID=XXXX \
    -p 8096:8096 \
    -v /volume2/video/TestEmby:/config \
    -v /volume2/video:/media \
    jellyfin/jellyfin

The --user and --group switches are deprecated and there is even a check on line 16 and 17 of the dockerfile that should've killed the container if you used them.

It's looking like the user and group aren't setting so the server cannot access its old files. The above should make it run as the specific user/group.

@sparky8251 commented on GitHub (Dec 29, 2018): Try: ``` docker run -d \ --name=jellyfin-emby-unlocked \ --net=host \ -e UID=XXXX \ -e GUID=XXXX \ -p 8096:8096 \ -v /volume2/video/TestEmby:/config \ -v /volume2/video:/media \ jellyfin/jellyfin ``` The `--user` and `--group` switches are deprecated and there is even [a check on line 16 and 17 of the dockerfile](https://github.com/jellyfin/jellyfin/blob/master/Dockerfile) that should've killed the container if you used them. It's looking like the user and group aren't setting so the server cannot access its old files. The above should make it run as the specific user/group.
Author
Owner

@deten commented on GitHub (Dec 29, 2018):

Solved using your -e UID and -e GUID format

@deten commented on GitHub (Dec 29, 2018): Solved using your -e UID and -e GUID format
Author
Owner

@fuomag9 commented on GitHub (Aug 12, 2021):

I confirm that removing the --user option fixed my issue for me as well

@fuomag9 commented on GitHub (Aug 12, 2021): I confirm that removing the --user option fixed my issue for me as well
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#166