LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2008, 11:58 AM   #1
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
RTorrent SCGI / XML-RPC -- blank responses


Hi all,

I've been trying on and off for about 2 months to get the SCGI functionality of rtorrent working, so I can use wtorrent when I'm not home (I already use rtorrent over ssh, but I'd prefer a web interface because I'm picky).

Anyway, I'm using Gentoo 2007.1, with the following relevant software versions:

curl 7.18.1
xmlrpc-c 1.06.27
libtorrent 0.12.2
rtorrent 0.8.2

And this is my ~/.rtorrent.rc:

Code:
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100

# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
#max_peers_seed = 50

# Maximum number of simultanious uploads per torrent.
max_uploads = 5

# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
upload_rate = 45

# Default directory to save the downloaded torrents.
directory = ~/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = ~/.rtorrent

# Watch for new torrents
schedule = watch_directory_1,5,5,"load_start=~/.torrents/*.torrent,d.set_custom1=~/"
schedule = watch_directory_2,5,5,"load_start=~/.tvtorrents/*.torrent,d.set_custom1=~/tv"
schedule = watch_directory_3,5,5,"load_start=~/.musictorrents/*.torrent,d.set_custom1=~/music"

on_finished = move_complete,"execute=mv,$d.get_base_path=,$d.get_custom1= ;d.set_directory=$d.get_custom1="

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Port range to use for listening.
port_range = 46881-48889

# Start opening ports at a random position within the port range.
port_random = yes

# Set whetever the client should try to connect to UDP trackers.
use_udp_trackers = yes

encryption = allow_incoming,enable_retry,try_outgoing

dht = auto
dht_port = 46881

# Listen for XMLRPC connections
scgi_port = :5000

# set UTF8 encoding
encoding_list = UTF-8
When I issue the command "xmlrpc localhost:5000 system.listMethods" I get this in response:

Code:
Error: Curl failed to perform HTTP POST request.  curl_easy_perform() says: Empty reply from server (-504)
Apache gives me a similar error, pointing firefox or nc at localhost:5000 gives me an empty document, and I have been unable to find anybody else who has had this problem. FWIW, it also happened with 0.8.0/0.12.0 and '.1 as well.

Any help would be MUCH appreciated, I've waited for some time to see this working!

TIA
 
Old 06-03-2008, 04:19 PM   #2
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Original Poster
Rep: Reputation: 30
As an update, I compiled libtorrent/rtorrent from source on debian just now and the exact same thing happened, on a different machine with a different version of libxmlrpc. So I don't know what I'm doing, but at least I'm consistent!
 
Old 08-12-2008, 05:05 PM   #3
asezen
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Hi there,

I am have got the same problem, i try lots of combination but still no luck could someone help please? I also try to connect via ntorrent-0.5 to rtorrent but i didnt work too.

Thanks


Quote:
Originally Posted by german View Post
Hi all,

I've been trying on and off for about 2 months to get the SCGI functionality of rtorrent working, so I can use wtorrent when I'm not home (I already use rtorrent over ssh, but I'd prefer a web interface because I'm picky).

Anyway, I'm using Gentoo 2007.1, with the following relevant software versions:

curl 7.18.1
xmlrpc-c 1.06.27
libtorrent 0.12.2
rtorrent 0.8.2

And this is my ~/.rtorrent.rc:

Code:
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100

# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
#max_peers_seed = 50

# Maximum number of simultanious uploads per torrent.
max_uploads = 5

# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
upload_rate = 45

# Default directory to save the downloaded torrents.
directory = ~/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = ~/.rtorrent

# Watch for new torrents
schedule = watch_directory_1,5,5,"load_start=~/.torrents/*.torrent,d.set_custom1=~/"
schedule = watch_directory_2,5,5,"load_start=~/.tvtorrents/*.torrent,d.set_custom1=~/tv"
schedule = watch_directory_3,5,5,"load_start=~/.musictorrents/*.torrent,d.set_custom1=~/music"

on_finished = move_complete,"execute=mv,$d.get_base_path=,$d.get_custom1= ;d.set_directory=$d.get_custom1="

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Port range to use for listening.
port_range = 46881-48889

# Start opening ports at a random position within the port range.
port_random = yes

# Set whetever the client should try to connect to UDP trackers.
use_udp_trackers = yes

encryption = allow_incoming,enable_retry,try_outgoing

dht = auto
dht_port = 46881

# Listen for XMLRPC connections
scgi_port = :5000

# set UTF8 encoding
encoding_list = UTF-8
When I issue the command "xmlrpc localhost:5000 system.listMethods" I get this in response:

Code:
Error: Curl failed to perform HTTP POST request.  curl_easy_perform() says: Empty reply from server (-504)
Apache gives me a similar error, pointing firefox or nc at localhost:5000 gives me an empty document, and I have been unable to find anybody else who has had this problem. FWIW, it also happened with 0.8.0/0.12.0 and '.1 as well.

Any help would be MUCH appreciated, I've waited for some time to see this working!

TIA
 
  


Reply

Tags
gentoo, rtorrent


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 03:14 AM
LXer: Master Ajax using XML in requests and responses LXer Syndicated Linux News 0 11-07-2006 09:54 PM
mountd time out: "mount_nfs: bad MNT RPC: RPC: Timed out" on client brush Debian 1 10-15-2006 03:01 PM
rpc.lockd & rpc.statd twantrd Linux - General 1 05-21-2005 10:24 AM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration