Permission denied

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
mosthated
Posts: 4
Joined: Thu Jun 28, 2012 8:14 pm

Permission denied

Post by mosthated »

Hi all,

I installed transmission-cli, transmission-remote, and transmission-common on my Ubuntu 12.04 LTS box.
I am able to add a torrent (transmission-remote -a name.torrent) but it is unable to download the torrent because of permission errors.

I created a user and set the download-location:

Code: Select all

transmission-daemon -f -t -u my_username -v my_password -w /path/to/downloaded/torrents -c /path/to/incomplete/torrents
the username and password are the same as my unix account.

I changed the permission of the download and incomplete folder to:

Code: Select all

chmod -R 777 /path/to/downloaded/torrents
chomd -R 777 /path/to/incomplete/torrents
and

Code: Select all

chown my_username:my_username /path/to/downloaded/torrents
chown my_username:my_username /path/to/incomplete/torrents
The lines in:
/home/user/.config/transmission-daemon/settings.json
"download-dir": "/path/to/downloaded/torrents",
"incomplete-dir": "/path/to/incomplete/torrents",
"watch-dir": "/path/to/incomplete/torrents",
"rpc-username": "my_username",
seem to be ok.

Still, when I start a torrent, it starts downloading for a few seconds, then it stops.

/var/log/syslog shows:
Jul 4 10:57:57 XXX transmission-daemon[4096]: Couldn't create "/home/my_username/Downloads/Incomplete//TORRENT_FILES": Permission denied (utils.c:569)
Jul 4 10:57:57 XXX transmission-daemon[4096]: Couldn't create "/home/my_username/Downloads/Incomplete//TORRENT_FILES": Permission denied (fdlimit.c:360)
Jul 4 10:57:57 XXX transmission-daemon[4096]: TORRENT_FILES tr_fdFileCheckout failed for "/home/my_username/Downloads/Incomplete//TORRENT_FILES/file.extension.part": Permission denied (inout.c:100)
Jul 4 10:57:57 XXX transmission-daemon[4096]: TORRENT_FILES Permission denied (/var/lib/transmission-daemon/downloads/TORRENT_FILES/file.extension) (torrent.c:487)
Jul 4 10:57:57 XXX transmission-daemon[4096]: TORRENT_FILES Pausing (torrent.c:1763)
Jul 4 10:57:57 XXX transmission-daemon[4096]: Couldn't create "/home/my_username/Downloads/Incomplete//TORRENT_FILES": Permission denied (utils.c:569)
Jul 4 10:57:57 XXX transmission-daemon[4096]: Couldn't create "/home/my_username/Downloads/Incomplete//TORRENT_FILES/123": Permission denied (fdlimit.c:360)
Jul 4 10:57:57 XXX transmission-daemon[4096]: TORRENT_FILES tr_fdFileCheckout failed for "/home/username/Downloads/Incomplete//TORRENT_FILES/123/file.txt.part": Permission denied (inout.c:100)
Also, when I do

Code: Select all

transmission-remote --auth my_username:my_password
i get:
Unexpected response: <h1>401: Unauthorized</h1>Unauthorized User
but when I do

Code: Select all

transmission-remote --auth transmission:transmission
I do not get an error.


Does anybody know why I get these permission errors and how I can repair them?

Thnx! M0s..
endle
Posts: 1
Joined: Thu Nov 15, 2012 4:15 am

Re: Permission denied

Post by endle »

I was having a very similar issue, and also have scoured the web looking for possible solutions. Finally it dawned on me, so I wanted to post this here for posterities sake:

Currently, I have a seperate hard-drive mounted as /mnt/Downloads and then I sym-link to that from my home-folder.

After trying every possible configuration of permissions, I finally figured out that Transmission wanted the direct path to the Downloads folder (/mnt/Downloads) rather than my sym-link path of /home/me/Downloads

Once I did this, and then restarted transmission-daemon, the permission errors went away
kramed
Posts: 5
Joined: Tue Jun 02, 2009 12:15 am

Re: Permission denied

Post by kramed »

I am getting the same error on the Windows version saving a very large torrent (320gb) on to a network drive. This issue is driving me nuts.
kramed
Posts: 5
Joined: Tue Jun 02, 2009 12:15 am

Re: Permission denied

Post by kramed »

It looks like this issue has been an elusive one: https://trac.transmissionbt.com/ticket/4147
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Permission denied

Post by rb07 »

kramed wrote:I am getting the same error on the Windows version saving a very large torrent (320gb) on to a network drive. This issue is driving me nuts.
And it probably has nothing to do with Transmission: If the "network drive" is in FAT32 or NTFS format, then a single file limit is about 4GB.

Don't misunderstand, it is not a limit for the entire torrent (we have tested torrents with over a TeraByte in size), its a single file limit.

Yep, it drives me mad when I move a larger file in Windows and it gets truncated to 4 GB, and that happens where the file system is actually ext3 (Linux running in a NAS, seen by Windows through Samba/CIFS). The workaround in that case is to move only to the same volume, so it is actually a move not a copy... but that doesn't help your case, you have to change file systems if you want to work with files larger than 4 GB.
Post Reply