logging datadir and Log tab...

jith45

Member
May 25, 2018
960
0
16
I enabled datadir logging in /var/www/rutorrent/plugins/datadir/conf.php
When trying to Save to... this doesn't work (meaning nothing is saved to another location) and no logging appears in the Log tab, in fact no log at all comes in this tab except the [08.11.2012 16:43:01] WebUI started.
I think this is permission related but can't find where I have a mistake to be honest.
sudo tail /var/log/nginx/rutorrent.error.log -f
Code:
2012/11/08 16:59:04 [error] 2578#0: *16318 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/home/rtorrent/logs/rtorrent.log): failed to open stream: Permission denied in /var/www/rutorrent/php/util.php on line 185
ok so I check my log folder :
ls -la /home/rtorrent/logs/*g
Code:
-rwxrwx--x 1 rtorrent rtorrent 24034 Nov 8 16:59 /home/rtorrent/logs/rtorrent.log
-rwxrwx--x 1 rtorrent rtorrent 9301 Nov 8 16:59 /home/rtorrent/logs/torrent.log
-rwxrwx--x 1 rtorrent rtorrent 26475 Nov 8 16:53 /home/rtorrent/logs/tracker.log
my /var/www/rutorrent belongs recursively to www-data:www-data
in /var/www/rutorrent/conf/config.php I got :
Code:
$do_diagnostic = true;
$log_file = '/home/rtorrent/logs/rtorrent.log'; // path to log file (comment or leave blank to disable logging)the .rtorrent.rc part is the following :
Code:
log.open_file = "rtorrent", /home/rtorrent/logs/rtorrent.log
log.add_output = "debug", "rtorrent"
log.open_file = "torrent", /home/rtorrent/logs/torrent.log
log.add_output = "torrent_debug", "torrent"
log.open_file = "tracker", /home/rtorrent/logs/tracker.log
log.add_output = "tracker_debug", "tracker"

seems like I'm lost, any pointer is really appreciated smiley.gif
 

jith45

Member
May 25, 2018
960
0
16
effectivly shocked.gif
so now I got :
Code:
lotso@bigbenn ~ $ ls -la /tmp/errors.log
-rw-rw-rw- 1 www-data www-data 4491644 Nov 22 06:57 /tmp/errors.log
Code:
lotso@bigbenn ~ $ cat /var/www/rutorrent/conf/config.php | grep error
$log_file = '/tmp/errors.log'; // path to log file (comment or leave blank to disable logging)
as you can see the error log is filled :
Code:
lotso@bigbenn ~ $ ^ls -la^tail -f
tail -f /tmp/errors.log
[22.11.12 06:57:18] rtSetDataDir: dest_path : /media/raid5/Torrent
[22.11.12 06:57:18] rtSetDataDir: add path : 1
[22.11.12 06:57:18] rtSetDataDir: move files : 0
[22.11.12 06:57:18] rtSetDataDir: fast resume : 0
[22.11.12 06:57:18] rtExec: d.is_open, d.is_active
[22.11.12 06:57:18] rtSetDataDir: is_open=0, is_active=0
[22.11.12 06:57:18] rtExec: d.set_directory
[22.11.12 06:57:18] rtExec: d.open, d.close
[22.11.12 06:57:18] rtSetDataDir: finished
[22.11.12 06:57:18] SetDir: --- end ---
I enabled the debug in datadir plugin :
Code:
lotso@bigbenn ~ $ cat /var/www/rutorrent/plugins/datadir/conf.php | grep debug
// set "true" to enable debug output
$datadir_debug_enabled = true;

is it normal I don't see in the Log tab any information or errors that are written in the /tmp/error.log file ?
In fact in that log tab I never see any information displayed other than [22.11.2012 08:34:56] WebUI started.
 

somus1735

Member
May 25, 2018
833
0
16
Quote:
[22.11.12 06:57:18] rtSetDataDir: move files : 0


Turn on checkbox 'Move data files' on the corresponding dialog.

Quote :
is it normal I don't see in the Log tab any information or errors that are written in the /tmp/error.log file ?


It is normal.