Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change LOG file path ENV seems to be set #149

Closed
Devveh2000 opened this issue Mar 22, 2022 · 3 comments
Closed

Unable to change LOG file path ENV seems to be set #149

Devveh2000 opened this issue Mar 22, 2022 · 3 comments

Comments

@Devveh2000
Copy link

linuxserver.io


Expected Behavior

When passing -e JELLYFIN_LOG_DIR=path - this gets overwritten by the default path
Jellyfin supports --logdir as a flag which takes precident over the ENV variable being changed but this doesn't seem to be supported in the image

Current Behavior

JELLYFIN_LOG_DIR remains as /config/log

Steps to Reproduce

  1. Run docker with -e JELLYFIN_LOG_DIR=/newpath
  2. Docker logs show the path does not change

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

x86_64 - docker installed through unraid using lscr.io/linuxserver/jellyfin

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name='jellyfin' --net='bridge' -e TZ="Europe/London" -e HOST_OS="Unraid" -e 'JELLYFIN_PublishedServerUrl'='x.x.x.x' -e 'JELLYFIN_LOG_DIR'='/mnt/user/logFiles/jellyfinLog' -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -p '8096:8096/tcp' -p '8920:8920/tcp' -p '7359:7359/udp' -p '1900:1900/udp' -v '/mnt/user/Media/TV Shows/':'/data/tvshows':'rw' -v '/mnt/user/Media/Movies/':'/data/movies':'rw' -v '/mnt/user/Media/4K Movie/':'/data/4K':'rw' -v '/mnt/user/logFiles/jellyfinLog':'/jellyfinLog':'rw' -v '/mnt/user/appdata/jellyfin':'/config':'rw' --device=/dev/dri 'lscr.io/linuxserver/jellyfin'

Docker logs

[09:09:56] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_PublishedServerUrl, x.x.x.x]", "[JELLYFIN_LOG_DIR, /config/log]"]
[09:09:56] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg", "--webdir=/usr/share/jellyfin/web"]

@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@j0nnymoe
Copy link
Member

/mnt/user/logFiles/jellyfinLog will mean nothing to jellyfin as it won't know that folder within the container. Also, I don't believe that variable will work with our container.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants