torrents Stop status (Permission denied on web interface)

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
kbumbaz
Posts: 6
Joined: Sat May 16, 2009 7:12 am

torrents Stop status (Permission denied on web interface)

Postby kbumbaz » Sat May 16, 2009 7:46 am

Hi all,

I have freshly install my transmission client & daemon (Ubuntu Server 9.10)

I start my daemon via the init.d OK
I have a home

Code: Select all

/home/leo
(<-- me :) )
I setup my

Code: Select all

"download-dir": "\/home\/leo\/downloads"
, inside my settings.json (/var/lib/transmission-daemon/info/)
BUT, each time I add a torrent torrents moves to Stoped status

Code: Select all

1*    0%       None  Unknown      0.0     0.0   0.00  Stopped


on the web interface : it moves to Permission Denied... I think it can be due to a lack of perission inside this download-dir BUT I also perform this very bad:

Code: Select all

chmod 777 -R /home/leo/downloads but result is the same.


Any help will be welcome.

Last question is there a log file somewhere ?

bye

PS: If you need more, tell me!

rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: torrents Stop status (Permission denied on web interface)

Postby rb07 » Sat May 16, 2009 8:39 am

Did you forget to stop the daemon before changing settings.json?

Can you run

Code: Select all

transmission-remote -t 1 -i

And report what the error line says?

kbumbaz
Posts: 6
Joined: Sat May 16, 2009 7:12 am

Re: torrents Stop status (Permission denied on web interface)

Postby kbumbaz » Sat May 16, 2009 9:11 am

yes of course it is restarted

root@bagnolar:~# ttr -t 1 -i
NAME
Id: 1
Name: *
Hash:*

TRANSFER
State: Stopped
Location: /home/leo
Percent Done: 0.00%
ETA: Unknown
Download Speed: 0.0 KB/s
Upload Speed: 0.0 KB/s
Have: None (None verified)
Total size: 825.0 MB (825.0 MB wanted)
Downloaded: 106.3 KB
Uploaded: None
Ratio: 0.00
Corrupt DL: None
Peers: connected to 0, uploading to 0, downloading from 0

HISTORY
Date added: Sat May 16 09:34:53 2009
Date started: Sat May 16 09:57:56 2009
Latest activity: Sat May 16 09:58:11 2009

TRACKER
Latest announce: Sat May 16 09:58:11 2009
Announce URL: http://tracker.tracker.example.com/announce
Announce response: OK (200)
Next announce: None (Stopped)
Latest scrape: Sat May 16 10:59:40 2009
Scrape response: OK (200)
Next scrape: Sat May 16 11:15:06 2009
Tracker knows of 1296 seeders and 1797 leechers
Tracker has seen 8251 clients complete this torrent

ORIGINS
Date created: Thu May 14 18:21:39 2009
Public torrent: Yes
Comment: Torrent downloaded from http://tracker.example.com
Creator: uTorrent/1820
Piece Count: 826
Piece Size: 1048576

PIECES
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00

rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: torrents Stop status (Permission denied on web interface)

Postby rb07 » Sat May 16, 2009 3:56 pm

Sorry, that doesn't say anything about an error.

In your original message torrent number 1 had an asterisk (i.e. 1*), that means there was an error either returned from the tracker or something else. The error can be seen with transmission-remote, but your output doesn't show any errors.

kbumbaz
Posts: 6
Joined: Sat May 16, 2009 7:12 am

Re: torrents Stop status (Permission denied on web interface)

Postby kbumbaz » Sun May 17, 2009 4:56 pm

Hey,

I completly agree you this can confirm that the problem is not a communicatin problem but something else...:
When I start the torrent, it begins to download some kb but just after, it stop with this
- status changes from downloading to stopeed when I check by the command line,
- permission denied message shown via the web interface.

I think there is a problems with permissions when transmission try to write data on the disk, sowhere some permissions are missing...

the question is where ?


bye

rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: torrents Stop status (Permission denied on web interface)

Postby rb07 » Sun May 17, 2009 5:24 pm

kbumbaz wrote:the question is where ?

Run :

Code: Select all

transmission-remote -si

Look at the line that says where the "Download directory" is.

Also look at the oputput of 'ps -ef | grep trans', and look which user is running the daemon. Does that user or his group have write permission on the above directory?

The other possibility is the config directory, its either under the user's home or where you set it on the daemon parameters (-g); same thing about write permissions on all the files (recursively) there. Perhaps you started the download as one user then changed to another... difficult to guess.

kbumbaz
Posts: 6
Joined: Sat May 16, 2009 7:12 am

Re: torrents Stop status (Permission denied on web interface)

Postby kbumbaz » Mon May 18, 2009 8:53 am

Code: Select all

transmission-remote -si


Code: Select all

root@bagnolar:~# ttr -si
VERSION
  Daemon version: 1.61 (8385)
  RPC version: 5
  RPC minimum version: 1

TRANSFER
  Download directory: /home/leo/downloads
  Portforwarding enabled: No
  Encryption: preferred

LIMITS
  Peer limit: 240
  Downloadlimit enabled: No
  Downloadlimit:    100 KB/sec
  Uploadlimit enabled:   No
  Uploadlimit:      100 KB/sec


Code: Select all

ps -ef | grep trans

root@bagnolar:/home# ps -ef | grep trans
107 9515 1 0 10:20 ? 00:00:00 /usr/bin/transmission-daemon --auth --config-dir /var/lib/transmission-daemon/info
root 9716 4812 0 10:24 pts/0 00:00:00 grep trans
[/code]

Code: Select all

root@bagnolar:~# cat /etc/passwd | grep 107

Code: Select all

debian-transmission:x:107:114::/home/debian-transmission:/bin/false


looking to /etc/init.d/transmission-daemon
there is a line : USER=debian-transmission

I changes the owner of /home/leo/downloads from leo to debian-transmission and now it is OK.
BUT i don't think it is really best practice :D

rb07 thank you for your help !
bye

rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: torrents Stop status (Permission denied on web interface)

Postby rb07 » Mon May 18, 2009 6:01 pm

It should be enough to change group instead of owner, and give the group write permission.

I'm guessing the Debian maintainer not only created an user for the daemon, but also a group (number 114 as you show, probably has a nice name like "debian-transmission" just like the user). The idea is that any user that belongs to that group can move configuration and downloaded files as they wish (and since a user can belong to several groups it could just be one of its secondary groups).

kbumbaz
Posts: 6
Joined: Sat May 16, 2009 7:12 am

Re: torrents Stop status (Permission denied on web interface)

Postby kbumbaz » Mon May 18, 2009 10:03 pm

HI rb07,

Thank you for this details, but may I ask you to rephrase your post, I can understand the goal, but not the procedure.

Thank you.

rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: torrents Stop status (Permission denied on web interface)

Postby rb07 » Mon May 18, 2009 10:22 pm

You said you changed owner of the download directory, something like "chown debian-transmission /home/leo/downloads", correct?

What I'm saying is that

Code: Select all

chmod g+rw /home/leo/downloads
chgrp -R debian-transmission /home/leo/downloads
might be better (I'm assuming group number 114 is called debian-transmission).

The idea of using group is that it allows anyone in that group to manage the contents of that directory. Of course you have to add your user to the group. On the other hand, if you do all the operations using the Web client, then you don't gain anything.

kbumbaz
Posts: 6
Joined: Sat May 16, 2009 7:12 am

Re: torrents Stop status (Permission denied on web interface)

Postby kbumbaz » Mon May 18, 2009 11:38 pm

HI rb07,

Thank you for this useful information. Now I have a clear undestanding of why it did not worked correctly.

Thank you for your time.

If someone wants to close the thread!

bye


Return to “Support”