Merj
Posts: 14
Joined: Mon Jan 28, 2013 11:42 am

Transmission + HDD : issue to write (solved)

Wed Feb 13, 2019 6:31 pm

Hi everyone,

I'm currently facing a problem with transmission-daemon : the web interface show an error message : "permission denied" to write on the folder on the hard-drive.

Here is what I can say:
  • Model : Raspberry Pi 3
  • Hard drive : Pi Drive (Western Digital)
  • OS : Raspbian 9.6 (stretch) with PIXEL desktop
  • It's work fine with a folder on the SD card with the exact same configuration (see below)
  • I have try to run transmission-daemon with root user : didn't work too on the hard drive
  • The "pi" user, which is used to run Transmission, is able to write on the hard drive in command line (without sudo, of course)
  • The daemon do not show any specific error, except that's it can't find data from existing torrent, because transmission can't write anything (= consequence of my problem)
  • ps command show not "pi" running transmission-daemon but "debian+-" (see below) (relevant information ? i don't know)
  • In the /etc/init.d/transmission-daemon file, "USER=pi" is defined.
But if it's working on a SD card folder, why it can't work on the hard drive ? My guess was that's the hard drive is not correctly mounted. So, because file manager of PIXEL desktop auto-mount the hard drive at startup, I have disabled this option and instead, mount it with fstab (see below), but this not solve the problem.

Do you have any idea about what I do wrong, what I don't see ?
Thank you for your help ! :D

Configuration of the folder (for SD card and hard drive too):

Code: Select all

mkdir Downloads
sudo usermod -a -G debian-transmission pi
sudo chgrp debian-transmission /media/pi/PiDrive/Downloads/
sudo chgrp debian-transmission /media/pi/PiDrive/Downloads
sudo chmod 770 /media/pi/PiDrive/Downloads
# Update the conf with the new folder :
sudo systemctl stop transmission-daemon
sudo nano /etc/transmission-daemon/settings.json
sudo systemctl start transmission-daemon

Daemon information:

Code: Select all

sudo systemctl status transmission-daemon.service
● transmission-daemon.service - Transmission BitTorrent Daemon
   Loaded: loaded (/lib/systemd/system/transmission-daemon.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-02-12 23:48:11 CET; 19h ago
 Main PID: 403 (transmission-da)
   Status: "Idle."
   CGroup: /system.slice/transmission-daemon.service
           └─403 /usr/bin/transmission-daemon -f --log-error

févr. 12 23:48:10 kodi systemd[1]: Starting Transmission BitTorrent Daemon...
févr. 12 23:48:11 kodi systemd[1]: Started Transmission BitTorrent Daemon.

Process information:

Code: Select all

pi@kodi:~ $ ps aux | grep transmission
debian-+   403  0.0  0.8  41612  6652 ?        Ssl  févr.12   0:44 /usr/bin/transmission-daemon -f --log-error

fstab file content:

Code: Select all

UUID=ada0c4d0...       /media/pi/PiDrive       ext4    defaults                0       0
Last edited by Merj on Sun Jun 30, 2019 11:59 am, edited 1 time in total.

Merj
Posts: 14
Joined: Mon Jan 28, 2013 11:42 am

Re: Transmission + HDD : issue to write

Mon Feb 25, 2019 5:54 pm

Can someone help me ?

Thanks :D

Jerome
Posts: 9
Joined: Tue Oct 30, 2012 6:38 pm

Re: Transmission + HDD : issue to write

Sat May 04, 2019 4:31 pm

Same problems. Any help plaese??

Best regards

Jerome

Merj
Posts: 14
Joined: Mon Jan 28, 2013 11:42 am

Re: Transmission + HDD : issue to write

Sat May 11, 2019 11:36 am

Thank you Jerome for raising up this topic.

I haven't solved my issue so far, so I'm still interested for any lead too. Thanks ! ;)

Merj
Posts: 14
Joined: Mon Jan 28, 2013 11:42 am

Re: Transmission + HDD : issue to write

Sun Jun 30, 2019 11:58 am

It works !!

I have complete the configuration of Transmission with the steps 11 to 15 on this post : https://pimylifeup.com/raspberry-pi-torrentbox/

11 :

Code: Select all

sudo chown -R pimylifeup:pimylifeup /etc/transmission-daemon
sudo chown -R pimylifeup:pimylifeup /etc/init.d/transmission-daemon
sudo chown -R pimylifeup:pimylifeup /var/lib/transmission-daemon

12 & 13 :

Code: Select all

sudo nano /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Edit this line :

Code: Select all

user=pimylifeup

14 :

Code: Select all

sudo systemctl daemon-reload

15 :

Code: Select all

sudo mkdir -p /home/pimylifeup/.config/transmission-daemon/
sudo ln -s /etc/transmission-daemon/settings.json /home/pimylifeup/.config/transmission-daemon/
sudo chown -R pimylifeup:pimylifeup /home/pimylifeup/.config/transmission-daemon/

Then reload the conf :

Code: Select all

sudo systemctl reload transmission-daemon
8-)

Return to “Troubleshooting”