mimtek / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

Web server can't access rTorrent's session directory for read. ruTorrent will not work. (/home/user/.session/) #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Simply lunch the rutorrent
2.
3.

What is the expected output? What do you see instead?

There shouldn't be any output but there is. Logger gives me this:

Web server can't access rTorrent's session directory for read. ruTorrent 
will not work. (/home/user/.session/)

Now I've got no idea why, cause rutorrent works just fine, and there are 
full rights, for everyone on that directory.

What version of the product are you using? On what operating system?

Archlinux, rutorrent latest, from the svn.

Please provide any additional information below.

It's not really a bug, I just don't have a clue why I see such error.

Original issue reported on code.google.com by frater...@gmail.com on 10 Sep 2009 at 9:09

GoogleCodeExporter commented 9 years ago
gpasswd -a http user (maybe don't work)
chmod 710 /home/user

in php.ini at line open_basedir add /home/user

i've got archlinux to

my open_basedir line in php.ini
open_basedir =
/srv/http/:/home/kwant/session:/tmp/:/usr/share/pear/:/usr/bin/:/bin/:/home/

Original comment by f1r3st4r...@gmail.com on 10 Sep 2009 at 11:02

GoogleCodeExporter commented 9 years ago
Ok but why there is such error if everything works just fine, there must be 
some 
mistake in checking script. This notice should be shown only in case of an 
actual 
error.

In version 2.4 or something I haven't got such issue.

Original comment by frater...@gmail.com on 11 Sep 2009 at 4:21

GoogleCodeExporter commented 9 years ago
on php 5.2.x you don't have such error. On php 5.3.x some things had changed.
Correct me if I'm wrong

BTW.
i've made mistake. it should be 
open_basedir = 
/srv/http/:/home/kwant/session:/tmp/:/usr/share/pear/:/usr/bin/:/bin/

Original comment by f1r3st4r...@gmail.com on 11 Sep 2009 at 6:22

GoogleCodeExporter commented 9 years ago
>Ok but why there is such error if everything works just fine, there must be 
some 
mistake in checking script.

Really DOES'T everything works fine. This error is a result of simple thing -
ruTorrent can't obtain uid of rTorrent user. As result:
1) Some plugins (choice, create, etc) will work incorrectly. For example, create
plugin will give to user access to all directories on disk (must be - only 
dirs, for
which rTorrent user has read access)
2) Some diagnoctic (for example - is rTorrent user has acces to php 
interpreter?)
will be unavailable.
Etc.

Original comment by novik65 on 11 Sep 2009 at 7:27

GoogleCodeExporter commented 9 years ago
gpasswd -a http user (maybe don't work)
chmod 710 /home/user

This solves the problem, but you need to add http to users group, not a user 
group. 
I didn't need to add anything to my php.ini file after all.

Original comment by frater...@gmail.com on 11 Sep 2009 at 4:04