Coder Social home page Coder Social logo

rtremote's Issues

unable to conect to socket

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.