aetaric / checkrr

Checkrr Scans your library files for corrupt media and optionally replaces the files via sonarr and radarr
MIT License
228 stars 10 forks source link

DNS in docker image not working with checkrr #51

Closed quorn23 closed 1 year ago

quorn23 commented 1 year ago

{"Radarr \"radarr\" Connected":false,"Startup":true,"level":"info","msg":"api.Get(v3/system/status): httpClient.Do(req): Get \"http://\u003cnil\u003e:7878/api/v3/system/status\": dial tcp: lookup \u003cnil\u003e: no such host","time":"2023-01-24T21:08:09Z"}

No matter if i try address: radarr address: "radarr" address: http://radarr address: "http://radarr"

Checkrr throws the no such host error. If i use the internal docker ip it works fine. exec into the container i can ping the container radarr fine. If i recall correctly, there is some go bind module (might be the wrong terminology) that needs to be included, so the app can use the dns properly. Our mate David Newhall might remember what it was, i believe we had the issue with Notifiarr as well at one point.

Edit: Output with the internal container ip of radarr {"Radarr \"radarr\" Connected":true,"Startup":true,"level":"info","msg":"Radarr Connected.","time":"2023-01-24T21:15:31Z"} In config: address: "10.1.0.20"

aetaric commented 1 year ago

Captain gave me the build flag. I'll get this sorted in 3.1.2.