linuxserver / docker-transmission

GNU General Public License v3.0
594 stars 186 forks source link

[BUG] Configuration options do not persist #289

Closed eusousu closed 3 weeks ago

eusousu commented 1 month ago

Is there an existing issue for this?

Current Behavior

When I change some option on config/settings.json, if I restart the container the options are overridden.

What is the purpose of mounting the option file if I cannot change it?

Expected Behavior

Changes made to config file should persist

Steps To Reproduce

  1. Start Container
  2. nano ./config/settings.json
  3. Change anything
  4. restart container

Environment

- OS: Debian 6.1.99-1 (2024-07-15) x86_64
- How docker service was installed: Docker compose

CPU architecture

x86-64

Docker creation

services:
  transmission:
    image: lscr.io/linuxserver/transmission:latest
    container_name: transmission
    environment:
      - PUID=107
      - PGID=118
      - TZ=America/Sao_Paulo
      - USER=***
      - PASS=***
    volumes:
      - ./config:/config
      - /srv/torrent/downloads:/downloads
      - /srv/torrent/watch:/watch
    ports:
      - 9091:9091
      - 51413:51413
      - 51413:51413/udp
    restart: unless-stopped

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    107
User GID:    118
───────────────────────────────────────
Linuxserver.io version: 4.0.6-r0-ls257
Build-date: 2024-09-17T10:36:34+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!
[ls.io-init] done.
localhost:9091/transmission/rpc/ responded: success
s6-supervise svc-transmission: warning: finish script lifetime reached maximum value - sending it a SIGKILL
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    107
User GID:    118
───────────────────────────────────────
Linuxserver.io version: 4.0.6-r0-ls257
Build-date: 2024-09-17T10:36:34+00:00
───────────────────────────────────────

ln: failed to create symbolic link '/transmissionic/index.html': File exists
ln: failed to create symbolic link '/combustion-release/index.html': File exists
ln: failed to create symbolic link '/flood-for-transmission/index.html': File exists
ln: failed to create symbolic link '/kettu/index.html': File exists
ln: failed to create symbolic link '/transmission-web-control/index.html': File exists
[custom-init] No custom files found, skipping...
Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!
[ls.io-init] done.
localhost:9091/transmission/rpc/ responded: success
Closing transmission session... done.
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    107
User GID:    118
───────────────────────────────────────
Linuxserver.io version: 4.0.6-r0-ls257
Build-date: 2024-09-17T10:36:34+00:00
───────────────────────────────────────

ln: failed to create symbolic link '/transmissionic/index.html': File exists
ln: failed to create symbolic link '/combustion-release/index.html': File exists
ln: failed to create symbolic link '/flood-for-transmission/index.html': File exists
ln: failed to create symbolic link '/kettu/index.html': File exists
ln: failed to create symbolic link '/transmission-web-control/index.html': File exists
[custom-init] No custom files found, skipping...
Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!
[ls.io-init] done.
github-actions[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 1 month ago

You should be changing it while the container is stopped but also make sure you aren't changing the ownership/permissions of the file.

eusousu commented 1 month ago

Oh, it worked. Thanks!

Could it be added to the https://hub.docker.com/r/linuxserver/transmission page somewhere?

njoyard commented 1 month ago

It is already present (under "Application Setup")

drizuid commented 3 weeks ago

Could it be added to the https://hub.docker.com/r/linuxserver/transmission page somewhere?

As mentioned by njoyard in https://github.com/linuxserver/docker-transmission/issues/289#issuecomment-2397875211 the note is already there and has been for numerous years. closing.