Transmission - permission issue?

Hello All,

I'm strugling for weeks now with a transmission issue on my Asus AC65P device (22.03.0-rc6).
Everything else is working fine (samba,dlna,etc.)
USB device is mounted:

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   122.4M      4.7M    117.6M   4% /tmp
/dev/ubi0_1              32.8M     18.5M     12.6M  59% /overlay
overlayfs:/overlay       32.8M     18.5M     12.6M  59% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               686.6G    348.2G    303.5G  53% /mnt

If I run the service with the transmission user than I receive permssion errors mostly:

Fri Sep 23 09:03:48 2022 daemon.err transmission-daemon[6217]: [2022-09-23 09:03:48.078] Unable to create session lock file (2): No such file or directory (session-id.c:96)
Fri Sep 23 09:07:00 2022 user.info : luci: accepted login on / for root from 192.168.3.170
Fri Sep 23 09:08:16 2022 user.notice transmission: Starting with 125310000 virt mem
Fri Sep 23 09:08:17 2022 daemon.err transmission-daemon[6217]: [2022-09-23 09:08:17.429] Couldn't save file "/mnt/transmission/settings.json": Resource busy (variant.c:1226)
Fri Sep 23 09:08:18 2022 daemon.err transmission-daemon[22344]: [2022-09-23 09:08:18.858] Couldn't save temporary file "/mnt/transmission/settings.json.tmp.XXXXXX": Permission denied (variant.c:1235)
Fri Sep 23 09:08:18 2022 daemon.err transmission-daemon[22344]: [2022-09-23 09:08:18.858] watchdir:inotify Failed to setup watchdir "/mnt/queue": No such file or directory (2) (watchdir-inotify.c:171)
Fri Sep 23 09:08:18 2022 daemon.err transmission-daemon[22344]: [2022-09-23 09:08:18.859] Couldn't read "/mnt/transmission/torrents/d8f021d918be42106fba3031b49466cf770015aa.torrent": Permission denied (utils.c:286)
Fri Sep 23 09:08:18 2022 daemon.err transmission-daemon[22344]: [2022-09-23 09:08:18.859] watchdir Failed to open directory "/mnt/queue" (2): No such file or directory (watchdir.c:358)

But the permission looks fine :

'root@OpenWrt:/mnt# ls -l
drwxrwxrwx   20 transmis transmis      4096 Sep 20 19:05 download
drwxrwxrwx    2 transmis transmis      4096 Sep 18 19:38 incomplete
drwxrwxrwx    2 root     root         16384 Jan 15  2022 lost+found
drwxrwxrwx    2 transmis root          4096 Sep 18 16:40 queue
drwxrwxrwx    5 transmis transmis      4096 Sep 18 16:38 transmission
root@OpenWrt:/mnt# cd transmission/
root@OpenWrt:/mnt/transmission# ls -l
drwxrwxrwx    2 transmis transmis      4096 Sep 18 16:38 blocklists
drwxrwxrwx    2 transmis transmis      4096 Sep 18 19:42 resume
-rwxrwxrwx    1 transmis transmis      1407 Sep 23 09:08 settings.json
-rwxrwxrwx    1 transmis transmis         0 Sep 18 16:38 stats.json
drwxrwxrwx    2 transmis transmis      4096 Sep 18 19:42 torrents
'

If I try to run transmission as root than I get errors like :
"no space left on the device"

> Fri Sep 23 09:21:45 2022 daemon.err transmission-daemon[23106]: [2022-09-23 09:21:45.578] Couldn't preallocate file "/mnt/incomplete/whatever.mp4.part" (sparse, size: 731995864): No space left on device (fdlimit.c:219)
> Fri Sep 23 09:21:45 2022 daemon.err transmission-daemon[23106]: [2022-09-23 09:21:45.578] whateverUFO971 tr_fdFileCheckout failed for "/mnt/incomplete/whatever.mp4.part": No space left on device (inout.c:95)
> Fri Sep 23 09:21:45 2022 daemon.err transmission-daemon[23106]: [2022-09-23 09:21:45.579] whateverUFO971 No space left on device (/mnt/download/whatever(torrent.c:574)
> Fri Sep 23 09:21:45 2022 daemon.err transmission-daemon[23106]: [2022-09-23 09:21:45.579] Couldn't preallocate file "/mnt/incomplete/whatever.part" (sparse, size: 3673855658): No space left on device (fdlimit.c:219)
> Fri Sep 23 09:21:45 2022 daemon.err transmission-daemon[23106]: [2022-09-23 09:21:45.579] whatever tr_fdFileCheckout failed for "/mnt/incomplete/whatever.part": No space left on device (inout.c:95)
> Fri Sep 23 09:21:49 2022 daemon.err transmission-daemon[23106]: [2022-09-23 09:21:49.578] watchdir Failed to open directory "/mnt/queue" (2): No such file or directory (watchdir.c:358)

What am I missing? Any ideas?
Thanks,
Alex.

what about df -kh /mnt, and ls -ld /mnt ?

root@OpenWrt:~# df -kh /mnt
Filesystem                Size      Used Available Use% Mounted on
/dev/sda1               686.6G    348.2G    303.5G  53% /mnt
root@OpenWrt:~# ls -ld /mnt
drwxrwxrwx    7 root     root          4096 Sep 18 16:40 /mnt

:frowning_face: :slightly_frowning_face:
no ideas guys?

I have it sort of working by using the default configuration and only changing the download location and disabling encryption.

If I change other options it's breaks.

I did chat with the package maintainer but as it works for him I didn't get anywhere.

Hi, thanks for the hints.
By disabling watch/incomplete directory and also encryption, it seems to work (as root).
I still get some errors in the eventlog but the download is working .
I think I can live with this.

1 Like