Page 1 of 1

[FIXED][Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 12:52 pm
by ila

Hi :)
First of all, thank you for creating this ressource, it fits exactly my family's needs and I look forward to have it fully running

I managed to install everything after a while, it worked for a few hours but now I'm having issues with both Radarr and Sonarr connecting to the download clients (qBit and SABnzdb) and I cannot find what possibly changed for it not to connect anymore
All clients are up and running, can be accessed through my browser, qBit still seeding/downloading and still goes down when I turn off gluetun alone
yams check-vpn gives me a proper result too

I did not change either the passwords qbit or the API key of SABnzdb and yet they can't connect to them.
I did try to delete the "manual setup" through "Settings - Download clients" to re link them, but I only get the messages "Unable to connect to (qBit or SABnzd)" on both Radarr and Sonarr, and I checked my login info several times, even went back to the installation tutorial, restarted the containers several time : same issue :/

I did add a NGINX reverse proxy container to yams that only connects to jellyfin through duckdns, but I didn't use any of those ports
I tried to stop the NGINX container alone and left the other running to see if it was causing the issue but the problem is still here
I'm really confused as everything seems to be the same than before, I don't understand what I did to cause this and I can't seem to find the issue
All logs are clean, except for "couldn't connect to download clients due to error" in the logs of Radarr and Sonarr

I'm definitely missing something and already spent over a day trying to fix this, so I decided to try and ask for help online

Here is some input that might be useful :


Code: Select all

~/Desktop$ docker ps
CONTAINER ID   IMAGE                                 COMMAND                  CREATED             STATUS                       PORTS                                                                                                                                                                                                                                         NAMES
e18e2a6ded7b   lscr.io/linuxserver/sabnzbd:latest    "/init"                  About an hour ago   Up About an hour                                                                                                                                                                                                                                                           sabnzbd
49bbfa192e2b   nginx:latest                          "/docker-entrypoint.…"   About an hour ago   Up 43 minutes                0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp                                                                                                                                                                      nginx_reverse_proxy
a0583ee360ed   lscr.io/linuxserver/qbittorrent       "/init"                  About an hour ago   Up About an hour                                                                                                                                                                                                                                                           qbittorrent
6ff8f1cc5ffe   lscr.io/linuxserver/jellyfin          "/init"                  About an hour ago   Up About an hour             0.0.0.0:8096->8096/tcp, :::8096->8096/tcp, 8920/tcp                                                                                                                                                                                           jellyfin
2eedac73398b   lscr.io/linuxserver/readarr:develop   "/init"                  About an hour ago   Up About an hour             0.0.0.0:8787->8787/tcp, :::8787->8787/tcp                                                                                                                                                                                                     readarr
e0f4a474bf0a   lscr.io/linuxserver/prowlarr          "/init"                  About an hour ago   Up About an hour             0.0.0.0:9696->9696/tcp, :::9696->9696/tcp                                                                                                                                                                                                     prowlarr
7c73043e7138   lscr.io/linuxserver/radarr            "/init"                  About an hour ago   Up About an hour             0.0.0.0:7878->7878/tcp, :::7878->7878/tcp                                                                                                                                                                                                     radarr
d1b43730362e   lscr.io/linuxserver/bazarr            "/init"                  About an hour ago   Up About an hour             0.0.0.0:6767->6767/tcp, :::6767->6767/tcp                                                                                                                                                                                                     bazarr
aeb510fac4b4   containrrr/watchtower                 "/watchtower"            About an hour ago   Up About an hour (healthy)   8080/tcp                                                                                                                                                                                                                                      watchtower
875e849c4da4   portainer/portainer-ce                "/portainer"             About an hour ago   Up About an hour             8000/tcp, 9443/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp                                                                                                                                                                                 portainer
d75aa171a383   lscr.io/linuxserver/lidarr            "/init"                  About an hour ago   Up About an hour             0.0.0.0:8686->8686/tcp, :::8686->8686/tcp                                                                                                                                                                                                     lidarr
d0d4e3d291d0   lscr.io/linuxserver/sonarr            "/init"                  About an hour ago   Up 21 minutes                0.0.0.0:8989->8989/tcp, :::8989->8989/tcp                                                                                                                                                                                                     sonarr
6541809771be   qmcgaw/gluetun:v3                     "/gluetun-entrypoint"    About an hour ago   Up 15 seconds (healthy)      0.0.0.0:8080-8081->8080-8081/tcp, :::8080-8081->8080-8081/tcp, 0.0.0.0:8388->8388/tcp, :::8388->8388/tcp, 0.0.0.0:8888->8888/tcp, :::8888->8888/tcp, 0.0.0.0:8388->8388/udp, :::8388->8388/udp, 0.0.0.0:8003->8000/tcp, [::]:8003->8000/tcp   gluetun

Code: Select all

~/Desktop$ sudo netstat -tuln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9696 0.0.0.0:* LISTEN
tcp 0 0 100.88.55.42:49111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:7878 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8003 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8096 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8388 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8686 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6767 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8787 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8989 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 :::9696 :::* LISTEN
tcp6 0 0 :::7878 :::* LISTEN
tcp6 0 0 :::8003 :::* LISTEN
tcp6 0 0 :::8096 :::* LISTEN
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 :::8081 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::8388 :::* LISTEN
tcp6 0 0 :::8686 :::* LISTEN
tcp6 0 0 :::443 :::* LISTEN
tcp6 0 0 :::6767 :::* LISTEN
tcp6 0 0 :::8787 :::* LISTEN
tcp6 0 0 :::8888 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 :::9000 :::* LISTEN
tcp6 0 0 :::8989 :::* LISTEN
udp 0 0 127.0.0.1:44872 0.0.0.0:*
udp 0 0 0.0.0.0:36711 0.0.0.0:*
udp 0 0 0.0.0.0:53177 0.0.0.0:*
udp 0 0 127.0.0.54:53 0.0.0.0:*
udp 0 0 127.0.0.53:53 0.0.0.0:*
udp 0 0 0.0.0.0:8388 0.0.0.0:*
udp 0 0 127.0.0.1:43499 0.0.0.0:*
udp 0 0 0.0.0.0:55866 0.0.0.0:*
udp 0 0 127.0.0.1:60353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:48586 0.0.0.0:*
udp 0 0 0.0.0.0:52881 0.0.0.0:*

Code: Select all

sudo lsof -i :8080
COMMAND      PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
docker-pr 364994 root    4u  IPv4 1450395      0t0  TCP *:http-alt (LISTEN)
docker-pr 365016 root    4u  IPv6 1449483      0t0  TCP *:http-alt (LISTEN)
~/Desktop$ sudo lsof -i :8081
COMMAND      PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
docker-pr 406220 root    4u  IPv4 1601036      0t0  TCP *:tproxy (LISTEN)
docker-pr 406227 root    4u  IPv6 1601041      0t0  TCP *:tproxy (LISTEN)

my docker-compose.custom.yaml :

Code: Select all

services:
  nginx:
    image: nginx:latest
    container_name: nginx_reverse_proxy
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - ${INSTALL_DIRECTORY}/config/nginx:/etc/nginx
      - ${INSTALL_DIRECTORY}/data:/data
    ports:
      - 80:80
      - 443:443
    restart: unless-stopped
    depends_on:
      - jellyfin

I have seen on other posts that the docker-compose.yml might be asked for : I had to do minor changes to gluetun because NordVPN doesn't allow port forwarding and gluetun couldn't connect with the options on.

Code: Select all

services:
  # jellyfin is used to serve your media to the client devices
  jellyfin:
    image: lscr.io/linuxserver/${MEDIA_SERVICE}
    container_name: ${MEDIA_SERVICE}
    #network_mode: host # plex
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - VERSION=docker
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/${MEDIA_SERVICE}:/config
    ports: # plex
      - 8096:8096 # plex
    restart: unless-stopped

  # qBitorrent is used to download torrents
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent
    container_name: qbittorrent
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - WEBUI_PORT=8081
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/qbittorrent:/config
    restart: unless-stopped
    #ports: # qbittorrent
      #- 8081:8081 # qbittorrent
    network_mode: "service:gluetun"

  # SABnzbd is used to download from usenet
  sabnzbd:
    image: lscr.io/linuxserver/sabnzbd:latest
    container_name: sabnzbd
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=America/Montevideo
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/sabnzbd:/config
    # ports: # sabnzbd
      # - 8080:8080 # sabnzbd
    restart: unless-stopped
    network_mode: "service:gluetun"

  # Sonarr is used to query, add downloads to the download queue and index TV shows
  # https://sonarr.tv/
  sonarr:
    image: lscr.io/linuxserver/sonarr
    container_name: sonarr
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/sonarr:/config
    ports:
      - 8989:8989
    restart: unless-stopped

  # Radarr is used to query, add downloads to the download queue and index Movies
  # https://radarr.video/
  radarr:
    image: lscr.io/linuxserver/radarr
    container_name: radarr
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/radarr:/config
    ports:
      - 7878:7878
    restart: unless-stopped

  # Lidarr is used to query, add downloads to the download queue and index Music
  # https://lidarr.audio/
  lidarr:
    image: lscr.io/linuxserver/lidarr
    container_name: lidarr
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/lidarr:/config
    ports:
      - 8686:8686
    restart: unless-stopped

  # Readarr is used to query, add downloads to the download queue and index Audio and Ebooks
  # https://readarr.com/
  readarr:
    image: lscr.io/linuxserver/readarr:develop
    container_name: readarr
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/readarr:/config
    ports:
      - 8787:8787
    restart: unless-stopped

  # Bazarr is used to download and categorize subtitles
  # https://www.bazarr.media/
  bazarr:
    image: lscr.io/linuxserver/bazarr
    container_name: bazarr
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/bazarr:/config
    ports:
      - 6767:6767
    restart: unless-stopped

  # Prowlarr is our torrent indexer/searcher. Sonarr/Radarr use Prowlarr as a source
  # https://prowlarr.com/
  prowlarr:
    image: lscr.io/linuxserver/prowlarr
    container_name: prowlarr
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${INSTALL_DIRECTORY}/config/prowlarr:/config
    ports:
      - 9696:9696
    restart: unless-stopped

  # Gluetun is our VPN, so you can download torrents safely
  gluetun:
    image: qmcgaw/gluetun:v3
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8888:8888/tcp # HTTP proxy
      - 8388:8388/tcp # Shadowsocks
      - 8388:8388/udp # Shadowsocks
      - 8003:8000/tcp # Admin
      - 8080:8080/tcp # gluetun
      - 8081:8081/tcp # gluetun
    environment:
      - VPN_SERVICE_PROVIDER=${VPN_SERVICE}
      - VPN_TYPE=${VPN_TYPE}
      - WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
      # - OPENVPN_USER=${VPN_USER}
      # - OPENVPN_PASSWORD=${VPN_PASSWORD}
      - PORT_FORWARD_ONLY=off
      - VPN_PORT_FORWARDING=off
      - SERVER_COUNTRIES=France
    restart: unless-stopped

  # Portainer helps debugging and monitors the containers
  portainer:
    image: portainer/portainer-ce
    container_name: portainer
    ports:
      - 9000:9000
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ${INSTALL_DIRECTORY}/config/portainer:/data
    restart: unless-stopped

  # Watchtower is going to keep our instances updated
  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    environment:
      - WATCHTOWER_CLEANUP=true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped

Thank you for reading me!


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 1:08 pm
by rogs

Hey @ila!

Are you still able to access qBittorrent/Gluetun even though Sonarr/Radarr can't? Can you send a screenshot of how are you adding the download clients to Sonarr/Radarr?

Cheers!

Roger.


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 1:37 pm
by ila

Hello Rogs :)

Are you still able to access qBittorrent/Gluetun even though Sonarr/Radarr can't?

Yes I can, through my browser via http://localhost:8081/ for qBit (if I properly understood what you are asking), it's up and running

Can you send a screenshot of how are you adding the download clients to Sonarr/Radarr?

Here it is (I didn't include the API key in the screenshot, but it is included when I tried to re add them)
When I hit "Test", it shuffles for a bit then gives error "Test was aborted due to an error: Unable to connect to SABnzbd, Operation timed out (192.168.1.156:8080)"
local IP is same as when it was working previously, same result from

Code: Select all

hostname -I

Passwords and API keys fit

Image

Image


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 1:42 pm
by rogs

Try changing the hostname to gluetun and give it another test. Instead of 192.168.1.156, put gluetun. That should work!


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 1:55 pm
by ila
rogs wrote: Thu Jan 16, 2025 1:42 pm

Try changing the hostname to gluetun and give it another test. Instead of 192.168.1.156, put gluetun. That should work!

It does work for qBitorrent !
It somehow doesn't for SABnzbd (?)
I get a warning on the web interface of SABnzbd itself saying " Refused connection with hostname "gluetun" from: ::ffff:172.(rest of IP adress i'm not sure I should censor or not) [Sonarr/4.0.12.2823 (alpine 3.21.0)]"

The "add client" part of sonarr itself says

Code: Select all

"Test was aborted due to an error: Unable to connect to SABnzbd, HTTP request failed: [403:Forbidden] [GET] at [http://gluetun:8080/api?mode=get_config&apikey=myAPIkey=json"

I went back to SABnzbd directly to copy paste the key so it's definitely the good one


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 2:05 pm
by rogs

That's weird, I've never seen that one :?

Did you change any rules? SABnzbd should accept request from anywhere by default


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 2:13 pm
by ila

Did you change any rules? SABnzbd should accept request from anywhere by default

No I didn't, I followed the config guide to the T :/

Only changes I made were for the VPN in the docker-compose, added NGINX following your "Adding your own containers to YAMS" directions and checked the "allow access from outside" for Jellyfin, but that's all
I'm really new to this so I wouldn't want to mess things up

Thank you so much for your time and answers
If I come across a solution I will come back here and post a follow up right here
In the meantime I will continue investigating


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 2:22 pm
by rogs

This looks like the right place! https://sabnzbd.org/wiki/extra/hostname-check.html

Image

And I have it changed locally, which means I forgot to add it to the docs! :lol:

If you add "gluetun" to that list, it should work! The correct format is:

Code: Select all

whatever-you-had-before, maybe-other-thing, gluetun

Add it to the last of the list!

After that, restart yams just to be sure and try again :mrgreen:


Re: [Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 2:31 pm
by ila
rogs wrote: Thu Jan 16, 2025 2:22 pm

This looks like the right place! https://sabnzbd.org/wiki/extra/hostname-check.html

Image

And I have it changed locally, which means I forgot to add it to the docs! :lol:

If you add "gluetun" to that list, it should work! The correct format is:

Code: Select all

whatever-you-had-before, maybe-other-thing, gluetun

Add it to the last of the list!

After that, restart yams just to be sure and try again :mrgreen:

That's it !! Thank you so much !
This feels like Christmas lol
Everything works ! :D Issue is fixed


Re: [FIXED][Radarr and Sonarr] Download clients not connecting anymore

Posted: Thu Jan 16, 2025 4:27 pm
by rogs

Thank you for the report! I created an issue to add the instructions to the docs later!

https://gitlab.com/rogs/yams.media/-/issues/10