nylonee / watchlistarr

Customizable sync of Plex Watchlist to Sonarr/Radarr
GNU General Public License v3.0
176 stars 14 forks source link

Unable to connect to Sonar or generate config file. #181

Open Redryan243 opened 1 month ago

Redryan243 commented 1 month ago

I have tried with a few different configs, however I am consistently getting this error

[+] Running 1/0 ✔ Container jarvis-watchlistarr-1 R... 0.0s Attaching to watchlistarr-1 watchlistarr-1 | 04:36:43.465 [io-compute-3] INFO configuration.ConfigurationUtils$ - Successfully connected to Sonarr watchlistarr-1 | 04:36:43.738 [io-compute-3] ERROR configuration.ConfigurationUtils$ - Unable to connect to Radarr at host.docker.internal:7878, with error java.net.ConnectException: Connection refused watchlistarr-1 | java.lang.IllegalArgumentException: Unable to connect to Radarr at host.docker.internal:7878, with error java.net.ConnectException: Connection refused watchlistarr-1 | at configuration.ConfigurationUtils$.throwError(ConfigurationUtils.scala:336) watchlistarr-1 | at configuration.ConfigurationUtils$.$anonfun$getRadarrConfig$5(ConfigurationUtils.scala:176) watchlistarr-1 | at apply @ http.HttpClient.httpRequest(HttpClient.scala:41) watchlistarr-1 | at fromFuture @ http.HttpClient.httpRequest(HttpClient.scala:41) watchlistarr-1 | at map @ configuration.ConfigurationUtils$.$anonfun$getRadarrConfig$4(ConfigurationUtils.scala:170) watchlistarr-1 | at flatMap @ configuration.ConfigurationUtils$.$anonfun$getRadarrConfig$4(ConfigurationUtils.scala:170) watchlistarr-1 | at apply @ http.HttpClient.httpRequest(HttpClient.scala:41) watchlistarr-1 | at fromFuture @ http.HttpClient.httpRequest(HttpClient.scala:41) watchlistarr-1 exited with code 1

This is my current compose setup (Sorry it is spaced out properly here, but I can't seem to get it to display properly spaced when my comment saves. I am saving it as a quote to try and save some of the format)

services: watchlistarr: image: nylonee/watchlistarr environment: SONARR_BASE_URL: http://192.168.1.231:8989 RADARR_BASE_URL: http://192.168.1.231:7878 SONARR_API_KEY: removed RADARR_API_KEY: removed PLEX_TOKEN: removed volumes:

  • ./watchlistarr/:/config restart: unless-stopped

If I run it without an existing directory in ./watchlistarr then I also get an added log that the config.yaml was created, however it only seems to make the directory and no config.yaml

Redryan243 commented 1 month ago

I pulled the config manually and changed my base urls to http://radarr:7878 and http://sonarr:8989 and everything worked. It seems the issue is with the defaults not working and the config.yaml not pulling to the volume.

Edit: further testing seems to show that the configs aren't all being used by the container. My baseurl definitely worked, but others like tags, profile, and interval do not seem to work.