I am getting the exact same problem. I tried everything I can think of and am pretty sure it is a regression in rtorrent itself for the xmlrpc interface. I even modified the scripts for the container and adjusted the config to use a unix socket instead of a loopback port with the same results. When I use Python3 to try and talk to the RPC interface I get closed connection without response:
How I tested:
import httplib
import socket
import xmlrpclib
class UnixStreamHTTPConnection(httplib.HTTPConnection, object):
def __init__(self, *args, **kwargs):
self.socketpath = kwargs.pop('socketpath')
super(UnixStreamHTTPConnection, self).__init__(*args, **kwargs)
def connect(self):
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.sock.connect(self.socketpath)
class UnixStreamTransport(xmlrpclib.Transport, object):
def __init__(self, *args, **kwargs):
self.socketpath = kwargs.pop('socketpath')
super(UnixStreamTransport, self).__init__(*args, **kwargs)
def make_connection(self, host):
return UnixStreamHTTPConnection(host, socketpath=self.socketpath)
proxy = client.ServerProxy('http://localhost', transport=UnixStreamTransport("/tmp/rpc.socket"))
print(proxy.supervisor.getState())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/xmlrpc/client.py", line 1116, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python3.9/xmlrpc/client.py", line 1458, in __request
response = self.__transport.request(
File "/usr/lib/python3.9/xmlrpc/client.py", line 1160, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python3.9/xmlrpc/client.py", line 1173, in single_request
resp = http_conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1371, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 319, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 288, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
Did something change with the binary itself? It's quite peculiar because rutorrent itself can connect fine and loads. This is a fresh install on a new server. I did notice this behavior though on my old server where the rpc dies sometimes. Perhaps it is time to go to qbittorrent even if I much rather stay with the tried and true lol.