Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-14-2010, 07:43 PM
|
#1
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Rep:
|
using ruTorrent on slackware 13.1
Hello all!
I am trying to install rutorrent (a webGUI) for rtorrent on a machine running slackware 13.1 32bit.
At first I simply installed rtorrent 0.8.7 from SlackBuilds.org and all went fine. It starts normally and also runs normally.
Then I installed rutorrent v3.2 from the rutorrent website and it also installed/run fine...
The problem is when I start rutorrent, rtorrent crash with a Seg fault. According to the forum at http://forums.rutorrent.org/ it seems that rtorrent 0.8.7 is an UNSTABLE release and does not work with rutorrent 3.2..
Then I tried to install rtorrent 0.8.6 (again from Slackbuilds.org) but the compilation fails with tons or errors.
So what should I do to get this going?
Thanks!
|
|
|
12-14-2010, 11:20 PM
|
#2
|
Member
Registered: Jul 2010
Distribution: Slackware
Posts: 125
Rep:
|
Output of errors?
You should use the last SlackBuild update for version 0.8.6, then the compilation should work fine.
http://slackbuilds.org/gitweb/?p=sla...69253ec99a2bbf
And yes, I don't know why the maintainer updated the SlackBuild to the unstable version.
|
|
|
12-15-2010, 04:06 PM
|
#3
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
I tried to install from the git site you gave me, basically I copied the content of the script from the web page to the .Slackbuild script and started the compilation. It ended up with the same errors. Now I have an output:
Code:
g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -O2 -march=i486 -mtune=i686 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/local/include -MT curl_stack.o -MD -MP -MF .deps/curl_stack.Tpo -c -o curl_stack.o curl_stack.cc
mv -f .deps/curl_stack.Tpo .deps/curl_stack.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -O2 -march=i486 -mtune=i686 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/local/include -MT dht_manager.o -MD -MP -MF .deps/dht_manager.Tpo -c -o dht_manager.o dht_manager.cc
In file included from dht_manager.cc:52:
download.h: In member function 'bool core::Download::is_open() const':
download.h:73: error: 'const class torrent::Download' has no member named 'is_open'
download.h: In member function 'bool core::Download::is_active() const':
download.h:74: error: 'const class torrent::Download' has no member named 'is_active'
download.h: In member function 'bool core::Download::is_hash_checked() const':
download.h:82: error: 'const class torrent::Download' has no member named 'is_open'
In file included from dht_manager.cc:52:
download.h: In member function 'bool core::Download::operator==(const std::string&) const':
download.h:152: error: 'const class torrent::Download' has no member named 'info_hash'
dht_manager.cc: In member function 'void core::DhtManager::update()':
dht_manager.cc:193: error: 'class torrent::Download' has no member named 'is_private'
make[3]: *** [dht_manager.o] Error 1
make[3]: Leaving directory `/tmp/SBo/rtorrent-0.8.6/src/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/rtorrent-0.8.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/rtorrent-0.8.6'
make: *** [all] Error 2
Any idea whats going on?
|
|
|
12-15-2010, 04:53 PM
|
#4
|
Senior Member
Registered: Oct 2007
Distribution: Slackware
Posts: 1,378
|
You have libtorrent 0.12.6 and libsigc++ installed?
Andrew
Last edited by andrew.46; 12-15-2010 at 05:08 PM.
|
|
|
12-15-2010, 05:00 PM
|
#5
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
Yes, both are installed.
libtorrent-0.12.7-i486-1_SBo
&
libsigc++-2.2.7-i486-1_SBo
Last edited by lpallard; 12-15-2010 at 05:01 PM.
|
|
|
12-15-2010, 05:16 PM
|
#6
|
Senior Member
Registered: Oct 2007
Distribution: Slackware
Posts: 1,378
|
You may have missed my hurried clarification to my previous post, try downgrading your copy of libtorrent to 0.12.6.
Andrew
|
|
|
12-15-2010, 05:44 PM
|
#7
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
Andrew, sorry about the rushed reply, I did not see the reference to 0.12.6..
Now I compiled both libtorrent 0.12.6 & rtorrent 0.8.6 and rutorrent works. However, I am facing some problems:
-The GUI complaints about some 404 errors and particularly an error related to xmlrpc version....
output:
Code:
[15.12.2010 18:40:14] rTorrent is compiled with incorrect version of xmlrpc-c library, without i8 support. Version must be >= 1.11. Some functionality will be unavailable.
[15.12.2010 18:40:14] Bad response from server: (404 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /RPC2 was not found on this server.</p> </body></html>
[15.12.2010 18:42:14] Bad response from server: (404 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /RPC2 was not found on this server.</p> </body></html>
I dont get it because the slackbuild script had the switch to enable xmlrpc at compilation time.
-Once I load a torrent file, rutorrent says "Torrent successfully passed to rtorrent" but it does not show up in the webGUI... I verified and it is really passed to rtorrent.
Do you know what to do?
Thanks!
Last edited by lpallard; 12-15-2010 at 06:19 PM.
|
|
|
12-15-2010, 07:10 PM
|
#8
|
Senior Member
Registered: Oct 2007
Distribution: Slackware
Posts: 1,378
|
I will admit to absolutely no knowledge of ruTorrent I am afraid as I use rtorrent only, and on 13.0 at that. However the slackbuilds that I can see do not explicitly have the option for XMLRPC-C support which seems to require the following ./configure option:
Code:
--with-xmlrpc-c=PATH Enable XMLRPC-C support.
and of course the installation of XMLRPC-C which I can see on slackbuilds.org. Not sure if the rtorrent installation will find this automagically or you need to provide the path as above. I have not tested any of this as i am more than happy with a simple installation of rtorrent itself .
Andrew
|
|
|
12-16-2010, 09:20 PM
|
#9
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
This is wayyyy too complicated for a simple torrent client... Anyways, I want to have a webGUI to run rtorrent from my server so I'll bite the dust!
I cant figure why I am getting the xmlrpc-c version error. I googled this and found that somehow, I did not have xmlrpc-c from slackbuild.org installed (I wonder why rtorrent found it at first!?...). Now I installed xmlrpc-c from SlackBuilds.org, recompiled rtorrent with the --with-xmlrpc-c switch but tried several PATH like you suggested and the only way for rtorrent to compile is by leaving the switch without a $PATH variable and in this case I believe rtorrent uses the initial xmlrpc-c on the machine (or it simply ignores it). I need to find a way to point the rtorrent Slackbuild script to the proper path where xmlrpc-c is located.
Second issue, I also have been pointed to looked at the apache error log to answer my concerns in regard to the error 404 posted above. In fact, the apache server had several permission problems to access misc files. All fixed, except one error that I cant figure right now:
Code:
File does not exist: /srv/httpd/htdocs/RPC2, referer: http://localserver/rutorrent/
I cant find that RPC2 folder or whatever it is, and in fact, I have no clue what it is...
So to summarize, I still have the RPC2 error above, and rutorrent complaining about wrong xmlrpc version. All other errors fixed.
|
|
|
12-16-2010, 10:00 PM
|
#10
|
Member
Registered: Nov 2006
Posts: 49
Rep:
|
Not entirely sure what the problem is, have you edited your rtorrent.rc? Are you using lighttpd or have mod_scgi installed for apache? Have you configured it in the .conf?
|
|
|
12-31-2010, 11:36 PM
|
#11
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
OK I made some progress here... To summarize, I installed a plugin for rutorrent (available on their website in the plugin section) that prevent the RPC2 error thing. The error 404 is gone.
I also installed xmlrpc-c 1.06.41 from http://sourceforge.net/projects/xmlr...uper%20Stable/ instead of the r1964 release from slackbuilds but it did not solve my problem for the xmlrpc-c error. Apparently, not a big deal, only file size and folder space will be reported incorrectly. I will fix this later since it is mostly cosmetic.
Now I tried to run the setup (i.e. load torrent files, start downloading, etc) and everything worked perfectly except when I reboot the machine or simply restart rtorrent, I lose all torrents! The files remains on the download folder but the torrent "tasks" are gone from within rtorrent.
Apparently this would have to do with the fact that rtorrent is meant to be run from a CLI. This has apparently also something to do with the setting session = ./session in the rtorrent.rc file..
Anybody know how to fix this so when I restart rtorrent I dont lose everything again!?
Thanks and Happy 2011!
|
|
|
01-01-2011, 03:36 AM
|
#12
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Rep:
|
Check you http.conf the 404 probably means you forgot to change the defaults check the doc route
Quote:
DocumentRoot "/var/www/htdocs"
|
make sure you added
Quote:
LoadModule scgi_module /usr/lib64/httpd/modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000
|
Then remove the plug-in and try again.
Thank you for your post i had not heard of rutorrent until i read it, its much better than the other web guis that are available.
Edit just adding the versions of every thing i have installed
xmlrpc-c-r1964-x86_64-1_SBo
libtorrent-0.12.6-x86_64-1_SBo
rtorrent-0.8.6-x86_64-2_SBo
Edit again
Just thought i already had my config setup you need to copy /usr/doc/rtorrent-0.8.6/rtorrent.rc to /home/user/.rtorrent.rc then edit it.
add this
Quote:
scgi_port = localhost:5000
|
change this one
Quote:
# Default directory to save the downloaded torrents.
directory = /home/user/xx
|
I then made a dir called session in my torrent folder then changed this line
Quote:
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /home/user/torrents/session
|
And this is a useful setting, just copy your torrent file to this dir and it will start automatically
Quote:
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/home/user/torrents/torrents/*.torrent
|
Last edited by SavoTU; 01-01-2011 at 03:49 AM.
|
|
|
01-01-2011, 10:06 AM
|
#13
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
thanks SavoTU for replying!
I dont have the module mod_scgi.so in /usr/lib/httpd/modules/ ( I am using Slackware 32 bit on this server)
1. Where can I find or install this module?
2. Where in httpd.conf do I need to add this line:
Code:
SCGIMount /RPC2 127.0.0.1:5000
When I modify httpd.conf correctly, I will remove the plugin from rutorrent and retry as you suggested.
Code:
xmlrpc-c-r1964-x86_64-1_SBo
libtorrent-0.12.6-x86_64-1_SBo
rtorrent-0.8.6-x86_64-2_SBo
3. I have the same packages installed, with the exception of xmlrpc-c that I replaced by the 1.06.41 version except of r1964 from slackbuilds.org. So far this did not help but did not create problems... I question going back to the slackware package r1964 if I get no benefit. rutorrent complains about rtorrent not compiled with the proper version because no i8 support is available. This is only cosmetic as sizes (free space, files, etc) will not be reported properly (a large file above 2GB will be reported as negative value)... Real annoyance but not essential, I will fix this at some point.
Quote:
I then made a dir called session in my torrent folder...
|
I also did that, with the exception that the rtorrent user (I called it this way) resides outside /home (on a mounted hard drive under /mnt/torrent-downloads/). I hope this will not cause problems.
Code:
schedule = watch_directory,5,5,load_start=/home/user/torrents/torrents/*.torrent
I dont understand this line. If I get it, rtorrent will save the torrent files (the .torrent) in session folder but monitor the folder torrents? Does not make sense...!?
As you can see, rtorrent is probably my biggest learning curve.
thanks!
Last edited by lpallard; 01-01-2011 at 10:08 AM.
|
|
|
01-01-2011, 01:41 PM
|
#14
|
Member
Registered: Nov 2006
Posts: 49
Rep:
|
Quote:
Originally Posted by lpallard
thanks SavoTU for replying!
I dont have the module mod_scgi.so in /usr/lib/httpd/modules/ ( I am using Slackware 32 bit on this server)
1. Where can I find or install this module?
|
http://python.ca/scgi/
lighttpd is also an option since it has mod_scgi built in already.
Quote:
2. Where in httpd.conf do I need to add this line:
Code:
SCGIMount /RPC2 127.0.0.1:5000
|
At the end of the file should be fine and easy to locate later.
Quote:
3. I have the same packages installed, with the exception of xmlrpc-c that I replaced by the 1.06.41 version except of r1964 from slackbuilds.org. So far this did not help but did not create problems... I question going back to the slackware package r1964 if I get no benefit. rutorrent complains about rtorrent not compiled with the proper version because no i8 support is available. This is only cosmetic as sizes (free space, files, etc) will not be reported properly (a large file above 2GB will be reported as negative value)... Real annoyance but not essential, I will fix this at some point.
|
I believe the slackbuild is a late enough build for rutorrent. I'm not sure what the problem is.
Quote:
I also did that, with the exception that the rtorrent user (I called it this way) resides outside /home (on a mounted hard drive under /mnt/torrent-downloads/). I hope this will not cause problems.
Code:
schedule = watch_directory,5,5,load_start=/home/user/torrents/torrents/*.torrent
I dont understand this line. If I get it, rtorrent will save the torrent files (the .torrent) in session folder but monitor the folder torrents? Does not make sense...!?
|
Comment out that line. It's for use with the default rtorrent interface. It watches a folder for new torrent files, then automatically loads them so you don't have to do each one manually using the console interface.
what you do want is the session directory, something like:
Code:
session = ./.rtorrent-session
If your home directory is /mnt/torrent-downloads/ then go there and mkdir .rtorrent-session. Your session will reload from there each time you start up rtorrent. As long as you're in your home directory when you start it.
|
|
|
01-01-2011, 01:59 PM
|
#15
|
Senior Member
Registered: Nov 2008
Posts: 1,047
Original Poster
Rep:
|
I did what you suggested step by step but after a reboot, I can no longer access my web services on this server:
Code:
403 Forbidden
You don't have permission to access /rutorrent/ on this server.
It does the same thing for all other services that were working flawlessly for months now. Do you know what can cause this??
EDIT: Got it. Strange enough, when I modify the DocumentRoot in httpd.conf to point to the real location, it does what's above. If I restore the original to /srv/httpd/htdocs, it works.
Last edited by lpallard; 01-01-2011 at 02:02 PM.
|
|
|
All times are GMT -5. The time now is 01:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|