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

logfile linuxserver/transmission docker #42

Open
isaacItz opened this issue Oct 15, 2023 · 1 comment
Open

logfile linuxserver/transmission docker #42

isaacItz opened this issue Oct 15, 2023 · 1 comment

Comments

@isaacItz
Copy link

Hi everyone,

does anyone know how to turn on --logfile flag on the docker image linuxserver/transmission?

I've been trying by several ways, but nothing so far

this is what i've tried:

  • add logfile to setttings.json:
    "logfile": "/tmp/transmission.log",
  • mount the edited file under: /run/service/svc-transmission/run
    but I'm getting this error when running the container (seems it's because /run is to store temporary files:
    s6-rmrf: fatal: unable to remove /run/s6: Resource busy
    s6-overlay-suexec: fatal: child failed with exit code 111
  • edited the cmd in docker compose:
    but seems because is using s6 supervisor and not the transmission daemon it does not recognise the --logfile flag

Has anyone been through this before? I would really appreciate some help.

@kevinhalpin
Copy link
Contributor

Hi everyone,

does anyone know how to turn on --logfile flag on the docker image linuxserver/transmission?

I've been trying by several ways, but nothing so far

this is what i've tried:

  • add logfile to setttings.json:
    "logfile": "/tmp/transmission.log",
  • mount the edited file under: /run/service/svc-transmission/run
    but I'm getting this error when running the container (seems it's because /run is to store temporary files:
    s6-rmrf: fatal: unable to remove /run/s6: Resource busy
    s6-overlay-suexec: fatal: child failed with exit code 111
  • edited the cmd in docker compose:
    but seems because is using s6 supervisor and not the transmission daemon it does not recognise the --logfile flag

Has anyone been through this before? I would really appreciate some help.

@isaacItz

Ive had issues with editing the settings.json file before. I think it was because I hadnt shut down the container before editing the settings.json file. The settings.json file has -rw------- permissions for me, so make sure that and ownership dont change when you edit the file.

If that doesnt work, you could try modifying the /usr/bin/transmission-daemon command the s6 supervisor calls.

Looks like that happens here: https://github.com/linuxserver/docker-transmission/blob/548d62e5fe5100ee6a1db950f6ed3ed1fac7fab9/root/etc/s6-overlay/s6-rc.d/svc-transmission/run#L7-L8

Then rebuild the image manually and see if that gets it to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants