Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.01k stars 408 forks source link

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

Closed nicobubulle closed 10 years ago

nicobubulle commented 10 years ago

From frater...@gmail.com on September 10, 2009 23:09:02

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: http://code.google.com/p/rutorrent/issues/detail?id=68

nicobubulle commented 10 years ago

From f1r3st4r...@gmail.com on September 10, 2009 16:02:24

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/

nicobubulle commented 10 years ago

From frater...@gmail.com on September 10, 2009 21:21:10

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.

nicobubulle commented 10 years ago

From f1r3st4r...@gmail.com on September 10, 2009 23:22:35

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/

nicobubulle commented 10 years ago

From novik65 on September 11, 2009 00:27:29

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.

Status: WontFix

nicobubulle commented 10 years ago

From frater...@gmail.com on September 11, 2009 09:04:43

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.