Hi all!
I've installed transmission-daemon with Docker, everything works fine except when I change some settings in the web page. After reboot, it takes the default settings, overwriting all of my custom config.
What can I do?
Hi all!
I've installed transmission-daemon with Docker, everything works fine except when I change some settings in the web page. After reboot, it takes the default settings, overwriting all of my custom config.
What can I do?
Depends how you are running your container. You need to use a persistent volume mount to be able to have your settings be saved.
see, transmission.service
specifically, transmission.service#L19
so when the container is stopped you should have a /storage/transmission/config/settings.json that will be persistent.
I've got that file, but when I try to edit settings from web interface it will return default settings
Same problem here, even with stopping the transmission client, editing the json file, and starting it again, it just reverts to the original settings.
Plus, I can't seem to see the downloaded files in their directory? Very strange. The files are completed and seeding, yet I can't see the files in the directory, as if they are hidden.
I've made it work using the milhouse version of Transmission instead of the weirdly configured Docker one using this instructions here: LibreELEC
Same problem here, even with stopping the transmission client, editing the json file, and starting it again, it just reverts to the original settings.Plus, I can't seem to see the downloaded files in their directory? Very strange. The files are completed and seeding, yet I can't see the files in the directory, as if they are hidden.
I know it's late, but in case others face the same problem:
- check the main thread here: LibreELEC
- the jason file (should be /storage/transmission/config/settings.json) contains the password (you can change the password here)
- don't pay attention to directories showed in the transmission web client
- other settings, for example directories, have to be done in the service file (transmission.service)
In my case the transmission.service is here --> /storage/.config/system.d/transmission.service and this is the content:
[Unit]
Description=%p container
Requires=service.system.docker.service
After=service.system.docker.service[Service]
Restart=always
RestartSec=10s
TimeoutStartSec=0
ExecStartPre=-/bin/sh -c "mkdir -p /media/New_Volume/%p/watch /media/New_Volume/%p/downloads /media/New_Volume/%p/incomplete /storage/%p/config"
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run \
--rm \
--name=%p \
--hostname=libreelec-%p \
--volume=/media/New_Volume/%p/watch:/watch \
--volume=/media/New_Volume/%p/downloads:/downloads \
--volume=/media/New_Volume/%p/incomplete:/incomplete \
--volume=/storage/%p/config:/config \
--publish=9091:9091 \
--publish=51413:45555 \
timhaak/%p
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop %p[Install]
WantedBy=multi-user.target
- %p stands for "transmission"
- in my case it is an external usb drive
- don't put spaces in the path
...or just use the milhouse version mentioned in the previous post, so you don't have to do anything and it just works without any trouble whatsoever
Hi,
I get errors when I do systemctl start transmission.service
Please help.
Error and service files as follows:
transmission.service - transmission container
Loaded: [[0;1;31merror[[0m (Reason: Invalid argument)
Active: inactive (dead)
Feb 06 13:41:07 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:8] Unknown lvalue 'ExecStartPre' in section 'Unit'[[0m
Feb 06 13:41:07 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:9] Unknown lvalue 'ExecStart' in section 'Unit'[[0m
Feb 06 13:41:07 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:10] Unknown lvalue 'ExecStop' in section 'Unit'[[0m
Feb 06 13:41:07 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:11] Unknown lvalue 'WantedBy' in section 'Unit'[[0m
Feb 06 13:41:07 Box systemd[1]: [[0;1;31mtransmission.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;31m[/storage/.config/system.d/transmission.service:4] Failed to add dependency on service.system.docker.service[Servic
e], ignoring: Invalid argument[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:5] Unknown lvalue 'Restart' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:6] Unknown lvalue 'RestartSec' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:7] Unknown lvalue 'TimeoutStartSec' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:8] Unknown lvalue 'ExecStartPre' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:9] Unknown lvalue 'ExecStart' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:10] Unknown lvalue 'ExecStop' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;39m[/storage/.config/system.d/transmission.service:11] Unknown lvalue 'WantedBy' in section 'Unit'[[0m
Feb 06 13:41:16 Box systemd[1]: [[0;1;31mtransmission.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.[[0m
Display More
The contents of my service file are as below:
[Unit]
Description=transmission container
Requires=service.system.docker.service
After=service.system.docker.service[Service]
Restart=always
RestartSec=10s
TimeoutStartSec=0
ExecStartPre=-/bin/sh -c "mkdir -p /storage/.kodi/userdata/.apps/transmission"
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run --rm --net=host -d \
--name=transmission \
--hostname=libreelec-transmission \
--volume=/var/media/Data/Downloads:/watch \
--volume=/var/media/Data/Downloads:/downloads \
--volume=/var/media/Data/Downloads/Incomplete:/incomplete \
--volume=/storage/.kodi/userdata/.apps/transmission:/config \
--publish=9091:9091 \
--publish=51413:45555 \
timhaak/transmission
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop transmission[Install]
WantedBy=multi-user.target
Display More
Missing line break before [Service]?
Gerald
Even I can't get the settings to survive a reboot. Not just the settings, even the downloaded content starts from 0% after restart.
My config folder is in /storage/.kodi/userdata and the downloads folder is on a hard disk in the box permanently hooked up.
Try this, no Docker involved
GitHub - thoradia/thoradia: Add-ons for LibreELEC