(Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
wisem2540
Newbie
Newbie
Posts: 4
Joined: October 21st, 2023, 12:43 pm

(Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by wisem2540 »

Hey guys,

Putting my hair out on this one. I had a really old version of SAB running in docker (3.2 maybe?). I connect to from sonarr and radarr using the container name. For the sake of being brief, I upgraded to 4.1 and it appears that my listening host is forever locked to "::" rather than 0.0.0.0 and now sonarr and radarr are getting 403 errors.

Sab logs show the same, that its denying the request.

If I roll back to 3.2, using host 0.0.0.0, everything works as it should, except id have to reconfigure all of my settings.

what can I do here?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by sander »

The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.

So ... do you access via Sab or IP?
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by safihre »

It probably also reports an error text, which one is it?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
wisem2540
Newbie
Newbie
Posts: 4
Joined: October 21st, 2023, 12:43 pm

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by wisem2540 »

sander wrote: October 21st, 2023, 12:57 pm The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.

So ... do you access via Sab or IP?
I can access it yes. Looks like in the parameters of SAB are being controlled by a Python script. Is this expected?
Parameters: "/" "--config-file" "/config" "--server" "0000"

I see this in the Web UI of SAB. I wonder if the new version id defaulting to ::
wisem2540
Newbie
Newbie
Posts: 4
Joined: October 21st, 2023, 12:43 pm

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by wisem2540 »

safihre wrote: October 21st, 2023, 1:26 pm It probably also reports an error text, which one is it?
WARNING a minute ago Refused connection with hostname "sabnzbd" from: ::ffff:172.18.0.2 [Radarr/3.0.0.3891 (ubuntu 20.04)]
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by safihre »

Which Docker image do you use?
In any case, it's a safety feature and somewhere it should have shown you this link (or if you Google the error message) where you can find the solution :)
https://sabnzbd.org/wiki/extra/hostname-check.html
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
wisem2540
Newbie
Newbie
Posts: 4
Joined: October 21st, 2023, 12:43 pm

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by wisem2540 »

safihre wrote: October 21st, 2023, 2:25 pm Which Docker image do you use?
In any case, it's a safety feature and somewhere it should have shown you this link (or if you Google the error message) where you can find the solution :)
https://sabnzbd.org/wiki/extra/hostname-check.html
Im using linuxserver's image.

I did google the error message and the wiki says this has been present since 2.3. My current settings work with 3.2, so I assumed that hostname validation was not my issue. In any case, I added 'sabnzbd' hostname which was listed in the error message, and its working now using version 4.1

I found it odd that Radarr and Sonarr would be presenting 'their' hostname as 'sabnzbd' so it just added to the confusion

Thanks a bunch.
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: (Docker) Cannot connect to Sonarr/Radarr - Hostname :: cannot be changed, old version works fine

Post by safihre »

I think what changed is probably something in the networking of the Docker image, since they changed quite a lot in the Linuxserver base image over all those years. The hostname check hasn't changed indeed.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply