Vraag


Acties:
  • 0 Henk 'm!

  • szjoin
  • Registratie: Februari 2011
  • Laatst online: 13-09 23:38
Probleem:
Transmission Docker werkt niet. Hij draait, maar de in de WebUI 'Peer listening port: 51413' blijft op 'Port is Checking...'

Heb al diverse combinatie van vinkjes ge(re)set.

Ouput cmdline:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ss | grep 51413
root@camelot:~/docker/transmission# ss | grep 51413
udp   ESTAB      0      0                                                                              172.20.0.1:49126                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:57323                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:38913                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:36932                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:47231                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:36997                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:45372                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:57793                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:49607                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:41534                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:37489                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:39644                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:56041                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:37748                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:46115                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:54332                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:58444                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:33968                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:56572                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:44290                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:34155                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:42364                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:38275                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:58806                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:60876                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:58863                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:40455                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:38457                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:34378                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:38484                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:44652                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:44673                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:36544                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:59079                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:59114                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:38644                   172.20.0.2:51413
udp   ESTAB      0      0                                                                              172.20.0.1:55204                   172.20.0.2:51413


Mijn docker-compose.yml:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3"

services:
  transmission:
    image: lscr.io/linuxserver/transmission:latest
    container_name: transmission
    environment:
      - PUID=0
      - PGID=0
      - TZ=Europe/Amsterdam
#      - TRANSMISSION_WEB_HOME= #set to specify the directory where the Transmission web interface files are located.
#      - USER= #set to specify a username for accessing the Transmission web interface.
#      - PASS= #set to specify a password for accessing the Transmission web interface. If not set, you might need to set up authentication through other means.
#      - WHITELIST= #specify a comma-separated list of IP addresses that are allowed to connect to the Transmission daemon.
#      - PEERPORT= #specify the port that Transmission will use for peer communication. If not set, the default BitTorrent port (usually 51413) is used.
#      - HOST_WHITELIST= #allows you to specify a comma-separated list of hostnames that are allowed to connect to the Transmission daemon.
    volumes:
      - ./config:/config
      - /media/ssd/transmission/downloads:/downloads
      - /media/ssd/transmission/watch/folder:/watch
    ports:
      - 9091:9091
      - 51413:51413
      - 51413:51413/udp
    networks:
      - transmission_default

    restart: unless-stopped

networks:
  transmission_default:
    external: true


Relevante software en hardware die ik gebruik:
  • Odroid N2+ (wired LAN)
  • ubuntu server
Ook gedraaid, om FW rules problemen te overkomen:
code:
1
2
update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy


Iptables:
code:
1
2
3
root@camelot:~/docker/transmission# iptables --list | grep 51413
ACCEPT     tcp  --  anywhere             172.20.0.2           tcp dpt:51413
ACCEPT     udp  --  anywhere             172.20.0.2           udp dpt:51413


Goed te weten: Op een Linux laptop, zelfde netwerk (wifi), draait een native Transmission app die wel gewoon werkt.


Mijn redenering:
Omdat de laptop wel werkt, durf ik de router met evt port-forwarding etc uit te sluiten.
Dat laat dan de Docker host over.
Het 'ss' commando toont aan dat de ports bekend zijn op de host.
De '.yml' file is niet bepaald exotisch en dus ook buiten verdenking.

Ik loop een beetje vast nu... Wie kan mij helpen?

[ Voor 63% gewijzigd door szjoin op 27-12-2023 16:16 ]

Alle reacties


  • szjoin
  • Registratie: Februari 2011
  • Laatst online: 13-09 23:38
Ik heb het volgende aan de docker-compose.yml toegevoegd:
code:
1
 network_mode: "host"


Nu werkt het wel.

Kan iemand mij uitleggen wat er precies is veranderd? Gegeven mijn docker-compose.yml in mijn vorige post zou (volgend de documentatie) het moeten werken.

Waarom werkte het dan toch niet en nu wel?

  • akimosan
  • Registratie: Augustus 2003
  • Niet online
Ik heb vermoedelijk hetzelfde probleem gehad met mijn Docker Transmission op mijn Synology. Draaide jaren probleemloos en toen stopte het met werken Ik weet niet sinds welke versie het probleem is opgetreden (auto-update stond altijd aan).
Aangezien ik Transmission niet in "host-mode" wilde draaien ben ik overgestapt op een andere Torrent client: Deluge.
Werkt ook prima. Als je heel erg verknocht bent aan Transmission en host-mode werkt voor jou prima,is dat ook een oplossing.