lostb1t / replex

Remix your Plex hubs
204 stars 7 forks source link

Server is unreachable from Clients #114

Closed Lokilicious closed 8 months ago

Lokilicious commented 8 months ago

Hi, i set up everything according to the readme and accessing replex directly via port 3001 works fine. But my clients cannot connect to the server. (i.e. libraries don't load). Neither local nor remote.

Only if i manually put in the replex ip and port in the client it connects and it works fine.

My docker-compose.yml:

---
version: "2.1"
services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Europe/Vienna
      - VERSION=docker
      - PLEX_CLAIM=X
    volumes:
      - ./config/plex:/config
      - /media/storage/tvshows:/tv
      - /media/storage/movies:/movies
      - /media/storage/plex_test:/test
      - /media/storage/anime:/anime
    devices:
      - /dev/dri/card0:/dev/dri/card0
      - /dev/dri/renderD128:/dev/dri/renderD128
    restart: unless-stopped
    ports:
      - 32400:32400
    networks:
      plex_network:
  replex:
    image: ghcr.io/lostb1t/replex:latest
    container_name: replex
    environment:
      REPLEX_HOST: http://server.lan:32400
      REPLEX_CACHE_TTL: 600
    ports:
      - 3001:80
    restart: unless-stopped
    depends_on:
      - plex
    networks:
      plex_network:

networks:
  plex_network:
    external: true

replex log files only contain tons of those:

2024-01-15T07:46:21.522371Z ERROR salvo_proxy: get response data failed error=Other(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("server.lan")), port: Some(32400), path: "/:/websockets/notifications", query: Some("X-Plex-Token=X"), fragment: None }, source: hyper::Error(IncompleteMessage) }) uri=http://replex.lokilicious.work/:/websockets/notifications?X-Plex-Token=X

clients xml thingy for good measure:

<resources>
<resource name="Home Cinema" product="Plex Media Server" productVersion="1.32.8.7639-fb6452ebf" platform="Linux" platformVersion="5.10.0-13-amd64" device="Docker Container (LinuxServer.io)" clientIdentifier="0030bbb02d2ae17005171d02cd34da0df6b04a62" createdAt="2022-11-03T12:22:50Z" lastSeenAt="2024-01-15T01:27:32Z" provides="server" ownerId="" sourceTitle="" publicAddress="X" accessToken="" owned="1" home="0" synced="0" relay="0" presence="1" httpsRequired="0" publicAddressMatches="1" dnsRebindingProtection="0" natLoopbackSupported="1">
<connections>
<connection protocol="https" address="mydomain" port="3001" uri="https://mydomain:3001" local="0" relay="0" IPv6="0"/>
<connection protocol="http" address="172.26.0.4" port="32400" uri="http://172.26.0.4:32400" local="1" relay="0" IPv6="0"/>
<connection protocol="http" address="mydomain" port="3001" uri="http://mydomain:3001" local="0" relay="0" IPv6="0"/>
</connections>
</resource>
<resource name="iPad" product="Plex for iOS" productVersion="8.29" platform="iOS" platformVersion="16.6" device="iPad" clientIdentifier="9611CB77-38B1-45F1-874C-B042668632CD" createdAt="2023-01-10T16:43:15Z" lastSeenAt="2024-01-15T07:38:07Z" provides="client,controller,sync-target,player,pubsub-player,provider-playback" ownerId="" sourceTitle="" publicAddress="X" accessToken="" owned="1" home="0" synced="0" relay="0" presence="1" httpsRequired="0" publicAddressMatches="1">
<connections>
<connection protocol="http" address="192.168.178.29" port="32500" uri="http://192.168.178.29:32500" local="1" relay="0" IPv6="0"/>
</connections>
</resource>
</resources>

I actually have no idea where 192.168.178.29:32500 for the ipad comes from, thats not any ip that has anything to do with plex 😆

Lokilicious commented 8 months ago

Turns out i am stupid 😆 in my case the custom server access url should not have contained the port since i nginx proxy manager is listening on 80 - so obviously it was not able to make a connection.