LinHES Forums
http://forum.linhes.org/

HOWTO: torrentflux-b4rt
http://forum.linhes.org/viewtopic.php?f=11&t=17945
Page 2 of 2

Author:  soundoff [ Wed Apr 16, 2008 4:02 pm ]
Post subject: 

I should have mentioned that is using Perl + DBI/DBD setting.

if i use PHP + fluxcli.php fluxd wont start

Code:
[2008/04/17 - 07:59:17][CORE] Error : initializing FluxDB : checkFluxConfig failed. config does not exist : fluxd_dbmode
[2008/04/17 - 07:59:42][FRONTEND] Error starting fluxd.
cd '/var/www/torrentflux/'; HOME='/myth/torrents/'; export HOME; nohup /usr/bin/perl -I '/var/www/torrentflux/bin/fluxd' -I '/var/www/torrentflux/bin/lib' '/var/www/torrentflux/bin/fluxd/fluxd.pl' start '/var/www/torrentflux/' '/myth/torrents/' '/usr/bin/php' 'php' 1>> '/myth/torrents/.fluxd/fluxd.log' 2>> '/myth/torrents/.fluxd/fluxd-error.log' &

Author:  techman83 [ Wed Apr 16, 2008 6:15 pm ]
Post subject: 

I've never been able to get the PHP + fluxcli.php one working either. You'll need to make sure you have the relevant perl modules installed.

With fluxd stopped, hit the check button. It should return a pass for everything except DB: SQlite and DB: Pg, that is ok because we're using MySQL.

You can also run a DBdebug. See what that says. Sample working output here:
Code:
[2008/04/17 - 08:08:26][CORE] debugging database...
[2008/04/17 - 08:08:26][CORE] creating $fluxDB
[2008/04/17 - 08:08:26][CORE] initializing $fluxDB (php)
[2008/04/17 - 08:08:26][FluxDB] initializing (mode: php ; docroot: /var/www/torrentflux/ ; php: /usr/bin/php)
[2008/04/17 - 08:08:26][FluxDB] data loaded and cached, FluxDB ready.
[2008/04/17 - 08:08:26][CORE] FluxConfig("path") : "/var/www/torrentflux/downloads/"
[2008/04/17 - 08:08:26][CORE] FluxConfig("docroot") : "/var/www/torrentflux/"
[2008/04/17 - 08:08:26][CORE] FluxConfig("default_theme") : "default"
[2008/04/17 - 08:08:26][CORE] FluxConfig("default_theme") after set : "foo"
[2008/04/17 - 08:08:26][CORE] FluxConfig("default_theme") after reload : "default"
[2008/04/17 - 08:08:26][CORE] destroying $fluxDB
[2008/04/17 - 08:08:26][FluxDB] shutdown
[2008/04/17 - 08:08:26][CORE] initializing $fluxDB (dbi)
[2008/04/17 - 08:08:26][FluxDB] initializing (mode: dbi ; docroot: /var/www/torrentflux/ ; php: /usr/bin/php)
[2008/04/17 - 08:08:26][FluxDB] data loaded and cached, FluxDB ready.
[2008/04/17 - 08:08:26][CORE] DatabaseDSN : "DBI:mysql:torrentflux:localhost"
[2008/04/17 - 08:08:26][CORE] FluxConfig("path") : "/var/www/torrentflux/downloads/"
[2008/04/17 - 08:08:26][CORE] FluxConfig("docroot") : "/var/www/torrentflux/"
[2008/04/17 - 08:08:26][CORE] FluxConfig("default_theme") : "default"
[2008/04/17 - 08:08:26][CORE] FluxConfig("default_theme") after set : "foo"
[2008/04/17 - 08:08:26][CORE] FluxConfig("default_theme") after reload : "default"
[2008/04/17 - 08:08:26][CORE] destroying $fluxDB
[2008/04/17 - 08:08:26][FluxDB] shutdown
[2008/04/17 - 08:08:26][CORE] database debug done.


If it isn't anything obvious I'm not sure. Your not mapping your downloads folder to a file share of some description (doesn't look like it though). Could be just a perl module or something in the database is corrupt.

Author:  soundoff [ Thu Apr 17, 2008 7:17 am ]
Post subject: 

Check:
Code:
[2008/04/17 - 23:14:30][CORE] checking requirements...
[2008/04/17 - 23:14:30][CORE] 1. CORE-Perl-modules
[2008/04/17 - 23:14:30][CORE]    - OK : IO::Select
[2008/04/17 - 23:14:30][CORE]    - OK : IO::Socket::UNIX
[2008/04/17 - 23:14:30][CORE]    - OK : IO::Socket::INET
[2008/04/17 - 23:14:30][CORE]    - OK : POSIX
[2008/04/17 - 23:14:30][CORE] 2. Database-Perl-modules
[2008/04/17 - 23:14:30][CORE]    - OK : DBI
[2008/04/17 - 23:14:30][CORE]    - OK : DBD::mysql
[2008/04/17 - 23:14:30][CORE]    - FAILED : DBD::SQLite
[2008/04/17 - 23:14:30][CORE]    - FAILED : DBD::Pg
[2008/04/17 - 23:14:30][CORE] 3. Result : PASSED



DBdebug:

Code:
[2008/04/17 - 23:15:27][CORE] debugging database...
[2008/04/17 - 23:15:27][CORE] creating $fluxDB
[2008/04/17 - 23:15:27][CORE] initializing $fluxDB (php)
[2008/04/17 - 23:15:27][FluxDB] initializing (mode: php ; docroot: /var/www/torrentflux/ ; php: /usr/bin/php)
[2008/04/17 - 23:15:27][CORE] error : checkFluxConfig failed. config does not exist : fluxd_dbmode


As you can see it falls over pretty early! Any ideas?

Author:  techman83 [ Thu Apr 17, 2008 6:32 pm ]
Post subject: 

Hrm Sounds like your DB is a little messed up. Go back in to webmin and check that the tf_settings table has the following lines:

Code:
fluxd_dbmode     dbi
fluxd_loglevel     0
fluxd_Fluxinet_enabled     0
fluxd_Qmgr_enabled     0
fluxd_Rssad_enabled     0
fluxd_Watch_enabled     1
fluxd_Trigger_enabled     0
fluxd_Maintenance_enabled     1
fluxd_Fluxinet_port     3150
fluxd_Qmgr_interval     30
fluxd_Qmgr_maxTotalTransfers     1
fluxd_Qmgr_maxUserTransfers     1
fluxd_Rssad_interval     1800
fluxd_Rssad_jobs     
fluxd_Watch_interval     120
fluxd_Watch_jobs     U=username:D=/watch/ <- Your username and location where to watch (remove this extra bit)
fluxd_Maintenance_interval     600
fluxd_Maintenance_trestart     1
fluxd_Trigger_interval     600


If you don't care about your stats and current config it may be worth dropping the torrentfluxb4rt database and re-importing.

Author:  soundoff [ Fri Apr 18, 2008 3:08 am ]
Post subject: 

my settings:

Code:
fluxd_dbmode     dbi
fluxd_loglevel     0
fluxd_Fluxinet_enabled     0
fluxd_Qmgr_enabled     1
fluxd_Rssad_enabled     0
fluxd_Watch_enabled     1
fluxd_Trigger_enabled     0
fluxd_Maintenance_enabled     1
fluxd_Fluxinet_port     3150
fluxd_Qmgr_interval     15
fluxd_Qmgr_maxTotalTransfers     3
fluxd_Qmgr_maxUserTransfers     3
fluxd_Rssad_interval     1800
fluxd_Rssad_jobs     
fluxd_Watch_interval     120
fluxd_Watch_jobs     U=username:D=/myth/torrents/.transfer/
fluxd_Maintenance_interval     60
fluxd_Maintenance_trestart     1
fluxd_Trigger_interval     600


I dont care at all about losing settings / history so if you can explain how i blow away the database and reimport it that would be great!!

thanks for your help

Author:  soundoff [ Fri Apr 18, 2008 3:12 am ]
Post subject: 

just noticed something interesting..

Code:
[2008/04/17 - 23:15:27][CORE] error : checkFluxConfig failed. config doesnot exist : fluxd_dbmode"


it fails at "fluxd_dbmode" but that setting is definately in the table. I think the table is populated fine, its just not accessible for some reason.

in the line above is says
Code:
[2008/04/17 - 23:15:27][FluxDB] initializing (mode: php ; docroot: /var/www/torrentflux/ ; php: /usr/bin/php)


I have set it to use "Perl + DBI/DBD" but it says it us using PHP mode??

Author:  techman83 [ Sat Apr 19, 2008 8:09 pm ]
Post subject: 

Interesting, Same with the config on my development mythbox. I only tested the download function of Torrentfluxb4rt when I wrote the guide.

So I tested and I'm getting the same problem on my dev box. But it works on my other box (runs inside an Ubuntu Server VM on my fileserver).

I've compared the configs, but I can't see anything obvious. I'm not sure when I'll get time to debug further, but you could have a bit of a poke around the torrentflux forums. If you find anything report back.

http://www.torrentflux.com/forum/

Author:  elgordo123 [ Mon Apr 21, 2008 11:09 am ]
Post subject: 

Just to chime in here... I followed your instructions here on and the wiki. Using Tornado as the client, and it worked flawlessly. I tested it out by getting a missed Battlestar Galactica episode and I couldn't believe how fast it was. I didn't do it side-by-side, but I normally use BitTyrant and it felt like this was faster than BitTyrant.

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/