transmission-daemon download-dir

Discussion of Transmission that doesn't fit in the other categories
Post Reply
Resilldoux
Posts: 16
Joined: Thu Apr 08, 2010 9:40 am

transmission-daemon download-dir

Post by Resilldoux »

Hi,

I've been busy with this problem for some hours now and it's starting to get quite annoying to say the least.
So here's what I've done:

I've installed the transmission daemon on my Ubuntu server v11.04 x64 box:

Code: Select all

sudo add-apt-repository ppa:transmissionbt/ppa
sudo aptitude update
sudo aptitude install transmission-daemon
Then I killed the daemon:

Code: Select all

sudo service transmission-daemon stop
And then I changed the following settings:

Code: Select all

sudo vim /var/lib/transmission-daemon/info/settings.json
    "download-dir": "/media/data/guido/downloads/transmission/complete",
    "incomplete-dir": "/media/data/guido/downloads/transmission/incomplete",
    "incomplete-dir-enabled": true,
    "rpc-password": "mypassword",
    "rpc-username": "guido",
The daemon needs to be able to write to the new destination, so I tried to give it permissions with ACLs (correct me if I'm wrong):

Code: Select all

sudo aptitude install acl
sudo umount /media/data
sudo vim /etc/fstab
    /dev/mapper/data-data /media/data     ext4    defaults,acl        0       2
sudo mount /media/data
setfacl -R -m u:debian-transmission:rwx /media/data/guido/downloads/transmission/
setfacl -R -m g:debian-transmission:rwx /media/data/guido/downloads/transmission/
And then I started the daemon again:

Code: Select all

sudo service transmission-daemon start
The daemon started just fine and I was also able to connect to the WebUI. The problem was, however, that when I tried to download the ubuntu server x64 desktop iso (to test it) it failed at around 0.70%. Transmission claims to have no permissions to the download folders and it paused my torrents.

Image

Then I tried something else. I decided to remove the ACLs and assign permission with "normal" permissions (if you know what I mean):

Code: Select all

setfacl -x u:debian-transmission /media/data/guido/downloads/transmission/
setfacl -x g:debian-transmission /media/data/guido/downloads/transmission/
sudo umount /media/data
sudo vim /etc/fstab
    /dev/mapper/data-data /media/data     ext4    defaults        0       2
sudo mount /media/data
sudo chown -R guido:debian-transmission /media/data/guido/downloads/transmission/
sudo chown -R 770 /media/data/guido/downloads/transmission/
I deleted the torrent first and added it again, but this also didn't work and I got the same error.

Again, I tried something else. I noticed that the default download location in the settings.json (/var/lib/transmission-daemon/downloads) had "drwsrwxr-x" permissions with both "debian-transmission" as user and as group. So I even tried the following:

Code: Select all

sudo chown -R debian-transmission:debian-transmission /media/data/guido/downloads/transmission/
sudo chmod 4775 /media/data/guido/downloads/transmission/complete
sudo chmod 4775 /media/data/guido/downloads/transmission/incomplete
Again, I deleted the torrent first and then added it again, but this also didn't work and I got the same annoying error.

Why does transmission-daemon still think it can't write to the folders?
What am I doing wrong here and why does transmission-daemon hate me? :cry:
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: transmission-daemon download-dir

Post by gunzip »

if user "guido" is adding torrents via the WebUI, then try adding him to the debian-transmission group:

Code: Select all

$ sudo usermod --append -G debian-transmission guido
you might have to logout and re-login as "guido" to have any effect.
Resilldoux
Posts: 16
Joined: Thu Apr 08, 2010 9:40 am

Re: transmission-daemon download-dir

Post by Resilldoux »

After stopping the daemon I added "debian-transmission" to my own group and then started the daemon again:

Code: Select all

sudo service transmission-daemon stop
sudo usermod --append -G debian-transmission guido
sudo service transmission-daemon start
Thank's gunzip, I can happily download again. :)
DivaNas
Posts: 1
Joined: Fri Sep 08, 2017 1:53 pm

Re: transmission-daemon download-dir

Post by DivaNas »

Hallo, have 2 questions about this issue from 2011 :)
1. Even the user diva added to debian-transmission still need permession if want to download dir in my /home/diva/Downloads. i did :

Code: Select all

# usermod -G debian-transmission diva
after logout and still pemession denied to /home/diva/Downloads
2. have opened port 51413 in my router, but still Closed!!
Screen Shot 2017-09-08 at 15.59.41.png
Screen Shot 2017-09-08 at 15.59.41.png (97.89 KiB) Viewed 17899 times
box info:
Debian stable 9
Transmission daemon
Post Reply