datadir not working

das329717

Member
May 25, 2018
928
0
16
I'm using the 3.0 Stable with datadir plugin and _getdir. However, it seems that it's not working for me.

Under conf.php, I have it use rtorrent as user. By the way, webserver does work, but I want to use rtorrent user.

How can I debug it and see what's wrong? I've tried enabling debugging, but it didn't show anything.
 

dsouvik215

Member
May 25, 2018
896
0
16
What do you mean by "it's not working for me"? Do you get any errors on your webserver screen/logs?
Paste over some configs...
 

das329717

Member
May 25, 2018
928
0
16
It's just not working. After I select 'save as', there is just no difference. It remains in the same directory as it was initially added.

And the log... doesn't provide much information in my opinion..

[28.03.10 12:40:10]
[28.03.10 12:40:10] DataDir: --- begin ---
[28.03.10 12:40:10] DataDir: /home/user/rtorrent/downloads/Software, move files
[28.03.10 12:40:10] DataDir: run mode: "rtorrent"
[28.03.10 12:40:10] DataDir: script dir : /home/rapidl/user/rutorrent/plugins/datadir/
[28.03.10 12:40:10] DataDir: path to php : /usr/share/php5
[28.03.10 12:40:10] DataDir: hash : D3F59735B1AB8E2E83F353CEB511300066E671F7
[28.03.10 12:40:10] DataDir: data dir : /home/user/rtorrent/downloads/Software
[28.03.10 12:40:10] DataDir: move files : 1
[28.03.10 12:40:10] rtExec: execute
[28.03.10 12:40:10] DataDir: --- end ---

/home/user/rtorrent/downloads -- 0777
 

jith45

Member
May 25, 2018
960
0
16
one thing you should know:

there was a bug with autotools which probably effects this plugin as well (or might)


the bug was as follows:

If you have multiple users, the plugin wouldn't work for all of them, it would ONLY work for a single user, and only if you copied thier config file to the generica system config..so if your username was tom it would be

cp conf/users/tom/conf.php conf/


This bug for auto-tools was fixed in the latest svn but may effect this other plugins as well because they are all written by the same guy
 

somus1735

Member
May 25, 2018
833
0
16
Quote
Seeyabye, try moving with debug enabled in plugins/datadir/conf.php​


Isn't that what I'm doing at the momenet? If not, how did I get a debug on?

@wonslug,

Yeah, somehow Autotools don't work for me either.

Unfortunately, I'm not using it with multiple user and have yet to used it. I might give SVN version a try.
 

jith45

Member
May 25, 2018
960
0
16
are you using authentication thouhg?

if you have webauth, then you ARE using a multi-user setup even if you "arent"


and yes, ALWAYS check the svn version. This is where the latest bug fixes are.
 

somus1735

Member
May 25, 2018
833
0
16
Does your web authentication mean Lighttpd authentication? Because I'm using htaccess and htpasswd (apache)..... so I'm not sure whether you would consider it as authentication.
 

somus1735

Member
May 25, 2018
833
0
16
Ok, I'm still not so sure what's wrong. I've removed datadir plugin, but left out autotools and _getdir.

It seems that when I installed autotools plugin, and once I upload a .torrent file, at screen I would see Bad Error Code. Does this mean there is something wrong with autotools?

Quote

(15:08:43) Download event action failed: Bad return code.


I'm using the latest version for ruTorrent and using Stable version of rTorrent. Please guide me on this.

Things to check,
* plugins dir, all owned by webserver
* permission 755 on dirs and 644 on php files
* permission 777 on /home/users/rtorrent/ which contains downloads, .session and torrents.
* I've tried turning on autodebug to true, but there was no log written by it.

Regards,
Seeyabye
 

jith45

Member
May 25, 2018
960
0
16
for the logging, there is 2 spots you need to edit

one is in the plugindir's conf.php
the other is in the main rutorrent config.php
 

somus1735

Member
May 25, 2018
833
0
16
It's on, I'm very sure.

Code:
$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logg$
$saveUploadedTorrents = true;
 

dsouvik215

Member
May 25, 2018
896
0
16
Quote
It's on, I'm very sure.​

1) Open rtorrent console, press Ctrl-X and type
log.execute=/tmp/exec.log
Or simple add this line to rtorrent.rc and restart rtorrent.
2) Try to 'save as' your torrent.
3) Remove line from rtorrent.rc (if you add it) and restart rtorrent
4) Attach here files /tmp/exec.log and /tmp/errors.log
 

jith45

Member
May 25, 2018
960
0
16
It's working now! Thanks Novik! That's the log that should talk! It seems like from reading the log, I got Can't read Input file. Which means that there was permission issue. I played with the permissions a bit and got it working. Now both Autotools and datadir works