Hi,
The issue is very alike viewtopic.php?t=17759. So it seems a permission/ownership issue, but I really can't figure out.
My transmission docker container worked well until I installed a new hard disk and move my incomplete and download directory to the new disk.
this is the directory on new disk /ndisk2.
$ ls -ld /ndisk2/media/video
drwxr-xr-x 5 yunpeng docker 4096 Aug 19 23:40 /ndisk2/media/video
$ ls -ld /ndisk2/download/incomplete
drwxr-xr-x 3 yunpeng docker 4096 Aug 19 23:40 /ndisk2/download/incomplete
$ id yunpeng
uid=1000(yunpeng) gid=1000(yunpeng) groups=1000(yunpeng),10(wheel),984(docker)
the directory is mapped to transmission container:
transmission:
image: linuxserver/transmission
volumes:
- /ndisk2/media:/media
- /ndisk2/download/incomplete: /data/incomplete
environment:
- PUID=1000
- PGID=984
Login container as root, I can see the two directories belongs to user abc:abc.
# ls -ld /media/video
drwxr-xr-x 5 abc abc 4096 Aug 19 23:40 /media/video
# ls -ld /data/incomplete
drwxr-xr-x 3 abc abc 4096 Aug 19 23:40 /data/incomplete
# id abc
uid=1000(abc) gid=984(yunpeng) groups=984(abc),1000(users)
and the transmission is launched by abc:
# ps -ef | grep transmission
abc 170 166 0 Aug 21 ? 00:05:25 /usr/bin/transmission-daemon -g /config -f
Transmission will report error as:
Error: Couldn't move 'data/incomplete' to '/media/video': Unable to copy: Unable to read/write: Function not implemented (38).
my daemon version is 4.0.3.
transmission-daemon 4.0.3 (6b0e49bbb2)
Any suggestion?
Thanks,
Riggy2013
Couldn't move file from incomplete directory to complete one
Couldn't move file from incomplete directory to complete one
Last edited by riggy2013 on Wed Aug 23, 2023 1:11 pm, edited 1 time in total.
Re: Couldn't move file from incomplete directory to complete one
I am not sure it is related, just provide more info:
At the failure, I found there was already a new directory A (A is the transmission downloaded directory) in both incomplete and final directory. However, the final/A directory only contains partial files. If I run mv incomplete/A final/A, it reports error:
mv: inter-device move failed: '/data/incomplete/A' to '/media/video/A'; unable to remove target: Directory not empty.
At the failure, I found there was already a new directory A (A is the transmission downloaded directory) in both incomplete and final directory. However, the final/A directory only contains partial files. If I run mv incomplete/A final/A, it reports error:
mv: inter-device move failed: '/data/incomplete/A' to '/media/video/A'; unable to remove target: Directory not empty.
Re: Couldn't move file from incomplete directory to complete one
What happens if you tell Transmission to keep the incomplete files in the same directory as its default location. And tell it to add .part to the partial files?