Sonarr and radarr are not loading the webpages outside of the container.
I have used the instructions to install the following linuxservers:
sonarr: linuxserver/sonarr - LinuxServer.io
radarr: linuxserver/radarr - LinuxServer.io
bazarr: from the bazarr wepage
My docker-compose file is copied from the webpage:
version: "2.1"
services:
sonarr:
image: lscr.io/linuxserver/sonarr
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- /docker/sonarr:/config
- "/media/data:/data"
ports:
- 7878:7878
restart: unless-stopped
radarr:
image: lscr.io/linuxserver/radarr
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- /docker/radarr:/config
- "/media/data:/data"
ports:
- 8989:8989
restart: unless-stopped
bazarr:
image: lscr.io/linuxserver/bazarr
container_name: bazarr
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- /docker/bazarr:/config
- "/media/data:/data"
ports:
- 6767:6767
restart: unless-stopped
When I do docker-compose up
it starts the containers. If I look at the sonarr log I can see it is listening on port :8989:
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController: http://*:8989/
[Info] SonarrBootstrapper: Starting Web Server
If I docker exec
into the container and do a curl -v http://localhost:8989
I get the webpage loaded successfully.
If I try to do the same curl in the host OS I get:
* Trying 127.0.0.1:8989...
* Connected to localhost (127.0.0.1) port 8989 (#0)
> GET / HTTP/1.1
> Host: localhost:8989
> User-Agent: curl/7.74.0
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
If I do an lsof -i
outside of the container, docker-pr is listening to the port:
docker-pr 1867 root 4u IPv4 25194 0t0 TCP *:8989 (LISTEN)
docker-pr 1875 root 4u IPv6 24142 0t0 TCP *:8989 (LISTEN)
both the radarr and sonarr images show the same results, they load webpages inside the container but not outside. I also tried the bazarr image and it works as expected.
So there seems to be an issue with the port. I have tried deleting the images and containers 3 times without success. Is this a docker problem? Is docker not forwarding the ports correctly, is there a problem with the images? Any other ideas?