wakhidprasetyo / rutorrent

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

rutorrent cannot access session directory #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running ubuntu 8.10 and everything is working fine with rutorrent and
rtorrent 0.8.2 on many of my boxes, on one i get this error in the webui
log window: [28.08.2009 00:53:36] Web server can't access rTorrent's
session directory for read. ruTorrent will not work. (/home/user1/.rtsession/)

Permissions are 777 and i don't see why it should be able to access the
directory.

Also consider that if i add torrents and change settings everything works
fine, i can't find any reason why i see that error.

Original issue reported on code.google.com by sparv...@gmail.com on 28 Aug 2009 at 7:06

GoogleCodeExporter commented 9 years ago
1) Which version of ruTorrent you use?
2) Paste here the output of command
ls -la /home/user1/.rtsession
and user/group of web-server's user.

Original comment by novik65 on 28 Aug 2009 at 7:57

GoogleCodeExporter commented 9 years ago
1) latest 2.6
2) $ ls -la /home/user1/.rtsession
total 156
drwxr-xr-x 2 user1 user1  4096 Aug 28 09:37 .
drwxr-xr-x 4 user1 user1  4096 Aug 27 07:19 ..
-rw-r--r-- 1 user1 user1 31963 Aug 28 09:37
290E9C20C856A3904A63B8139B4B1132C0542E73.torrent
-rw-r--r-- 1 user1 user1 24864 Aug 28 09:37
44EACBBBB937C6B965712C00C01D249A0D4134DD.torrent
-rw-r--r-- 1 user1 user1 17206 Aug 28 09:37
8BC2E52463F975325EE8493E1781B98D6B4C1CC7.torrent
-rw-r--r-- 1 user1 user1 21858 Aug 28 09:37
9436C7F1B2DAC1E4B8C93B8F81519263EFFEEFBB.torrent
-rw-r--r-- 1 user1 user1 35534 Aug 28 09:37
E12497220780AFBFD4AA676FB29C7877FE730EE5.torrent
-rw-r--r-- 1 user1 user1    55 Aug 28 09:37 rtorrent.dht_cache
-r--r--r-- 1 user1 user1    11 Aug 26 21:07 rtorrent.lock

lighttpd running under www-data user/group

Original comment by sparv...@gmail.com on 28 Aug 2009 at 8:06

GoogleCodeExporter commented 9 years ago
For unknown reasons, script can't obtain stat of file
/home/user1/.rtsession/rtorrent.lock
May be, something with your php configuration?
In file settings.php find the line
$ss=@stat($this->session.'rtorrent.lock');
replace it to
$ss=stat($this->session.'rtorrent.lock');
(without @)
reload ruTorrent and see to web-server's log.

Original comment by novik65 on 28 Aug 2009 at 3:38

GoogleCodeExporter commented 9 years ago
Hi Novik,

We tried editing the settings.php, removing the @ from the line of code you
referenced. Still no luck unfortunately... The following error still comes up 
within
the webui log tab:

[28.08.2009 13:26:44] Web server can't access rTorrent's session directory for 
read.
ruTorrent will not work. (/home/pirate3/.rtsession/)

Definitely appreciate the help... Any other thoughts?

Original comment by Ben.Benj...@gmail.com on 28 Aug 2009 at 6:30

GoogleCodeExporter commented 9 years ago
Maybe you can try to add the user www-data to the group of user1
I have done that  also, and I see same permissions on that file.

But my webserver is able to read the file, maybe it works

Original comment by rascal...@gmail.com on 29 Aug 2009 at 5:20

GoogleCodeExporter commented 9 years ago
>Definitely appreciate the help... Any other thoughts?

Is you really read my comment? I write above - "reload ruTorrent AND SEE TO
WEB-SERVER'S LOG." 
web-server's log != webui log.

Original comment by novik65 on 29 Aug 2009 at 8:12

GoogleCodeExporter commented 9 years ago
Evening Novik,

Apologies, I had missed your comment regarding the log. Actually  made complete
sense, and did just that... but no errors had kicked oddly enough. But, we did 
end up
finding an interesting fix... Instead of having the local .rtsession directories
stored in local home folders, we moved it to the local ruTorrent directories - 
with
777 permissions set. The error has disappeared... So for some reason, the php 
code
wasn't finding the .rtsession folder locally stored... 

Appreciate all your help, especially the "speedy" replies...

- Benjamin

Original comment by Ben.Benj...@gmail.com on 29 Aug 2009 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by novik65 on 30 Aug 2009 at 12:15