Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose missing config file #176

Open
kymocode opened this issue Jul 19, 2024 · 2 comments
Open

Docker Compose missing config file #176

kymocode opened this issue Jul 19, 2024 · 2 comments

Comments

@kymocode
Copy link

Anyone getting the following with docker compose up

[+] Running 1/0
 ✔ Container watchlistarr-watchlistarr-1  Created                                                                                                                                                                                       0.0s
Attaching to watchlistarr-watchlistarr-1
watchlistarr-watchlistarr-1  | 03:02:04.001 [io-compute-35] ERROR configuration.ConfigurationUtils$ - Unable to connect to Sonarr at host.docker.internal:8989, with error java.net.ConnectException: Connection refused
watchlistarr-watchlistarr-1  | java.lang.IllegalArgumentException: Unable to connect to Sonarr at host.docker.internal:8989, with error java.net.ConnectException: Connection refused
watchlistarr-watchlistarr-1  |  at configuration.ConfigurationUtils$.throwError(ConfigurationUtils.scala:336)
watchlistarr-watchlistarr-1  |  at configuration.ConfigurationUtils$.$anonfun$getSonarrConfig$5(ConfigurationUtils.scala:132)
watchlistarr-watchlistarr-1  |  at apply @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr-watchlistarr-1  |  at fromFuture @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr-watchlistarr-1  |
watchlistarr-watchlistarr-1  |
watchlistarr-watchlistarr-1  |  at map @ configuration.ConfigurationUtils$.$anonfun$getSonarrConfig$4(ConfigurationUtils.scala:126)
watchlistarr-watchlistarr-1  |  at flatMap @ configuration.ConfigurationUtils$.$anonfun$getSonarrConfig$4(ConfigurationUtils.scala:126)
watchlistarr-watchlistarr-1  |  at apply @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr-watchlistarr-1  |  at fromFuture @ http.HttpClient.httpRequest(HttpClient.scala:41)

Your config file is located here

/var/snap/docker/common/var-lib-docker/volumes/watchlistarr_config/_data/config.yaml

Can this be automatically created next to the docker-compose.yml file?

@nylonee
Copy link
Owner

nylonee commented Jul 31, 2024

Could you share the docker-compose file you're using to start up Watchlistarr?

@waibashi
Copy link

waibashi commented Aug 20, 2024

I have exactly the same issue creating my docker-compose. Here is mine

version: '3.8'
services:
  watchlistarr:
    image: nylonee/watchlistarr
    container_name: watchlistarr
    environment:
      SONARR_API_KEY:  _Key Removed_
      RADARR_API_KEY: _Key Removed_
      PLEX_TOKEN:  _Token Removed_
    volumes:
      - ./config:/app/config

I can spin the docker, but when I look at the logs, it gives the same errors as OP

root@docker:/docker/watchlistarr# docker-compose logs -f
Attaching to watchlistarr
watchlistarr    | 03:26:13.973 [io-compute-1] ERROR configuration.ConfigurationUtils$ - Unable to connect to Sonarr at host.docker.internal:8989, with error java.net.ConnectException: Connection refused
watchlistarr    | java.lang.IllegalArgumentException: Unable to connect to Sonarr at host.docker.internal:8989, with error java.net.ConnectException: Connection refused
watchlistarr    |       at configuration.ConfigurationUtils$.throwError(ConfigurationUtils.scala:336)
watchlistarr    |       at configuration.ConfigurationUtils$.$anonfun$getSonarrConfig$5(ConfigurationUtils.scala:132)
watchlistarr    |       at apply @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr    |       at fromFuture @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr    |       at map @ configuration.ConfigurationUtils$.$anonfun$getSonarrConfig$4(ConfigurationUtils.scala:126)
watchlistarr    |       at flatMap @ configuration.ConfigurationUtils$.$anonfun$getSonarrConfig$4(ConfigurationUtils.scala:126)
watchlistarr    |       at apply @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr    |       at fromFuture @ http.HttpClient.httpRequest(HttpClient.scala:41)
watchlistarr exited with code 1

Yet, my docker LXC can ping my Sonarr LXC and I have communication between both of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants