jesec / flood

A modern web UI for various torrent clients with a Node.js backend and React frontend.
https://flood.js.org
GNU General Public License v3.0
2.2k stars 136 forks source link

sock connection problem #654

Open pindaroli opened 1 year ago

pindaroli commented 1 year ago

Type: Bug Report

Your Environment

services: flood: hostname: flood image: jesec/flood user: 1000:1000 restart: unless-stopped command: --port 3001 --allowedpath /data environment: HOME: /config

volumes:
  - /home/olindo/dlconf:/config
  - /home/olindo/drevo/rtorrent/data:/data
ports:
  - 3001:3001

rtorrent: hostname: rtorrent image: jesec/rtorrent user: 1000:1000 restart: unless-stopped command: -o network.port_range.set=6881-6881,system.daemon.set=true environment: HOME: /config volumes:

Error: connect ECONNREFUSED /config/.local/share/rtorrent/rtorrent.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1146:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '/config/.local/share/rtorrent/rtorrent.sock' }

Expected Behavior

it connects and regulary work

Current Behavior

Possible Solution

Steps to Reproduce

1. 2. 3. 4.

Context

trim21 commented 1 year ago

did you mount your socket file into flood container correctly?

maybe socket file is not located at /config/.local/share/rtorrent/rtorrent.sock of container, can you find it in your host dir /home/olindo/dlconf/.local/share/rtorrent/ ?.

pindaroli commented 1 year ago

added your suggest mapping and now: rtorrent: Could not lock session directory: "/config/.local/share/rtorrent/.session/", held by "rtorrent-flood:+17". Hint: use a consistent hostname so rTorrent can safely handle stale locks. and now ?

trim21 commented 1 year ago

I have no idea about this, you may need to see the document of rtorrent. Is there some old lock file exists? Or you are running multiple rtorrent instance?

pindaroli commented 1 year ago

No it's inside a docker container