transmission-daemon: permission denied problems
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @dangowrt
Environment: OpenWRT x86_64 snapshot
Description:
transmission-daemon failed to read/write directories that are configured in the config file :
Sat Jul 23 21:34:28 2022 user.notice transmission: Starting with 3906340000 virt mem
Sat Jul 23 21:34:29 2022 daemon.err transmission-daemon[23381]: [2022-07-23 14:34:29.647] ERR utils.cc:218 Couldn't read '/data/config/stats.benc': No such file or directory (2) (transmission-3.00/libtransmission/utils.cc:218)
Sat Jul 23 21:34:29 2022 daemon.err transmission-daemon[23381]: [2022-07-23 14:34:29.647] ERR utils.cc:218 Couldn't read '/data/config/dht.dat': No such file or directory (2) (transmission-3.00/libtransmission/utils.cc:218)
Sat Jul 23 21:34:29 2022 daemon.err transmission-daemon[23381]: [2022-07-23 14:34:29.647] ERR variant.cc:1136 Couldn't save '/data/config/settings.json': Permission denied (13) (transmission-3.00/libtransmission/variant.cc:1136)
Sat Jul 23 21:34:29 2022 daemon.err transmission-daemon[23381]: [2022-07-23 14:34:29.647] ERR variant.cc:1136 Couldn't save '/data/config/bandwidth-groups.json': Permission denied (13) (transmission-3.00/libtransmission/variant.cc:1136)
Sat Jul 23 21:34:29 2022 daemon.err transmission-daemon[23381]: [2022-07-23 14:34:29.647] ERR watchdir-inotify.cc:180 Couldn't watch '/data/watch': No such file or directory (2) (transmission-3.00/libtransmission/watchdir-inotify.cc:180)
ls -l /data :
root@router:/# ls -l /data
total 12
drwxr-xr-x 5 transmission transmission 4096 Jul 23 21:29 config
drwxr-xr-x 2 transmission transmission 4096 Jul 23 21:29 done
drwxr-xr-x 2 transmission transmission 4096 Jul 23 21:29 incomplete
df -h :
root@router:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 117G 942M 116G 1% /
tmpfs 3.8G 5.5M 3.8G 1% /tmp
/dev/nvme0n1p1 1022M 6.6M 1016M 1% /boot
tmpfs 512K 0 512K 0% /dev
cgroup 3.8G 0 3.8G 0% /sys/fs/cgroup
mount :
root@router:/# mount
/dev/nvme0n1p2 on / type ext4 (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/nvme0n1p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,relatime,net_cls)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,relatime,rdma)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
mountd(pid5201) on /tmp/run/blockd type autofs (rw,relatime,fd=7,pgrp=5201,timeout=30,minproto=5,maxproto=5,indirect)
/etc/fstab is empty..
OpenWRT package mod used :
transmission-git
In continuation of this issue regarding my specific case above.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the attached transmission-git package archive alongside issue 19012, then reproduce the reported behavior on an OpenWrt x86_64 snapshot using the supplied logs and filesystem details. Done means the package correctly handles the configured directories and transmission-daemon can read and write them without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100