trogious / rtremote Goto Github PK
View Code? Open in Web Editor NEWrtorrent <- rtremote <- rtorrent remote
rtorrent <- rtremote <- rtorrent remote
my start.sh is
#!/bin/sh -
RTR_ROOT=`pwd`
/usr/bin/env \
RTR_CERT_PATH="$RTR_ROOT/cert/cert.pem" \
RTR_RETR_INTERVAL=5 \
RTR_SHORT_CACHE_TTL=5 \
RTR_LISTEN_HOST="0.0.0.0" \
RTR_LISTEN_PORT=8765 \
SOCK_PATH="/home/rtorrent/.session/rpc.socket" \
RTR_PID_PATH="$RTR_ROOT/wss_server.pid" \
RTR_LOG_PATH="$RTR_ROOT/rtr_wss_server.log" \
RTR_SECRET_KEY_SHA1="a8fdc205a9f19cc1c7507a60c4f01b13d11d7fd0" \
RTR_PLUGINS_DISK_USAGE_PATHS="/" \
python3 $RTR_ROOT/server_wss.py $@
and the socket is there,
ll /home/rtorrent/.session/rpc.socket
srwxrwxrwx 1 root root 0 Aug 19 03:34 /home/rtorrent/.session/rpc.socket
I tried to change SOCK_PATH to unix:///home/rtorrent/.session/rpc.socket but still failed.
2020-08-19 04:27:47|ERROR|277|[Errno 2] No such file or directory
Traceback (most recent call last):
File "/root/src/rtremote/server_wss.py", line 259, in global_data_updater
data = remote.get_global()
File "/root/src/rtremote/remote.py", line 32, in get_global
g = self.rpc.global_data(['system.api_version'])
File "/root/src/rtremote/rpc.py", line 99, in global_data
data = self.system_multicall(commands)
File "/root/src/rtremote/rpc.py", line 57, in system_multicall
resp = scgi.post(body)
File "/root/src/rtremote/scgi.py", line 38, in post
sock = self.get_connected_socket()
File "/root/src/rtremote/scgi.py", line 33, in get_connected_socket
sock.connect(self.host_port.replace('unix:', '').replace('local:', ''))
FileNotFoundError: [Errno 2] No such file or directory
2020-08-19 04:34:39|ERROR|277|[Errno 2] No such file or directory
Traceback (most recent call last):
File "/root/src/rtremote/server_wss.py", line 259, in global_data_updater
data = remote.get_global()
File "/root/src/rtremote/remote.py", line 32, in get_global
g = self.rpc.global_data(['system.api_version'])
File "/root/src/rtremote/rpc.py", line 99, in global_data
data = self.system_multicall(commands)
File "/root/src/rtremote/rpc.py", line 57, in system_multicall
resp = scgi.post(body)
File "/root/src/rtremote/scgi.py", line 38, in post
sock = self.get_connected_socket()
File "/root/src/rtremote/scgi.py", line 33, in get_connected_socket
sock.connect(self.host_port.replace('unix:', '').replace('local:', ''))
FileNotFoundError: [Errno 2] No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.