Koozali.org: home of the SME Server

[Announce] smeserver-torrentflux

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
[Announce] smeserver-torrentflux
« on: November 07, 2006, 04:36:28 PM »
http://www.torrentflux.com/,
TorrentFlux is a FREE PHP based Torrent client that runs on a web server.
Manage all of your Torrent downloads through a convenient web interface from anywhere.

assisted with posts from this thread
http://forums.contribs.org/index.php?topic=33380.0

but installed in /opt/torrentflux as recommended by the devs

http://www.dungog.net/sme/webapp.php#torrent

download from here
http://sme.dungog.net/packages/smeserver/7.0/i386/html/index_dungog.html

or install with yum from the dungog repo

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
[Announce] smeserver-torrentflux
« Reply #1 on: November 09, 2006, 06:47:01 AM »
Nice contrib...   :D

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
[Announce] smeserver-torrentflux
« Reply #2 on: November 09, 2006, 01:44:52 PM »
Thanks

-2 has just been uploaded

smeserver-torrentflux and the three other web appliations
have had a PublicAccess db value added
so you can give them the same privileges as ibays

http://www.dungog.net/sme/webapp.php#settings

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] smeserver-torrentflux
« Reply #3 on: November 18, 2006, 01:02:23 AM »
From your instructions...
Code: [Select]
4. open port(s) to allow uploads, eg.
config set torrent service access public status enabled TCPPort 45160
config set torrent service access public status enabled TCPPort 45161
signal-event remoteaccess-update


Will that work for multiple ports as the db key for both is torrent ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
[Announce] smeserver-torrentflux
« Reply #4 on: November 18, 2006, 01:35:50 AM »
your right

from VIP-ire's post

You can enable some more ports if you want several downloads at the same time. For exemple, I enabled 5 ports:

config set torrent1 service access public status enabled TCPPort 49500
config set torrent2 service access public status enabled TCPPort 49501
config set torrent3 service access public status enabled TCPPort 49502
config set torrent4 service access public status enabled TCPPort 49503
config set torrent5 service access public status enabled TCPPort 49504

signal-event remote-access-update

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] smeserver-torrentflux
« Reply #5 on: November 18, 2006, 08:33:08 AM »
You have to watch the first one.

I have not installed your rpm but if you have a linked service SXXtorrent then none of those listed will match.

The first one in the list would sill have to be just 'torrent'.
Regards,
William

IF I give advise.. It's only if it was me....

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
[Announce] smeserver-torrentflux
« Reply #6 on: November 18, 2006, 10:05:32 AM »
There is no linked service, so it may not matter
but maybe this isn't needed at all

edit:
opening ports with DB values is not needed in this case
I removed the DB value and the torrents upload happily
(once you start them)

vaypers

[Announce] smeserver-torrentflux
« Reply #7 on: November 18, 2006, 09:38:48 PM »
I have installed the torrentflux rpm and also the sme-torrentflux rpm.  I am a novice with Linux and my skills stretch to installing rpms provided by others.

After install I tried starting torrentflux - couldn't find any instructions on their website.

Eventually I tried http://sme/torrent and got this error:
"Database error: Table 'torrentflux.tf_settings' doesn't exist
Always check your database variables in the config.php file."

What do I do now??

Thanks Guys.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] smeserver-torrentflux
« Reply #8 on: November 18, 2006, 11:17:20 PM »
Quote from: "vaypers"
I have installed the torrentflux rpm and also the sme-torrentflux rpm.  I am a novice with Linux and my skills stretch to installing rpms provided by others.

After install I tried starting torrentflux - couldn't find any instructions on their website.

Eventually I tried http://sme/torrent and got this error:
"Database error: Table 'torrentflux.tf_settings' doesn't exist
Always check your database variables in the config.php file."

What do I do now??

Thanks Guys.

From the dungog site..
Code: [Select]
Torrentflux, torrent client
yum install smeserver-torrentflux

> YourServer.net/torrent

http://www.torrentflux.com
TorrentFlux is a FREE PHP based Torrent client that runs on a web server.
Manage all of your Torrent downloads through a convenient web interface from anywhere.

0. install torrentflux and smeserver-torrentflux

1. create database structure
/usr/bin/mysql torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql

2. add torrentflux mysql password
pico -w /opt/torrentflux/html/config.php
find mysql password with 'config show torentflux', [see extra settings below]

3. open YOURSERVER/torrent
login admin/admin, change admin pwd and review settings

4. open port(s) to allow uploads, eg.
config set torrent service access public status enabled TCPPort 45160
config set torrent service access public status enabled TCPPort 45161
signal-event remoteaccess-update

5. files are saved under /opt by default
you can change this to an ibay, with local network access (without password)[and maybe chmod 777]
or just cd to a directory, then make a symlink
cd /home/e-smith/files/ibays/dungog/files/junk/
ln -s /opt/torrentflux/html/downloads/


After that I still couldn't connect to the db.
Installed phpmyadmin
Found user torrentflux did not nave a password set. Gave him a password.
Went back and edited /opt/torrentflux/html/config.php and changed the password.

Tried again and I was in.

oh.. also had to do a
Code: [Select]
chown -R -v www:www /opt/torrentflux
Regards,
William

IF I give advise.. It's only if it was me....

Offline sandoz

  • ***
  • 47
  • +0/-0
[Announce] smeserver-torrentflux
« Reply #9 on: November 23, 2006, 09:37:49 PM »
i am not able to login with admin/admin?
Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] smeserver-torrentflux
« Reply #10 on: November 23, 2006, 11:05:18 PM »
Quote from: "sandoz"
i am not able to login with admin/admin?
Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.


Login to what?

The above does not sound like a torrentflux login failure.

https://secure.magicwilly.info/torrent
Regards,
William

IF I give advise.. It's only if it was me....

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
[Announce] smeserver-torrentflux
« Reply #11 on: November 24, 2006, 01:25:43 AM »
the mysql password is set with smeserver-torrentflux
any permissions needing to be set are changed

if it doesn't please raise a bug


the first time you log into www/torrent you should change the admin password, the default is admin

if you changed the default security level to require a password
http://dungog.net/sme/webapp.php#settings
config setprop WEBAPP PublicAccess OPTION

you may need to login with a valid local user first

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] smeserver-torrentflux
« Reply #12 on: November 24, 2006, 08:49:10 AM »
Just doing a install on a clean VM to confirm if it works out of the box and had a major crash and burn.

I must have some gremlins in there......

Code: [Select]
[root@vmsme7go ~]# yum --enablerepo=dungog install smeserver-torrentflux
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30978)
error: cannot open Packages database in /var/lib/rpm
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30978)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 80, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 170, in getOptionsConfig
    self.doConfigSetup(fn=opts.conffile, root=root)
  File "__init__.py", line 82, in doConfigSetup
  File "config.py", line 272, in __init__
  File "config.py", line 384, in _getsysver
TypeError: rpmdb open failed
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30978)
error: cannot open Packages database in /var/lib/rpm
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@vmsme7go ~]#


Nothing specific to this contrib, just 'very interesting'....
Regards,
William

IF I give advise.. It's only if it was me....

Offline sandoz

  • ***
  • 47
  • +0/-0
[Announce] smeserver-torrentflux
« Reply #13 on: November 24, 2006, 08:56:10 AM »
when i go to myserver/torrent  i get a login popup
when i go to myserver/torrent.login.php i get
TorrentFlux Database/SQL Error
Database error: Table 'torrentflux.tf_settings' doesn't exist

Always check your database variables in the config.php file.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] smeserver-torrentflux
« Reply #14 on: November 24, 2006, 08:58:51 AM »
Quote from: "sandoz"
when i go to myserver/torrent  i get a login popup



Login like at server-manager.
Regards,
William

IF I give advise.. It's only if it was me....