Unpack with root

randac56

Member
May 25, 2018
915
0
16
I run rtorrent under root and as well some past post it seems unpack plugin needs to work under rtorrent user cause of which none of files are getting extracted.

I'm not sure how do i go ahead and debug this since no log file is generated the logger always shows , will add that when i do a manual unpack and try to select directory nothing shows up i.e blank it should ideally show the directory location in ideal scenario.

[16.02.2013 17:32:42] Unpacking finished with errors

Something from apache log

Code:
[Sat Feb 16 17:22:24 2013] [error] [client 192.168.1.4] PHP Warning: is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/stat) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin) in /srv/http/a/php/util.php on line 400, referer: http://192.168.1.104/a/
[Sat Feb 16 17:22:24 2013] [error] [client 192.168.1.4] PHP Warning: is_executable(): open_basedir restriction in effect. File(/usr/local/bin/stat) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin) in /srv/http/a/php/util.php on line 400, referer: http://192.168.1.104/a/
[Sat Feb 16 17:22:24 2013] [error] [client 192.168.1.4] PHP Warning: is_executable(
 

peshua19

Member
May 25, 2018
897
0
16
I run rtorrent under root and as well some past post it seems unpack plugin needs to work under rtorrent user cause of which none of files are getting extracted.
Can't understand you. If you run rtorrent under root (BTW, this is a bad idea), then rtorrent works under root. And unpack plugin works under root.

I run rtorrent under root and as well some past post it seems unpack plugin needs to work under rtorrent user cause of which none of files are getting extracted.

I'm not sure how do i go ahead and debug this since no log file is generated the logger always shows , will add that when i do a manual unpack and try to select directory nothing shows up i.e blank it should ideally show the directory location in ideal scenario.

[16.02.2013 17:32:42] Unpacking finished with errors

Something from apache log

Code:
[Sat Feb 16 17:22:24 2013] [error] [client 192.168.1.4] PHP Warning: is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/stat) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin) in /srv/http/a/php/util.php on line 400, referer: http://192.168.1.104/a/
[Sat Feb 16 17:22:24 2013] [error] [client 192.168.1.4] PHP Warning: is_executable(): open_basedir restriction in effect. File(/usr/local/bin/stat) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin) in /srv/http/a/php/util.php on line 400, referer: http://192.168.1.104/a/
[Sat Feb 16 17:22:24 2013] [error] [client 192.168.1.4] PHP Warning: is_executable(


Try to ask from google about open_basedir and set it properly.
 

randac56

Member
May 25, 2018
915
0
16
Here is the entry stat lies in /usr/bin , still cant get to work 'a' is my rutorrent folder cheesy.gif

Code:
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin:/srv/http/a/conf/:/srv/http/a/php/:/srv/http/a/

Its a headless system hence i run as root.

I was actually referring to below post where its mentioned that it runs as rtorrent user
http://forums.rutorrent.org/index.php?topic=1377.msg8637#msg8637
 

randac56

Member
May 25, 2018
915
0
16
I did a re-install and it seems working if there is a folder within which rars exists but if there is only one single rar file it fails to extract no errors in lighttpd it says Unpack Finished with errors
 

randac56

Member
May 25, 2018
915
0
16
This is the error I'm getting
Code:
2013-05-26 17:15:06: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Warning: is_dir(): open_basedir restriction in effect. File(/media/Data/data/Rip.rar) is not within the allowed path(s): (/srv/http/:/srv/http/rutorrent:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/bin/:/usr/sbin/:/root/session:/usr/local/bin) in /srv/http/rutorrent/plugins/unpack/unpack.php on line 225


Error from Web GUI

Code:
[26.05.2013 17:14:59] Unpacking started (/media/Data/data/torrents/A_Rip.rar=>/media/Data/data/A_Rip.rar/)

Cannot create /media/Data/data/torrents/A_Rip.rar/a-c/Asset
Not a directory