403: Forbidden

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
seanyd
Posts: 9
Joined: Tue Nov 15, 2011 10:57 am

403: Forbidden

Post by seanyd »

Hi every. Have a constant error with not being able to access transmission form inside my home network. I have tried installing it 3 times with variations and its always the same. Im following the guide http://forum.dsmg600.info/t2719-%5BREL% ... ssion.html.

I m using a dlink share center 320

I put transmission.tgz here: /mnt/HD/HD_a2

I then run the script "funpkg -i Transmission-2.42-1.tgz"

Followed by: su nobody -c "transmission-daemon -f -g /mnt/HD/HD_a2/.transmission-daemon -w /mnt/HD/HD_a2/Downloads -t -u sean -v 123456 -a 127.0.0.1,192.168.*.*,192.168.1.5,192.168.1.6,*.*.*.*"

I have tried a few combos on the code above and nothing changes.

I have had some or two success with it. But I have found when the NAS restarts I always seem the be denied access to transmission.

Any ideas at all? Thanks
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: 403: Forbidden

Post by gunzip »

does the user "nobody" have permission to read/write under the mounted share /mnt/HD/HD_a2/ , which is where your download and config directories seem to be located. often permissions are source of these types of errors. running the command

ls -laR /mnt/HD/HD_a2/

might give some clues.
seanyd
Posts: 9
Joined: Tue Nov 15, 2011 10:57 am

Re: 403: Forbidden

Post by seanyd »

gunzip wrote:does the user "nobody" have permission to read/write under the mounted share /mnt/HD/HD_a2/ , which is where your download and config directories seem to be located. often permissions are source of these types of errors. running the command

ls -laR /mnt/HD/HD_a2/

might give some clues.
Thanks for getting back to me. The command gives:

drwxrwxrwx 13 root root 4096 Nov 30 16:05 HD_a2
drwxrwxrwx 5 root root 4096 Nov 29 12:33 .transmission-daemon
/mnt/HD/HD_a2/.transmission-daemon:
drwxrwxrwx 5 root root 4096 Nov 29 12:33 .
drwxrwxrwx 13 root root 4096 Nov 30 16:05 ..
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 blocklists
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 resume
-rw------- 1 nobody allaccou 2210 Nov 29 13:55 settings.json
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 torrents

The folder " .transmission-daemon" belonged to the group allaccouounts 501 and the owner was nobody 501. change them to root to see if it would make a difference, it didnt. I dont believe "nobody" can write or read to /mnt/HD/HD_a2/. I know "root" and user '"sean" can.
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: 403: Forbidden

Post by gunzip »

seanyd wrote:drwxrwxrwx 13 root root 4096 Nov 30 16:05 HD_a2
drwxrwxrwx 5 root root 4096 Nov 29 12:33 .transmission-daemon
/mnt/HD/HD_a2/.transmission-daemon:
drwxrwxrwx 5 root root 4096 Nov 29 12:33 .
drwxrwxrwx 13 root root 4096 Nov 30 16:05 ..
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 blocklists
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 resume
-rw------- 1 nobody allaccou 2210 Nov 29 13:55 settings.json
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 torrents
that's odd, your config directory "/mnt/HD/HD_a2/.transmission-daemon" is owned by root, which is not a good idea. also your download directory "/mnt/HD/HD_a2/Downloads" doesn't even appear in the listing, which might be the reason for the hangup. the directory cannot be created as the parent directory is also owned by root. maybe try this after stopping the daemon:

Code: Select all

mkdir /mnt/HD/HD_a2/Downloads
chown -R nobody /mnt/HD/HD_a2/Downloads
chown -R nobody /mnt/HD/HD_a2/.transmission-daemon
the idea is to give user "nobody" full read/write access to both your config and download directories.
seanyd
Posts: 9
Joined: Tue Nov 15, 2011 10:57 am

Re: 403: Forbidden

Post by seanyd »

gunzip wrote:
seanyd wrote:drwxrwxrwx 13 root root 4096 Nov 30 16:05 HD_a2
drwxrwxrwx 5 root root 4096 Nov 29 12:33 .transmission-daemon
/mnt/HD/HD_a2/.transmission-daemon:
drwxrwxrwx 5 root root 4096 Nov 29 12:33 .
drwxrwxrwx 13 root root 4096 Nov 30 16:05 ..
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 blocklists
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 resume
-rw------- 1 nobody allaccou 2210 Nov 29 13:55 settings.json
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 torrents
that's odd, your config directory "/mnt/HD/HD_a2/.transmission-daemon" is owned by root, which is not a good idea. also your download directory "/mnt/HD/HD_a2/Downloads" doesn't even appear in the listing, which might be the reason for the hangup. the directory cannot be created as the parent directory is also owned by root. maybe try this after stopping the daemon:

Code: Select all

mkdir /mnt/HD/HD_a2/Downloads
chown -R nobody /mnt/HD/HD_a2/Downloads
chown -R nobody /mnt/HD/HD_a2/.transmission-daemon
the idea is to give user "nobody" full read/write access to both your config and download directories.

I Have a download directory but I must have missed it when copying. I ran both those commands. Just so you know when I run start transmission I get:

Code: Select all

root@dlink-50DA9D:/mnt/HD/HD_a2/ffp/home/root# /ffp/start/transmission.sh start
mkdir: cannot create directory '/mnt/HD_a2/.transmission-daemon': No such file or directory
Starting transmission-daemon
Couldn't open "/mnt/HD_a2/.transmission-daemon/transmission-daemon.log": No such file or directory
root@dlink-50DA9D:/mnt/HD/HD_a2/ffp/home/root#
Im still getting 403 forbidden. Can security be completely removed from transmission ? Obviously i'd prefer not to but I cant download anything :( I have also attached my settings file for transmission. Thanks alot for your time


EDIT:

Code: Select all

/mnt/HD/HD_a2/.transmission-daemon:
drwxrwxrwx    5 nobody   root         4096 Nov 29 12:33 .
drwxrwxrwx   13 root     root         4096 Nov 30 18:38 ..
drwxr-xr-x    2 nobody   allaccou     4096 Nov 29 12:25 blocklists
drwxr-xr-x    2 nobody   allaccou     4096 Nov 29 12:25 resume
-rw-------    1 nobody   allaccou     2209 Dec  1 18:29 settings.json
drwxr-xr-x    2 nobody   allaccou     4096 Nov 29 12:25 torrents
drwxrwxrwx    4 nobody   allaccou     4096 Nov 28 20:27 Downloads


Attachments
Part1
Part1
Capture2.PNG (53.3 KiB) Viewed 8103 times
Part2
Part2
Capture1.PNG (3.36 KiB) Viewed 8103 times
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: 403: Forbidden

Post by gunzip »

seanyd wrote:mkdir: cannot create directory '/mnt/HD_a2/.transmission-daemon': No such file or directory
Starting transmission-daemon
Couldn't open "/mnt/HD_a2/.transmission-daemon/transmission-daemon.log": No such file or directory
the config directory from your original post is at /mnt/HD/HD_a2/.transmission-daemon, not /mnt/HD_a2/.transmission-daemon
Followed by: su nobody -c "transmission-daemon -f -g /mnt/HD/HD_a2/.transmission-daemon -w /mnt/HD/HD_a2/Downloads -t -u sean -v 123456 -a 127.0.0.1,192.168.*.*,192.168.1.5,192.168.1.6,*.*.*.*"
these are are two different locations.:

/mnt/HD/HD_a2/.transmission-daemon
/mnt/HD_a2/.transmission-daemon

i say try again, but be more careful on the paths.
seanyd
Posts: 9
Joined: Tue Nov 15, 2011 10:57 am

Re: 403: Forbidden

Post by seanyd »

Sorry about that.

root@dlink-50DA9D:/mnt/HD/HD_a2/ffp/home/root# ls -laR /mnt/HD/HD_a2/
/mnt/HD/HD_a2/:

drwxrwxrwx 5 nobody root 4096 Nov 29 12:33 .transmission-daemon
drwxrwxrwx 4 nobody allaccou 4096 Nov 28 20:27 Downloads

/mnt/HD/HD_a2/.transmission-daemon:
drwxrwxrwx 5 nobody root 4096 Nov 29 12:33 .
drwxrwxrwx 14 root root 4096 Dec 6 15:41 ..
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 blocklists
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 resume
-rw------- 1 nobody allaccou 2209 Dec 1 18:29 settings.json
drwxr-xr-x 2 nobody allaccou 4096 Nov 29 12:25 torrents
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: 403: Forbidden

Post by gunzip »

OK the permissions look right when starting manually, but when you run the script it's looking in a different directory
seanyd wrote:
/ffp/start/transmission.sh start
mkdir: cannot create directory '/mnt/HD_a2/.transmission-daemon': No such file or directory
Starting transmission-daemon
Couldn't open "/mnt/HD_a2/.transmission-daemon/transmission-daemon.log": No such file or directory

you have to modify the transmission.sh script to match the path.

in summary when you run manually it's looking in

/mnt/HD/HD_a2 (this exists on your system and should work now)

but the transmission.sh startup script is looking in

/mnt/HD_a2 (which does NOT exist, hence the errors)
seanyd
Posts: 9
Joined: Tue Nov 15, 2011 10:57 am

Re: 403: Forbidden

Post by seanyd »

Thats done it. I just edited the script and it worked perfectly. I also took the liberty of moving transmission into my opt folder alongside twonky media server to keep it more organized. Thank you very much for your time and patience, its very much appreciated :D
Post Reply