Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: stephen noble on November 07, 2006, 04:36:28 PM

Title: [Announce] smeserver-torrentflux
Post by: stephen noble 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
Title: [Announce] smeserver-torrentflux
Post by: cjensen on November 09, 2006, 06:47:01 AM
Nice contrib...   :D
Title: [Announce] smeserver-torrentflux
Post by: stephen noble 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
Title: [Announce] smeserver-torrentflux
Post by: william_syd 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 ?
Title: [Announce] smeserver-torrentflux
Post by: stephen noble 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
Title: [Announce] smeserver-torrentflux
Post by: william_syd 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'.
Title: [Announce] smeserver-torrentflux
Post by: stephen noble 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)
Title: [Announce] smeserver-torrentflux
Post by: vaypers 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.
Title: [Announce] smeserver-torrentflux
Post by: william_syd 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 (http://forums.contribs.org/index.php?topic=34362.0)
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
Title: [Announce] smeserver-torrentflux
Post by: sandoz 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.
Title: [Announce] smeserver-torrentflux
Post by: william_syd 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
Title: [Announce] smeserver-torrentflux
Post by: stephen noble 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
Title: [Announce] smeserver-torrentflux
Post by: william_syd 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'....
Title: [Announce] smeserver-torrentflux
Post by: sandoz 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.
Title: [Announce] smeserver-torrentflux
Post by: william_syd 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.
Title: [Announce] smeserver-torrentflux
Post by: william_syd on November 24, 2006, 09:05:37 AM
What does
Code: [Select]
db configuration printprop torrentflux PublicAccess give you?
Title: [Announce] smeserver-torrentflux
Post by: william_syd on November 24, 2006, 09:07:55 AM
Quote from: "sandoz"

TorrentFlux Database/SQL Error
Database error: Table 'torrentflux.tf_settings' doesn't exist

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


Did you do this
Code: [Select]
/usr/bin/mysql torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql
Title: [Announce] smeserver-torrentflux
Post by: Franco on December 17, 2006, 03:38:46 PM
I'm getting constant errors:
Code: [Select]
PHP Warning:  is_file() [<a href='function.is-file'>function.is-file</a>]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/opt/torrentflux:/home/e-smith/files/ibays:/tmp) in /opt/torrentflux/html/settingsfunctions.php on line 176
Would this also be related to the fact that I upgraded to PHP5?
Title: [Announce] smeserver-torrentflux
Post by: chris burnat on December 17, 2006, 09:43:39 PM
Quote from: "stuntshell"
I'm getting constant errors:
Code: [Select]
PHP Warning:  is_file() [<a href='function.is-file'>function.is-file</a>]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/opt/torrentflux:/home/e-smith/files/ibays:/tmp) in /opt/torrentflux/html/settingsfunctions.php on line 176
Would this also be related to the fact that I upgraded to PHP5?


Just in case, check:
http://bugs.contribs.org/show_bug.cgi?id=1120
Title: [Announce] smeserver-torrentflux
Post by: stephen noble on December 18, 2006, 12:38:47 PM
http://www.dungog.net/sme/webapp.php#torrent

6. upgrade 2.1 to 2.3
stop existing torrents
rpm or yum torrentflux
[upgrading from 2.1 will need to edit config.php (step 3.)]
in your browser open
servername/torrent/upgrade21_22.php
then servername/torrent/upgrade22_23.php
then rm /opt/torrentflux/html/upgrade2?_2?.php
Title: HowTo for Torrentflux
Post by: per_epost on April 09, 2007, 04:09:57 PM
Step-by-step silly HowTo for installation of Torrentflux on SMEserver 7.1.3.

Moved to Wiki @: http://wiki.contribs.org/Torrentflux
Title: [Announce] smeserver-torrentflux
Post by: stephen noble on April 09, 2007, 04:23:41 PM
# yum --enablerepo=smedev install smeserver-torrentflux

the latest version is always at dungog.net, not smedev
Title: [Announce] smeserver-torrentflux
Post by: per_epost on April 09, 2007, 04:58:58 PM
Like this then?
I modified the howto to use yum instead and get all files from Dungog.
The intended audience for this howto is other Linux-newbies like myself,
all other are probably better off using the original one.
The best learning is done while (trying to) instruct others I've noticed (poor ones that get caught in the middle).
Title: [Announce] smeserver-torrentflux
Post by: stephen noble on April 09, 2007, 06:00:47 PM
I'd setup the dungog repo and ...
yum install smeserver-torrentflux

or
yum install --enablerepo=dungog smeserver-torrentflux

I appreciate writing documentation is a good way to learn
but the best place to write docs in on the wiki

http://wiki.contribs.org/Category:Yum_Repository

any comments here will soon be lost
Title: [Announce] smeserver-torrentflux
Post by: per_epost on April 10, 2007, 08:59:50 AM
I'm sorry, but I don't quite get it.
I see that you have a dungog-repo in the wiki.
But when I try # yum install --enablerepo=dungog torrentflux
or # yum install --enablerepo=dungog smeserver-torrentflux
it says "Error getting repository data for dungog, repository not found"

Yes, I agree that the best place to put docs are on the wiki, but:
1: I have a problem with login to the wiki -I've filed a bug on that.
2: Would I get your (and other competent folks) attention there to find errors and development?
Title: [Announce] smeserver-torrentflux
Post by: skydivers on April 10, 2007, 10:10:31 AM
Quote from: "per_epost"


it says "Error getting repository data for dungog, repository not found"



What does:

db yum_repositories show dungog

give you?
Title: [Announce] smeserver-torrentflux
Post by: per_epost on April 10, 2007, 10:51:26 AM
login as: root
root@192.168.0.20's password:
Last login: Tue Apr 10 10:16:49 2007 from pc-00081.bends.mine.nu
[root@server20 ~]# db yum_repositories show dungog
[root@server20 ~]#

eh, nothing, it seems...
Title: [Announce] smeserver-torrentflux
Post by: skydivers on April 10, 2007, 10:55:28 AM
Quote from: "per_epost"
login as: root
root@192.168.0.20's password:
Last login: Tue Apr 10 10:16:49 2007 from pc-00081.bends.mine.nu
[root@server20 ~]# db yum_repositories show dungog
[root@server20 ~]#

eh, nothing, it seems...


Indeed, you should get something like this:
[root@skydiver ~]# db yum_repositories show dungog
dungog=repository
    BaseURL=http://sme.dungog.net/packages/smeserver/7.0/i386/dungog/
    EnableGroups=yes
    GPGCheck=no
    Name=SME Server 7 - dungog
    Visible=yes
    ...

Did you add the dungog repository to you repositories?
Title: [Announce] smeserver-torrentflux
Post by: per_epost on April 10, 2007, 11:11:00 AM
Quote

Did you add the dungog repository to you repositories?


Can I eat that? (I don't know what you mean).
Is thera a good place where they unveal these secrets?
/a linux newbie thats trying to quit Windows (not that easy).
Title: [Announce] smeserver-torrentflux
Post by: skydivers on April 10, 2007, 11:15:59 AM
Quote from: "per_epost"
Quote

Did you add the dungog repository to you repositories?


Can I eat that? (I don't know what you mean).
Is thera a good place where they unveal these secrets?
/a linux newbie thats trying to quit Windows (not that easy).


Read this:

http://www.dungog.net/sme/repo.php

and this is what you could do to add the dungog repo:

db yum_repositories set dungog repository \
 BaseURL http://sme.dungog.net/packages/smeserver/7.0/i386/dungog/ \
 EnableGroups yes \
 GPGCheck no \
 Name 'SME Server 7 - dungog' \
 Visible yes \
 status disabled

/sbin/e-smith/expand-template /etc/yum.conf

If you check now with:

db yum_repositories show dungog

you should see what you entered above...

Good luck!
Title: [Announce] smeserver-torrentflux
Post by: per_epost on April 10, 2007, 12:07:47 PM
Ah! Thanks, I will experiment with that soon.
But for now I will use the methods I've tested with success.

My virtual machines are glowing, they make these experiments possible.
Just clone the clean install and test something new... Fabulous!!!
Title: Re: [Announce] smeserver-torrentflux
Post by: curious on October 18, 2008, 09:22:29 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

I have the same issue, but the link doesn't work. Someone can help me ?
Thank you.



solution:
uninstall 3 times, install phpmyadmin, and now i get acces.
strange :)