Hi,
I've updated my router firmware to 22.03.5 and installed transmission-daemon - 3.00-18.
After starting a download I've faced the "access denied error" first, then after switching transmission user to root the error has been changed to "No space left on device".
It was only happening for larger torrents (2GB+)
After many tricks to fix it (even reinstalling router firmware and formatting my USB extroot disk - without any success) I've disabled the 'incomplete_dir' option... and the download started to work!
So I assume something is wrong with handling the incomplete_dir parameter and my setting is ignored, ending up with the daemon trying to download the files to some default /etc/var (?) directory which is on a partition that can't fit it.
Where can I report this bug? Should I contact the transmission developers or someone else is working on the Openwrt package to adapt it to router OS?
Download failed after ~200-250 MB so transmission tried to save it to /tmp dir probably
Transmission config takes these 2 parameters download_dir - where to move files after finished downloading incomplete_dir - where to save files while downloading
But when I output the flag value using echo "incomplete dir enabled value = $incomplete_dir_enabled" the scripts prints incomplete dir enabled value = false
Should this work this way or the script is broken and should check if variable is false instead of 0 ?
@neheb Something is wrong with the init.d script as when I used service transmission start it hasn't even created resume, blocklists, torrents dirs and stats.json file.
My problems were fixed when I've started the transmission-daemon manually providing -g parameter (and --log-debug --logfile params too).
Isn't that something which is natural that sevice is enabled ? When I call service transmission start isn't that enough to have everything working as expected?
I have set the transmission config in /etc/config/transmission to run as root and I'll keep it this way until the problem is fixed.
Ah so you meant not the service being enabled ( by command service transmission enable) but if the /etc/config/transmission parameter enabled is set to true. As you can see in my previous post it is.
I really can't reproduce the issue.
Just installed it, and it starts if enabled, dir gets created in /tmp, but you can simply softlink it elsewhere ...
Only thing you seem to have deleted, is the rpc port param, which is also the port for the transmission webui (unless there's a default specified elsewhere).
it appears to, but I had to modify the /etc/init.d/transmission and add procd_add_jail_mount_rw "$config_dir/incomplete" to the list of dirs,
below line procd_add_jail transmission log, around row 160.
I don't know what this command exactly does but I've added it this way to my /etc/init.d/transmission and now I can see that the file is downloaded correctly and saved to the incomplete dir in the meantime.
jail is a way of isolating processes from each other, and only providing access to resources they require.
the incomplete dir probably wasn't added, since it's not a part of the default config in openwrt.
btw, the issue's already reported in https://github.com/openwrt/packages/issues/19403
I would suggest you add your solution to the ticket, it's prettier than the one provided here (same as in the ticket).