Author |
Message |
soundoff
|
Posted: Wed Apr 16, 2008 4:02 pm |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
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' &
|
|
Top |
|
|
techman83
|
Posted: Wed Apr 16, 2008 6:15 pm |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
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.
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
soundoff
|
Posted: Thu Apr 17, 2008 7:17 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
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?
|
|
Top |
|
|
techman83
|
Posted: Thu Apr 17, 2008 6:32 pm |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
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.
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
soundoff
|
Posted: Fri Apr 18, 2008 3:08 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
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
|
|
Top |
|
|
soundoff
|
Posted: Fri Apr 18, 2008 3:12 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
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??
|
|
Top |
|
|
techman83
|
Posted: Sat Apr 19, 2008 8:09 pm |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
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/
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
elgordo123
|
Posted: Mon Apr 21, 2008 11:09 am |
|
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location:
Beaumont, CA
|
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.
_________________ ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital
|
|
Top |
|
|