epsylon3 / torrentflux Goto Github PK
View Code? Open in Web Editor NEWTorrentFlux-NG - Based on Torrent Flux B4rt (recent SVN history)
Home Page: http://epsylon3.github.com/torrentflux
License: GNU General Public License v2.0
TorrentFlux-NG - Based on Torrent Flux B4rt (recent SVN history)
Home Page: http://epsylon3.github.com/torrentflux
License: GNU General Public License v2.0
======================================================================= $Id$ vim: set comments=fb\:o,fb\:#,fb\:-,fb\:*,fb\:A.,fb\:Q. et tw=72 sw=4: ======================================================================= /********************************************************************** TorrentFlux-NG README file **********************************************************************/ Contents: ========= 1. Introduction 2. Features 3. Requirements 3.1 Minimum Requirements 3.2 Additional/Optional Feature Requirements 3.3 Fluxd Requirements 4. Installation 5. Support /********************************************************************** 1. Introduction **********************************************************************/ TorrentFlux-NG is based on TorrentFlux B4rt It includes the new RedRound theme and use jQuery TorrentFlux-NG is a web based transfer control client. it allows you to control your bittorrent transfers from anywhere using a highly configurable web based front end. TorrentFlux-NG is very easy to install on a web server and includes a simple setup script which can be accessed from a web browser. Just upload the files to your web server, run the setup script and your torrentflux-b4rt installation is ready to go. Torrentflux-b4rt was originally based on the TorrentFlux BitTorrent controller written by Qrome, although has recently undergone a major rewrite to allow transparent integration with a number of transfer clients and protocols: TorrentFlux-NG has builtin support for transfers via: o BitTorrent - supported client(s) include: * Original BitTorrent/Mainline - supports trackerless torrents and encryption * BitTornado - uses slightly less resources than the original BT, allows file priority for downloading files selectively * Transmission - much smaller memory footprint without much loss in functionality * Azureus - control a number of transfers from a single control process, tighter control on total max bandwidth for all torrents o HTTP/FTP - supported client(s) include: * wget - standard lightweight file transfer utility on Linux, supported on many other platforms also o Usenet - supported client(s) include: * nzbperl - perl based application allowing multi-connection news server downloads from nzb files with functionality for bandwidth throttling. TorrentFlux-NG incorporates a huge number of advanced options to allow you finer grained control of your transfers. The administration panel in torrentflux-b4rt includes a large number of options to allow you fine grained control over every aspect of your bittorrent/transfers usage. TorrentFlux-NG is also a multi-user application, allowing you to create individual accounts and assign restrictions to those accounts as you wish. /********************************************************************** 2. Features **********************************************************************/ Please see the FEATURES file for a comprehensive list of Torrentflux-b4rt features. /********************************************************************** 3. Requirements **********************************************************************/ Due to the extensible nature of torrentflux-b4rt, there are a variety of 3rd party tools/utilities and extra functionality that can be enabled from within the administration control panel. TorrentFlux-NG also features a service daemon called Fluxd which can be used to schedule rss feed downloads, keep watch over running torrents and restart them if they die. The 3rd party utils/functionality and Fluxd all have their own requirements. For this reason the requirements section is split into the following sections: 3.1 Minimum Requirements 3.2 Additional/Optional Feature Requirements 3.3 Fluxd Requirements ALWAYS install the required items from the package installation manager for your OS whenever possible. This will save a lot of time and headaches, and ensure all the dependencies are installed correctly. See your OS documentation for details about the software management systems available on your OS. /********************************************************************** 3.1 Minimum Requirements **********************************************************************/ This section lists the minimum requirements required to operate torrentflux with the basic core functionality. This list may seem daunting, but most Unix like OSs have many of these features available as part of their software distribution system. /****************************************************************** Notes: ===== - The following lists are NOT exhaustive - if you use a Unix like OS/webserver/database/etc not listed below, basic functionality of torrentflux-b4rt may well work. Success reports installing torrentflux-b4rt on other OSs other than those below above are welcome on the forum: http://tf-b4rt.berlios.de/forum/ - IT IS STRONGLY ADVISED THAT YOU INSTALL THE COMPONENTS LISTED BELOW FROM THE SOFTWARE DISTRIBUTION SYSTEM INCLUDED WITH YOUR OS (ie apt-get, rpm package management, FreeBSD ports system, etc). ******************************************************************/ The core minimum requirements follow below: o A Unix like OS (no Win32 support). Current tested OSs include: * Linux: o Debian, Ubuntu, Gentoo, RedHat, Fedora, NSLU2, ClarkConnect - amongst others Note: ===== SELinux should be turned off. * BSD: o FreeBSD, OpenBSD, NetBSD * Apple: o Mac OS X o A Web Server. Current tested webservers include: * Apache http://www.apache.org/ * LightTPD http://www.lighttpd.net/ o An SQL-Database. Currently Supported databases: * MySQL http://www.mysql.com/ * SQLite http://www.sqlite.org/ * PostgreSQL http://www.postgresql.org/ o PHP in 'web mode' (ie mod_php or php-cgi - preferably mod_php) >= 4.3.x built with database (MySQL, SQLite or PostgreSQL), session, sockets and PCRE support enabled. For image recognition/captcha support for logins, GD support must be enabled in PHP. o PHP in 'commandline mode' (php-cli) >= 4.3.x built with database (MySQL, SQLite or PostgreSQL), session, sockets and PCRE support enabled. http://www.php.net/ PHP Notes: ========== o Safe Mode must be turned off: * php.ini: safe_mode = Off o Allow Url fopen must be allowed: * php.ini: allow_url_fopen = On o open_basedir must be empty: * php.ini: open_basedir = '' Note: some web control panels like cPanel use open_basedir to restrict users as to what they can do with PHP. torrentflux-b4rt does NOT officially support installations on shared hosting platforms due to the complications that arise (such as the use of open_basedir amongst many other things). However if you do choose to attempt to install torrentflux-b4rt on a shared host running a control panel such as cPanel, be aware of the problems open_basedir can cause. Please see: http://php.net/manual/en/features.safe-mode.php#ini.open-basedir for more info. o As mentioned above, both the PHP web module and the commandline / cli binary must be installed, both with support for the database you plan to use and with support for PCRE and sessions. Check the package management system documentation/website for your OS for more info on installing PHP with support for web and cli. o Python is required for the BitTorrent, BitTornado and Azureus bittorrent clients: * Python >= 2.2 for BitTornado * Python >= 2.4 for BitTorrent Mainline (original 'BitTorrent client) * Python >= 2.2.1 for Azureus o Perl >= 5.6 or higher for fluxd, nzbperl.pl, ttools.pl and fluxpoller.pl. See section 3.2 below for extra info. Once more(!), it is highly advisable to install these requirements using the recommended package management system for your OS. /********************************************************************** 3.2 Additional/Optional Feature Requirements **********************************************************************/ The following is a list of additional requirements needed before enabling additional features and options in torrentflux-b4rt. By default these options or features are disabled and can be enabled via the administration panel - please ensure the requirements are installed before enabling additional features. As mentioned above, it is strongly advised that these requirements are installed from your OS's software distribution system to ensure all dependencies are installed correctly. Additional/optional feature requirements follow below: o BitTorrent Mainline Client requirements: * PyCrypto (Python Cryptography Toolkit) http://sourceforge.net/projects/pycrypto/ * Twisted Python libs http://twistedmatrix.com/trac/ Note: ===== Twisted also requires Zope Interface >=3.0.1 http://www.zope.org/Products/ZopeInterface/ see Twisted installation docs for more info. o Azureus/Vuze Client requirements: * Azureus 2.5.0.0 or higher with the XML/HTTP Plugin http://azureus.sourceforge.net http://azureus.sourceforge.net/plugin_details.php?plugin=xml_http_if see azureus installation doc (doc/azureus.txt) for more info. A new interface with xmwebui rpc interface will come soon... o wget transfer functionality requirements: * wget http://www.gnu.org/software/wget/ o nzbperl.pl requirements: * UUDeview http://fpx.de/fp/Software/UUDeview/ The following perl modules are also required for nzbperl: * IO::File * IO::Select * IO::Socket::INET * File::Basename * Getopt::Long * Cwd * XML::Simple * XML::DOM Optional nzbperl perl modules: * Threads * Thread::Queue o Archive (rar/zip) extraction functionality requirements: * unrar http://www.rarlab.com/rar/ o SFV file integrity checking functionality requirements: * cksfv http://zakalwe.fi/~shd/foss/cksfv/ o vlc streaming functionality requirements: * vlc http://www.videolan.org/ o ttools.pl is an alternative BitTorrent metadata client that supports metadata scraping. It can be enabled in the Administration panel. It requires the following modules: * Digest::SHA1 (perl -MCPAN -e "install Digest::SHA1") * LWP::UserAgent (perl -MCPAN -e "install LWP::UserAgent") o Mac OS X specific: o Compilation of Transmission on Mac OS X requirements: * Apple Developer Tools http://developer.apple.com/tools/ o wget functionality on Mac OS X requirements: * wget http://www.statusq.org/images/wget.zip /********************************************************************** 3.3 Fluxd Requirements **********************************************************************/ The fluxd daemon works as part of torrentflux-b4rt to run in the background on your server performing various tasks that you schedule. Fluxd is started from the Administration control panel - by default it is not running. Fluxd is written in the Perl scripting language and requires a number of perl modules to run. In the following list, the perl command is given for you to install the corresponding module from CPAN. HOWEVER, most of these modules should be available from your OS's package management system and it is strongly advised that you install the modules from there rather than directly using the perl CPAN system. The required perl modules are as follows: o Core fluxd functionality: * IO::Select (perl -MCPAN -e "install IO::Select") * IO::Socket::UNIX (perl -MCPAN -e "install IO::Socket::UNIX") * IO::Socket::INET (perl -MCPAN -e "install IO::Socket::INET") * POSIX (perl -MCPAN -e "install POSIX") IMPORTANT: ========== Additionally, Fluxd uses a PHP based helper script called fluxcli.php and for this to run correctly the commandline (cli) version of PHP must be installed with the correct extensions (database, PCRE, socket and session support). See the notes above in section 3.1 for more information. o (Optional) Fluxd database connectivity using Perl DBI - Perl DBI db connectivity is not required to run Fluxd. The option exists to enable perl DBI however in the Admin panel. The following modules are required to run Fluxd in Perl DBI mode: * all database-types: DBI (perl -MCPAN -e "install Bundle::DBI") * MySQL: DBD::mysql (perl -MCPAN -e "install DBD::mysql") * SQLite: DBD::SQLite (perl -MCPAN -e "install DBD::SQLite") * PostgreSQL: DBD::Pg (perl -MCPAN -e "install DBD::Pg") o (Optional) Fluxinet functionality requirements - Fluxinet allows remote connections directly to the Fluxd daemon over TCP. It is not enabled by default: * IO::Select (perl -MCPAN -e "install IO::Select") * IO::Socket::INET (perl -MCPAN -e "install IO::Socket::INET") /********************************************************************** 4. Installation **********************************************************************/ TorrentFlux-NG can be installed quickly from a web browser using the included setup script. For full details of how to install, please see the INSTALL file. It is also possible to Upgrade an existing installation of 2.1-b4rt or official TF (2.1 - 2.3) to TorrentFlux-NG. Details about upgrades can be found in the INSTALL file. /********************************************************************** 5. Support **********************************************************************/ Please see the SUPPORT file for information on getting help with your Torrentflux-NG installation.
When viewing the transfer details "stats" page, after the first auto refresh, every counter become undefined
Hi!!
Is there any way to get rTorrent working with TorrentFlux-NG?
Regards
Hi,
First of all, thanks for that amazing job!! It's userfriendly, nice and functional!
I have some troubles with seting up transmission: I have compiled Transmission with the paches but the torrents doesn't start when adding. Here i have a log:
LOG
[2012/07/23 - 15:06:38] transmission-start : test.torrent
[2012/07/23 - 15:06:38] setting sharekill-param to 0
[2012/07/23 - 15:06:38] executing command :
cd '/home/tflux/admin/'; HOME='/home/tflux/'; export HOME;cd '/home/tflux/admin/'; nohup '/usr/local/bin/transmission-cli' -d '0' -u '0' -p '30000' -W '0' -L '0' -E 6 -O 'admin' '/home/tflux/.transfers/test.torrent' 1>> '/home/tflux/.transfers/test.torrent.log' 2>> '/home/tflux/.transfers/test.torrent.log' &
[15:06:38.830] RPC Server: Adding address to whitelist: 127.0.0.1
[15:06:38.830] DHT: Reusing old id
[15:06:38.830] DHT: Bootstrapping from 66 nodes
[15:06:38.830] DHT: Bootstrapping from 13 IPv6 nodes
[2012/07/23 - 15:06:38] transmission 2.12 (11412) starting up :
[2012/07/23 - 15:06:38] - torrent : /home/tflux/.transfers/test.torrent
[2012/07/23 - 15:06:38] - owner : admin
[2012/07/23 - 15:06:38] - dieWhenDone : 0
[2012/07/23 - 15:06:38] - seedLimit : 0
[2012/07/23 - 15:06:38] - bindPort : 30000
[2012/07/23 - 15:06:38] - uploadLimit : 0
[2012/07/23 - 15:06:38] - downloadLimit : 0
[2012/07/23 - 15:06:38] - natTraversal : 1
[2012/07/23 - 15:06:38] - displayInterval : 6
[2012/07/23 - 15:06:38] - downloadDir : /home/tflux/admin
transmission-cli 2.12 (11412) - patched for TorrentFlux-NG
[15:06:38.965] Saved "/home/tflux/.config/transmission/torrents/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.torrent"
[2012/07/23 - 15:06:38] - downloadDir from torrent object, usually loaded from resume data : /home/tflux/admin
[2012/07/23 - 15:06:38] Initialized status-facility. (/home/tflux/.transfers/test.torrent.stat)
[2012/07/23 - 15:06:38] Initialized command-facility. (/home/tflux/.transfers/test.torrent.cmd)
[2012/07/23 - 15:06:38] Wrote pid-file: /home/tflux/.transfers/test.torrent.pid (27864)
[15:06:47.170] Port Forwarding: State changed from "Not forwarded" to "???"
Is there a known issue for that?
BTW in the readme, there is no "make install" command.
I hope that i didn't done something wrong!
Shame that a lot of trackers blacklists BitTornado!
Regards, Firescalp
Hi, I found a bug in "upgrade/1.0b2_1.0NG/upgrade.php" (mysql)
after upgrading, the only values of "tf_settings"
('path', '/home/'),
('transmission_rpc_enable', '0'),
('transmission_rpc_host', '127.0.0.1'),
('transmission_rpc_port', '9091'),
('transmission_rpc_user', 'transmission'),
('transmission_rpc_password', ''),
('vuze_rpc_enable', '0'),
('vuze_rpc_host', '127.0.0.1'),
('vuze_rpc_port', '19091'),
('vuze_rpc_user', 'vuze'),
('vuze_rpc_password', ''),
('enable_torrent', '1'),
('nzbperl_ssl', '0'),
('nzbperl_port', '119');
the update erase all other values.
TorrentFlux uses a few SQL statements that are not supported by PostgreSQL.
CREATE TABLE IF NOT EXISTS tf_transmission_user ( tid VARCHAR(40) NOT NULL DEFAULT '', uid INTEGER(10) NOT NULL DEFAULT 0,
CREATE TABLE IF NOT EXISTS
is not supported in PG. There is apparently a way to check for existing tables that is somewhat more cumbersome. Integers do not take a size. This query fails. The lines (without the check) should read:
CREATE TABLE tf_transmission_user ( tid VARCHAR(40) NOT NULL DEFAULT '', uid INTEGER NOT NULL DEFAULT 0,
line 205:
array_push($queries[$cqt][$cdb], "ALTER TABLE tf_transfer_totals DROP PRIMARY KEY");
There is no DROP PRIMARY KEY
in PG. The line should read:
array_push($queries[$cqt][$cdb], "ALTER TABLE tf_transfer_totals DROP CONSTRAINT tf_transmission_user_pkey");
In practice this still failed for me. That whole SQL stuff needs to be rewritten to check for prerequisites.
line 53:
array_push($queries[$cqt][$cdb], "INSERT INTO tf_links VALUES (NULL,'http://www.torrentflux-ng.org/','TorrentFlux-NG','0')");
This causes breakage in PG because the lid column is defined as NOT NULL
. This line has to be moved to the vendor specific sections. For PG this line should then read:
array_push($queries[$cqt][$cdb], "INSERT INTO tf_links VALUES (nextval('tf_links_lid_seq'::regclass),'http://www.torrentflux-ng.org/','TorrentFlux-NG','0')");
or a more elegant form, if any exists.
There are probably more quirks and issues that I did not find.
In html/inc/install/queries.install.php all the MySQL queries end with "TYPE=MyISAM". This is deprecated and in fact, recent versions of MySQL removed support for this completely, breaking Torrentflux-ng.
The solution is to replace "Type=MyISAM" with "ENGINE=MYISAM".
Hi Epsylon3,
I am implementing the existing search engines in my code.
However I noticed that some code, although it runs, doesn't put the correct information with the correct result.
I think this is an issue with the demonoid specific search engine.
In the result the torrents are sorted by the day they are added. So multiple torrents on the same day don't have a "Added on" field and the last one of that day takes the day before that (this is because of the strtok that happens in the code, after the day added, there is no such exact sequence).
Just wanted to let you know.
Greetings!
Support for the deluge daemon would be a nice feature.
After being injected by Fluxd-Watch transmissionrpc transfers don't start.
Error:
Error: Database-Error
ErrorMsg :
ERROR: invalid input syntax for integer: ""
LINE 1: ...E tid='a14c963a39361e775ee407642a5853388642a49a' AND uid=''
Notice:
PHP Notice: Undefined index: uid in html/inc/classes/ClientHandler.transmissionrpc.php on line 135
Possible fix: pannal@9eb2afe
I can see that the support is al least hinted in the function.dispatcher.php, however there is no way I can add a magnet file to the queue. I'm currently using transsmision-daemon, is magnet supported? Planned?
Thanks!
Fedora 19
lighttpd/1.4.32
Apache/2.4.6 (tried both)
PHP 5.5.4
Transmission-client 2.73 (patched and compiled)
Transmission-daemon 2.80-2
Having no issues with BitTornado, however it does use more memory per instance than Transmission in my experience, so I'd like to use Transmission if possible.
Transmission-client just does not seem to fetch any peers or initiate and download at all. Transmission-daemon does everything fine, except no stat collection occurs and thus renders Torrentflux essentially pointless when using Transmission.
I very much doubt Transmission is broken, so if you have any idea why Torrentflux isn't playing with them nicely, please let me know as I may have some time to fix the problem myself if you are busy.
The superadmin should have a stack trace in error messages since it's easier to find the mistake in the code (if there was any and not a configuration issue ;) )
Is it possible to patch torrentflux to works with SQLITE PDO ? (and enjoy the latest version of PHP + sqlite3 ?)
Selecting all transfers and hitting the batch operation "Stop" doesn't stop all transfers. I can't make out anything in the logs though, the permissions are correct.
An easy and very useful feature would be to integrate youtube-dl app within the flux interface.
Should be very similar to wget (if not simplier) and I can help to develop, specially if advice is given. I had a look at the system but not familiar with the struct nor dataflow.
After being added by Fluxd-Watch a transmissionrpc transfer shows up with unknown client type "U" in the transfer list due to incomplete data.
Possible fix: pannal@7cf1ef4
Hi
When i get logged in i m getting following error.
Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /var/www/html/Torrentflux/html/inc/functions/functions.core.transfer.php on line 563
Also Torrent are not starting and when i checked in log i got following message
cd '/var/www/html/Downloads/root/'; HOME='/var/www/html/Downloads/'; export HOME; nohup /usr/bin/python -OO '/var/www/html/Torrentflux/html/bin/clients/tornado/tftornado.py' 'False' '0' 'root' '/var/www/html/Downloads/.transfers/Yamla_Pagla_Deewana_2_2013_New_DVDScr_-Xvid-Team_IcTv_1.avi.torrent' --responsefile '/var/www/html/Downloads/.transfers/Yamla_Pagla_Deewana_2_2013_New_DVDScr_-Xvid-Team_IcTv_1.avi.torrent' --display_interval 1 --max_download_rate '0' --max_upload_rate '0' --max_uploads '40' --minport '49160' --maxport '49300' --rerequest_interval '1800' --super_seeder '0' --max_connections '400' 1>> '/var/www/html/Downloads/.transfers/Yamla_Pagla_Deewana_2_2013_New_DVDScr_-Xvid-Team_IcTv_1.avi.torrent.log' 2>> '/var/www/html/Downloads/.transfers/Yamla_Pagla_Deewana_2_2013_New_DVDScr_-Xvid-Team_IcTv_1.avi.torrent.log' &
[2013/06/09 - 12:50:55] tornado starting up :
[2013/06/09 - 12:50:55] - torrentfile : /var/www/html/Downloads/.transfers/file.torrent
[2013/06/09 - 12:50:55] - userName : user
[2013/06/09 - 12:50:55] - transferStatFile : /var/www/html/Downloads/.transfers/file.torrent.stat
[2013/06/09 - 12:50:55] - transferCommandFile : /var/www/html/Downloads/.transfers/file.torrent.cmd
[2013/06/09 - 12:50:55] - transferLogFile : /var/www/html/Downloads/.transfers/file.avi.torrent.log
[2013/06/09 - 12:50:55] - transferPidFile : /var/www/html/Downloads/.transfers/file.torrent.pid
[2013/06/09 - 12:50:55] - autoDie : False
[2013/06/09 - 12:50:55] - shareKill : 0
[2013/06/09 - 12:50:55] - minport : 49160
[2013/06/09 - 12:50:55] - maxport : 49300
[2013/06/09 - 12:50:55] - max_upload_rate : 0
[2013/06/09 - 12:50:55] - max_download_rate : 0
[2013/06/09 - 12:50:55] - min_uploads : 4
[2013/06/09 - 12:50:55] - max_uploads : 40
[2013/06/09 - 12:50:55] - min_peers : 20
[2013/06/09 - 12:50:55] - max_initiate : 40
[2013/06/09 - 12:50:55] - max_connections : 400
[2013/06/09 - 12:50:55] - super_seeder : 0
[2013/06/09 - 12:50:55] - security : 1
[2013/06/09 - 12:50:55] - auto_kick : 1
[2013/06/09 - 12:50:55] - crypto_allowed : 0
[2013/06/09 - 12:50:55] - crypto_only : 0
[2013/06/09 - 12:50:55] - crypto_stealth : 0
[2013/06/09 - 12:50:55] - priority :
[2013/06/09 - 12:50:55] - alloc_type : normal
[2013/06/09 - 12:50:55] - alloc_rate : 2.0
[2013/06/09 - 12:50:55] - buffer_reads : 1
[2013/06/09 - 12:50:55] - write_buffer_size : 4
[2013/06/09 - 12:50:55] - check_hashes : 1
[2013/06/09 - 12:50:55] - max_files_open : 50
[2013/06/09 - 12:50:55] - upnp_nat_access : 1
[2013/06/09 - 12:50:55] writing pid-file : /var/www/html/Downloads/.transfers/file.torrent.pid (17241)
[2013/06/09 - 12:50:55] tornado up and running.
[2013/06/09 - 12:50:56] error: Problem connecting to tracker - [Errno 13] Permission denied
[2013/06/09 - 12:51:56] error: Problem connecting to tracker - [Errno 13] Permission denied
[2013/06/09 - 12:52:56] error: Problem connecting to tracker - [Errno 13] Permission denied
[2013/06/09 - 12:53:57] error: Problem connecting to tracker - [Errno 13] Permission denied
The top bar in RedRound should use jquery.stop(true, true) to avoid weird behaviour when hovering while in animation state.
change in /inc/functions/functions.admin.php
1114c1114
++ function updateThisUser($user_id, $org_user_id, $pass1, $userType, $hideOffline, $email_address) {
1126c1126,1127
++ $rec['email_address'] = $email_address;
++ if ($pass1 != "") {
1127a1129
++ }
and /inc/iid/admin/updateUser.php
48c48
++ if (((IsUser($org_user_id)) && (!IsUser($user_id)) && ($user_id != '') && ($passwordCheck === true)) || (($user_id == $org_user_id) && ($passwordCheck === true)) ) {
56c56
++ @Header("location: admin.php?op=editUser&user_id=".urlencode($user_id));
58c58
++ } /*elseif($email_address != "") {
62c62
++ }*/
here are the logs from the lighttpd logs.
2013-06-27 19:08:59: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Notice: Array to string conversion in /opt/web/blackblock.22decembre.eu/torrentflux/inc/classes/ClientHandler.transmissionrpc.php on line 140
PHP Notice: Array to string conversion in /opt/web/blackblock.22decembre.eu/torrentflux/inc/functions/functions.rpc.transmission.php on line 155
PHP Notice: Array to string conversion in /opt/web/blackblock.22decembre.eu/torrentflux/inc/classes/ClientHandler.transmissionrpc.php on line 169
I checked, the transmission daemon is working well itself.
As they are in decimal prefixed format, not binary, at least in the current version of transmissionrpc. (1000 vs. 1024, kB vs. KiB etc.)
Possible fix: pannal@ca90d3a
Hi, I've just installed TF-NG on my server and been trying to get Transmission 2.50 to work with it.
So far I've got Transmission to run using the same user as my lighttpd, and adding torrent into TF-NG and starting it will start it in Transmission as well.
However, that's where it all goes wrong.
TF-NG will only display "Leeching" and the progress bar is stuck at 0%.
Using transmission-remote, I can see that the torrent has been added and is downloading.
Even when the torrent finishes downloading, TF-NG still shows "Leeching" and "0%".
Deleting the torrent from TF-NG doesn't remove the torrent from tranmission-daemon.
It still shows that it's seeding in transmission-daemon.
Does anyone know what's could be the problem?
Could it be that transmission 2.50 has some new code that doesn't work with TF-NG yet?
It would be great if instructions to configure transmission-daemon be added into the TF-NG Install/Readme file.
Hope there's an answer, thank you!
I get this message post-setup:
Error in query isAuthenticated()
Fatal error: Call to undefined function performAuthentication() in /home/sparkanime/domains/flux.sparkanime.net/public_html/inc/main.internal.php on line 77
When enabling Transmission-RPC, the index page returns back as being blank. To get back to settings you've got to type the admin.php address in.
Disabling RPC returns the index page to normal.
when i add dirs to list of dest dirs for files move it uppercased by css
q:\epsylon3-torrentflux-SVN3437-459-g9b76cde\epsylon3-torrentflux-9b76cde\html\themes\RedRound\css\admin.css
it very frustrating and leed to mistakes and annoying errors (like me - i insert path, see it uppercased, shft-del and insert again, then path not working)
and when i start to move files it say just error widthout any explanation
Problem when you download same transfert as another torrent
current state : add a new entry and change first owner (not really in db, transfer_totals)
to do : show in both (Owner and Users lists)
Hi,
Is there any way to get the TFlux encoding in UTF-8 format in order to replace ISO one?
A lot of functionnalities aren't working with characters like é,à,è,&...
The MD5 passwords hash are different with Tflux and manual hashes on sites like http://www.crypo.org/tools/ and softwares.
In case of user table synchronising with other databases, passwords aren't corresponding with special characters.
Any fix for this? is utf-8 the solution?
Regards
As far as I can tell, transmission-cli flat out does not work. After going through the nightmare of compiling transmission-cli for Debian (tf-ng seems to like the file), I try to set up torrents with it (I am normally quite satisfied with BitTornado, but it can't handle udp for some stupid reason), but they never pick up any seeds or transfer any data. Sometimes it will just stop the torrent with an Estimated Time of 'Torrent Stopped' (as opposed to 'Stopped', which is what it says if I stop it manually). I have even tested it using a known good torrent that downloaded extremely quickly with BitTornado, and it just sits there with:
Down Up Seeds
0.0 kB/s 0.0 kB/s 0 (0)
One strange behavior I noted in the logs is that transmission-cli does not seem to want to advance ports if I have more than one torrent running on it. (It still doesn't download if there is only one).
I tried using transmission-rpc, but that was a disaster that made it so the main page of tf-ng wouldn't load at all (and I like BitTornado for most of my needs).
Settings:
BitTorrent-Client: transmission
Max Upload Rate: 10 kB/second
Max Download Rate: 0 kB/second
Completion Activity: Keep Seeding
Percentage When Seeding should Stop: 0%
Min Port: 49160
Max Port: 49300
Log examples (ignore the disparity in datestamps - after getting the additional torrent, I stopped them all and started fresh with torrent 1):
Torrent 1 (Known FAST torrent):
[2012/12/04 - 18:13:18] transmission-start : known_FAST.torrent
[2012/12/04 - 18:13:18] setting sharekill-param to 0
[2012/12/04 - 18:13:18] executing command :
cd '/hard_drive/flux/incoming/'; HOME='/hard_drive/flux/'; export HOME;cd '/hard_drive/flux/incoming/'; nohup '/usr/local/bin/transmissioncli' -d '0' -u '10' -p '49160' -W '0' -L '0' -E 6 -O 'user' -er -v '/hard_drive/flux/.transfers/known_FAST.torrent' 1>> '/hard_drive/flux/.transfers/known_FAST.torrent.log' 2>> '/hard_drive/flux/.transfers/known_FAST.torrent.log' &
[18:13:19.347] RPC Server: Adding address to whitelist: 127.0.0.1
[18:13:19.370] DHT: Reusing old id
[18:13:19.370] DHT: Bootstrapping from 158 IPv4 nodes
[2012/12/04 - 18:13:19] transmission 2.73 (13592) starting up :
[2012/12/04 - 18:13:19] - torrent : /hard_drive/flux/.transfers/known_FAST.torrent
[2012/12/04 - 18:13:19] - owner : user
[2012/12/04 - 18:13:19] - dieWhenDone : 0
[2012/12/04 - 18:13:19] - seedLimit : 0
[2012/12/04 - 18:13:19] - bindPort : 49160
[2012/12/04 - 18:13:19] - uploadLimit : 10
[2012/12/04 - 18:13:19] - downloadLimit : 0
[2012/12/04 - 18:13:19] - natTraversal : 1
[2012/12/04 - 18:13:19] - displayInterval : 6
[2012/12/04 - 18:13:19] - downloadDir : /hard_drive/flux/incoming
transmission-cli 2.73 (13592) - patched for TorrentFlux-NG
[18:13:19.501] Saved "/hard_drive/flux/.config/transmission/torrents/known_FAST.431ba9a04764b271.torrent"
[2012/12/04 - 18:13:19] - downloadDir from torrent object, usually loaded from resume data : /hard_drive/flux/incoming
[2012/12/04 - 18:13:19] Initialized status-facility. (/hard_drive/flux/.transfers/known_FAST.torrent.stat)
[2012/12/04 - 18:13:19] Initialized command-facility. (/hard_drive/flux/.transfers/known_FAST.torrent.cmd)
[18:13:19.501] known_FAST: Pausing
[2012/12/04 - 18:13:19] Wrote pid-file: /hard_drive/flux/.transfers/known_FAST.torrent.pid (31969)
[18:13:19.501] Saved "/hard_drive/flux/.config/transmission/resume/known_FAST.431ba9a04764b271.resume"
[18:13:19.502] known_FAST: Queued for verification
[18:13:19.502] known_FAST: Verifying torrent
[18:13:19.669] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[18:13:19.669] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
[18:13:21.673] Port Forwarding (UPnP): Found Internet Gateway Device "http://172.16.0.1:5555/ctl/IPConn"
[18:13:21.673] Port Forwarding (UPnP): Local Address is "172.16.0.2"
[18:13:21.684] Port Forwarding (UPnP): Port forwarding through "http://172.16.0.1:5555/ctl/IPConn", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 172.16.0.2:49160)
[18:13:21.684] Port Forwarding (UPnP): Port forwarding successful!
[18:13:21.684] Port Forwarding: State changed from "Not forwarded" to "Forwarded"
[18:13:31.002] known_FAST: Starting IPv4 DHT announce (poor, 16 nodes)
Starting a second Torrent:
[2012/12/04 - 17:39:09] transmission-start : known_good_2.torrent
[2012/12/04 - 17:39:09] setting sharekill-param to 0
[2012/12/04 - 17:39:09] executing command :
cd '/hard_drive/flux/incoming/'; HOME='/hard_drive/flux/'; export HOME;cd '/hard_drive/flux/incoming/'; nohup '/usr/local/bin/transmissioncli' -d '0' -u '10' -p '49160' -W '0' -L '0' -E 6 -O 'user' -er -v '/hard_drive/flux/.transfers/known_good_2.torrent' 1>> '/hard_drive/flux/.transfers/known_good_2.torrent.log' 2>> '/hard_drive/flux/.transfers/known_good_2.torrent.log' &
[17:39:09.947] RPC Server: Adding address to whitelist: 127.0.0.1
[17:39:09.947] Couldn't bind port 49160 on 0.0.0.0: Address already in use (Is another copy of Transmission already running?)
[17:39:09.947] Couldn't bind port 49160 on ::: Address already in use (Is another copy of Transmission already running?)
[17:39:09.947] UDP: Couldn't bind IPv4 socket
[17:39:09.947] DHT: Reusing old id
[2012/12/04 - 17:39:10] transmission 2.73 (13592) starting up :
[2012/12/04 - 17:39:10] - torrent : /hard_drive/flux/.transfers/known_good_2.torrent
[2012/12/04 - 17:39:10] - owner : user
[2012/12/04 - 17:39:10] - dieWhenDone : 0
[2012/12/04 - 17:39:10] - seedLimit : 0
[2012/12/04 - 17:39:10] - bindPort : 49160
[2012/12/04 - 17:39:10] - uploadLimit : 10
[2012/12/04 - 17:39:10] - downloadLimit : 0
[2012/12/04 - 17:39:10] - natTraversal : 1
[2012/12/04 - 17:39:10] - displayInterval : 6
[2012/12/04 - 17:39:10] - downloadDir : /hard_drive/flux/incoming
[17:39:10.119] Saved "/hard_drive/flux/.config/transmission/torrents/known_good_2.b52ca598afd2a7e7.torrent"
[2012/12/04 - 17:39:10] - downloadDir from torrent object, usually loaded from resume data : /hard_drive/flux/incoming
[2012/12/04 - 17:39:10] Initialized status-facility. (/hard_drive/flux/.transfers/known_good_2.torrent.stat)
[2012/12/04 - 17:39:10] Initialized command-facility. (/hard_drive/flux/.transfers/known_good_2.torrent.cmd)
[17:39:10.119] known_good_2: Pausing
[2012/12/04 - 17:39:10] Wrote pid-file: /hard_drive/flux/.transfers/known_good_2.torrent.pid (31449)
[17:39:10.135] Saved "/hard_drive/flux/.config/transmission/resume/known_good_2.b52ca598afd2a7e7.resume"
[17:39:10.135] known_good_2: Queued for verification
[17:39:10.135] known_good_2: Verifying torrent
[17:39:10.282] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[17:39:10.282] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
[17:39:12.285] Port Forwarding (UPnP): Found Internet Gateway Device "http://172.16.0.1:5555/ctl/IPConn"
[17:39:12.285] Port Forwarding (UPnP): Local Address is "172.16.0.2"
[17:39:12.287] Port Forwarding (UPnP): Port forwarding through "http://172.16.0.1:5555/ctl/IPConn", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 172.16.0.2:49160)
[17:39:12.287] Port Forwarding (UPnP): Port forwarding successful!
[17:39:12.287] Port Forwarding: State changed from "Not forwarded" to "Forwarded"
[17:39:13.185] known_good_2: Could not connect to tracker
[17:39:13.185] known_good_2: Retrying announce in 312 seconds.
[17:40:15.621] known_good_2: Connection failed
[17:40:15.621] known_good_2: Retrying announce in 347 seconds.
what do i need to compile transmission to work in torrentfluxng in fedora?
I'm able to get TF working with transmission-rpc (using mono-eyes, the default is broken full stop).
All seems to be working apart from I get no seed ratio information. Just 100% and labelled as seeding. I can see there's something seeding, I get upload speeds, and I can see the ratio in the Web UI.
Every time i try to add a user it says already exists even if i try and type something random in. Any idea what is wrong here.
Cheers in advanced
Slackware torrents are using the same torrent name for all CD install disks, 32bit distro DVD and a sorce DVD. The 'Transfer File' is called 'Slackware-14.1-iso'. Erorr is reported in a Web interface while adding torrents to a list.
The old Torrrentflux-b4rt is able to handle this situation.
Greetings
stariocek
The Transmission ClientHandler defines its "binSocket" as "transmission-cli" by default. This leads to functions.core.netstat failing, because transmission-cli sockets show up as "transmission-" in the netstat command.
I fixed this by enhancing ClientHandler: pannal@f39298b
Very strange behavior - When I set the number of entries on the Bulk Upload page to 20, there are instead 40 listed, and only some of them actually load the torrents. I thought it might have been simply the top 10 in each row, but it doesn't appear to be that structured.
I have tried varying the numbers with the same results.
Current implementation of red/blueRound is pretty broken regarding XHTML validity (duplicate IDs due to poor ajax implementation). jQuery's power also isn't used most of the time. Those last commits I made fix some of the major stuff.
Also I've added some usability improvements aswell as the option to upload+start (a) torrent(s) with the settings of a profile instantaneously.
i read code and found many dirty directory separator var like "/" "/files/" and oher form
maybe change it by DIRECTORY_SEPARATOR? it aviable since php4 and make codemore portable and readable.
i know, flux not supported on win, but anyway - it would be really nice to cleaner code by resolve this issue
thank
ps (i try manually replace some code for testing your updated version of b4rt flux on my win localhost but it is so many changes (i find 20+ and it is only small part of all).
and after i think better if you made changes because after update project this editing need to be repeat by me.
running: 1
status: 1
State is not supported by TFXNG.
Possible fix: pannal@0cd28e2
If that is intended, ignore this.
Otherwise here's a fix: pannal@e33d449
when i login (after logging in) i get a white page... i am running php 5.4 i am not sure it is an issie.....when i activate error reporting,i get:
Strict Standards: Non-static method Fluxd::initialize() should not be called statically in /var/www/torrentflux-master/html/inc/main.internal.php on line 243
Strict Standards: Non-static method FluxdServiceMod::initializeServiceMod() should not be called statically in /var/www/torrentflux-master/html/inc/main.internal.php on line 246
Strict Standards: Non-static method FluxdQmgr::initialize() should not be called statically in /var/www/torrentflux-master/html/inc/classes/FluxdServiceMod.php(98) : eval()'d code on line 1
Strict Standards: Non-static method Fluxd::modState() should not be called statically, assuming $this from incompatible context in /var/www/torrentflux-master/html/inc/classes/FluxdServiceMod.php on line 122
Strict Standards: Non-static method Xfer::setNewday() should not be called statically in /var/www/torrentflux-master/html/inc/main.internal.php on line 251
Strict Standards: Non-static method Xfer::initialize() should not be called statically in /var/www/torrentflux-master/html/inc/classes/Xfer.php on line 106
My torrentflux instance has three users, and even when logged in under user 1 or user 3 all torrents are said to belong to user 2 and are put in user 2's home folder and added to user 2's stats.
When 2 people downloads from the same torrent (one has been renamed to something else for it to be able to be uploaded) using transmission, the second user will not have that file in his folder. It will say 'seeding' and it does seed in such there is an upload speed and ratio does increase but the file does not exist within the second user's folder.
I have tested with the beta version on b4rt's web and it's the same result.
transmission used is 1.93 on CentOS 5.5.
Hi i cant see redhound template with firefox i use nginx, but i can see it on IE8 what can be? i have set it permissions 755 to templates files and 777 to test and same thing. What can be?
thanks.
Is there any way to start the Fluxd daemon automatically with a bash or startup script, when the server boots?
Do you know why I would be getting this error? Using your latest in master branch.
Warning: file_get_contents(/var/www/download/torrentflux/.transfers/TORRENT_FILE.torrent.stat) [function.file-get-contents]: failed to open stream: No such file or directory in /var/torrentflux/html/inc/classes/StatFile.php on line 212
Using skin: RedRound
Current github tip.
When trying to delete multiple files/folders in directory view I get the following JS error:
"Uncaught TypeError: Cannot call method 'submit' of undefined index.php:1"
torrentflux / html / inc / classes / Vlc.php misses an } at line 280
Seems like the plug in has stopped working as comes up with error so unsure if they have changed something on there search but it cant download the torrent as it falls over.
Hi Guys,
When you set these to disabled and save they change back to enabled on the ui - meaning if you save again they go back to enabled which can cause errors.
Kind Regards,
egghead0
Hi, I can't install the script when I go to /setup.php it told me :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@****************** and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I ask if this script still works?
function.common.user.php
line 1476
line
<-><-->UpdateUserEmail($user_id, $userEmail);
should be changed to
<--><-->UpdateUserEmail(strtolower($newUser), $userEmail);
because $user_id has no value in this context. I think
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.