Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Permission Problems Transmission
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Permission Problems Transmission
10th May, 2016, 02:13 AM
Post: #1
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
Permission Problems Transmission
Software
XBian version: 1.0 (knockout) (kernel: Linux 4.4.8+)
XBMC/Kodi version: 16.0 Git:2016-04-28
Overclock settings: I didn't overclock it

Hardware
Device type and model: Raspberry Pi 3
Power supply rating: 1,8 Amp
SD card size and make/type: 16 GB
Network (Ethernet or wireless): Ethernet
Connected devices (TV, USB, network storage, ...): HDD in NTFS

Transmission can't write the "resume" file. The download on the NTFS HDD seems to work fine:
I think this is before it tries to write the resume file:


This is after:


No sure if this backup has something to do here:
http://forum.xbian.org/thread-3559-post-31820.html#pid31820

Best regards

NB: I have been working with xBian + Deluge for weeks without problem with this same HDD.

*EDIT: I added a third line here to change permissions, after reboot it doesn't work.
http://forum.xbian.org/thread-3559-post-31820.html#pid31820
Find all posts by this user
Quote this message in a reply
10th May, 2016, 02:54 AM (This post was last modified: 10th May, 2016 02:57 AM by Nachteule.)
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
First, two questions:

1) Which transmission package(s) are you using?

Terminal

dpkg -l | grep transmission
ii transmission-cli 2.84-0.2 armhf lightweight BitTorrent client (command line programs)
ii transmission-common 2.84-0.2 all lightweight BitTorrent client (common files)
ii transmission-daemon 2.84-0.2 armhf lightweight BitTorrent client (daemon)
ii transmission-qt 2.84-0.2 armhf lightweight BitTorrent client (Qt interface)


2) Under which user is the transmission daemon running

Terminal

ps aux | grep transmission*
root 1568 0.0 0.1 4176 1660 pts/2 S+ 18:56 0:00 grep transmission*
p2p 14789 0.5 0.9 76540 10192 ? Ssl 11:50 2:08 /usr/bin/transmission-daemon --config-dir /home/p2p/.config/transmission

Why are you using /etc/transmission instead of /home/xbian/transmission? I suppose transmission daemon has no write access to /etc/transmission
Find all posts by this user
Quote this message in a reply
10th May, 2016, 02:55 AM
Post: #3
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: Permission Problems Transmission
(10th May, 2016 02:54 AM)Nachteule Wrote:  First, two questions:

1) Which transmission package(s) are you using?

Terminal

dpkg -l | grep transmission

2) Under which user does the transmission daemon runs

Terminal

ps aux | grep transmission*

Why are you using /etc/transmission instead of /home/xbian/transmission? I suppose transmission daemon has no write access to /etc/transmission

Terminal
xbian@xbian ~ $ dpkg -l | grep transmission
ii xbian-package-transmission 2.82 armhf Transmission 2.82 compiled, patched and configured for XBian

Terminal
xbian@xbian ~ $ ps aux | grep transmission*
xbian 2214 11.8 1.5 82296 11636 ? SNl 16:47 0:56 /usr/local/bin transmission-daemon -f -g /etc/transmission/
xbian 3181 0.1 0.8 76908 6688 ? SNl 16:48 0:00 /usr/local/bin transmission-daemon -f -g /etc/transmission/
xbian 5080 0.0 0.2 3764 1716 pts/5 S+ 16:55 0:00 grep --color=auto transmission

/home/xbian/transmission is just the place where I stored the backup to copy from there.
/etc/transmission is where I found transmission files are installed in xBian

Note: I restored the Backup from other OS to xBian.
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:04 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
Hmmm, ok. User xbian does not have write permissions for folder /etc/transmission

You can change owner for /etc/transmission

Terminal

sudo chown -R xbian:xbian /etc/transmission/

But again, IMO makes no sense to use this folder for transmission in /etc
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:06 AM
Post: #5
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: Permission Problems Transmission
(10th May, 2016 03:04 AM)Nachteule Wrote:  Hmmm, ok. User xbian does not have write permissions for folder /etc/transmission

You can change owner for /etc/transmission

Terminal

sudo chown -R xbian:xbian /etc/transmission/

But again, IMO makes no sense to use this folder for transmission in /etc

But I didn't choose it!!
I just found it was there, it is xBian's default folder. I don't even know how I could change the folder for transmission.
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:08 AM
Post: #6
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
I told you yesterday, how to configure config folder for transmission yesterday (for Debian pkg v2.84)
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:13 AM
Post: #7
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: Permission Problems Transmission
You must refer to this post:
http://forum.xbian.org/thread-3559-post-31816.html#pid31816

-I installed transmission from xBian, I thought I hadn't to change anything.
-I couldn't even find that folder:
Terminal
xbian@xbian ~ $ cd /etc/default/transmission-daemon
-bash: cd: /etc/default/transmission-daemon: No such file or directory
(I found the files here: /etc/transmission)

I couldn't access either to /etc/default/transmission/ although it was there.
Terminal
xbian@xbian /etc/default $ ls

anacron hwclock openbsd-inetd vnc-autores
autofs hwclock.fake rcS xbian-initramfs
avahi-daemon ifplugd rng-tools xbian-led
bluetooth iguanaIR rpcbind xbian-module-init-tools
bsdmainutils keyboard samba xbian-rnd
console-setup lirc ssh xbian-snap
cron locale template.json xbian-update
dbus networking tmpfs xbmc
devpts nfs-common transmission zram-swap
halt nss triggerhappy
hdparm ntp useradd

xbian@xbian /etc/default $ cd transmission

-bash: cd: transmission: Not a directory
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:17 AM
Post: #8
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
Hmmm, installed xbian-package-transmission for testing, config dir is /etc/transmission, owner is xbian:xbian and access richts are rwx for everybody. This should be ok.

Seems you destroyed rights and owner by cp -r and chmod command
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:19 AM
Post: #9
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
/etc/default/transmission is config file not folder
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:22 AM
Post: #10
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: Permission Problems Transmission
(10th May, 2016 03:17 AM)Nachteule Wrote:  Hmmm, installed xbian-package-transmission for testing, config dir is /etc/transmission, owner is xbian:xbian and access richts are rwx for everybody. This should be ok.

Seems you destroyed rights and owner by cp -r and chmod command

I can't say not to that xD
After the cp-r I suppose I got backup's folder permissions.
I tried chmod after the permission problems (it can not the cause of the problems)
Now I am trying sudo chown -R xbian:xbian /etc/transmission/


(10th May, 2016 03:19 AM)Nachteule Wrote:  /etc/default/transmission is config file not folder
I was suspecting that right now, thanks.
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:29 AM
Post: #11
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
Yesterday you did:

(9th May, 2016 03:50 AM)Peiote Wrote:  I have them here:

Terminal
xbian@xbian /etc/transmission $ ls
blocklists dht.dat resume settings.json torrents

The process:

1- Delete directory:
Terminal
sudo rm -rf /etc/transmission

2- Copy the backup (backup in this example would be: "/home/xbian/transmission/" accesible from Samba):
Terminal
sudo cp -r /home/xbian/transmission/ /etc/transmission/

3- Change permissions:
Terminal
sudo chmod -R 755 /etc/transmission/

Working, thank you guys.

You deleted /etc/transmission --> all rights and dir mode was gone
You copied /home/xbian/transmission to /etc/transmission with sudo --> owner of /etc/transmission is now root:root
You changed perms to 0755 --> no write access for group and everyone

Any questions?
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:33 AM
Post: #12
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: Permission Problems Transmission
The 3rd part, the permissions thing, I added that after problems arised. So, I could let the tutorial complete and working for making transmission backups. If you go there right now, you will see it changed again. Now it seems to be all right (it works).
If you think the tuto can get better (working in better way with permissions) go ahead, it will be helpful.

No questions, thanks for your help and teaching.
Find all posts by this user
Quote this message in a reply
10th May, 2016, 03:38 AM (This post was last modified: 10th May, 2016 03:39 AM by Nachteule.)
Post: #13
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Permission Problems Transmission
Transmission is working now - that's the most important Smile
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 15th May, 2025, 07:59 AM Powered By MyBB, © 2002-2025 MyBB Group.