kiranshila / Doplarr

An *arr request bot for Discord
MIT License
436 stars 31 forks source link

Search result returned no hits always - java.net.ConnectException #125

Closed d-tork closed 7 months ago

d-tork commented 1 year ago

Describe the bug My first time using doplarr, straight out of the box no hits are returned for searches which should yield some.

Expected behavior Search results fuzzy-matched to my query

Screenshots None

Logs Here are the logs for image: linuxserver/doplarr:latest

2023-05-08T07:52:21.750Z bc980433f7ca INFO [doplarr.interaction-state-machine:28] - Performing search for series breaking bad
2023-05-08T07:52:22.328Z bc980433f7ca FATAL [doplarr.utils:78] -
                                           java.lang.Thread.run               Thread.java:  833
             java.util.concurrent.ThreadPoolExecutor$Worker.run   ThreadPoolExecutor.java:  635
              java.util.concurrent.ThreadPoolExecutor.runWorker   ThreadPoolExecutor.java: 1136
         java.util.concurrent.CompletableFuture$AsyncSupply.run    CompletableFuture.java: 1773
            java.util.concurrent.CompletableFuture.postComplete    CompletableFuture.java:  510
       java.util.concurrent.CompletableFuture$UniHandle.tryFire    CompletableFuture.java:  911
               java.util.concurrent.CompletableFuture.uniHandle    CompletableFuture.java:  934
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1  PlainHttpConnection.java:  206
    jdk.internal.net.http.PlainHttpConnection.checkRetryConnect  PlainHttpConnection.java:  230
         jdk.internal.net.http.PlainHttpConnection.connectAsync  PlainHttpConnection.java:  185
                    java.security.AccessController.doPrivileged     AccessController.java:  569
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0  PlainHttpConnection.java:  183
                           sun.nio.ch.SocketChannelImpl.connect    SocketChannelImpl.java:  848
                      sun.nio.ch.SocketChannelImpl.beginConnect    SocketChannelImpl.java:  760
                        sun.nio.ch.SocketChannelImpl.ensureOpen    SocketChannelImpl.java:  195
java.nio.channels.ClosedChannelException:
               java.net.ConnectException:
java.util.concurrent.CompletionException: java.net.ConnectException

And here they are for image: ghcr.io/kiranshila/doplarr:latest

2023-05-08T07:59:28.513Z 39c45ff1de20 INFO [doplarr.interaction-state-machine:28] - Performing search for series breaking bad
2023-05-08T07:59:28.988Z 39c45ff1de20 FATAL [doplarr.utils:78] -
                                           java.lang.Thread.run
             java.util.concurrent.ThreadPoolExecutor$Worker.run
              java.util.concurrent.ThreadPoolExecutor.runWorker
         java.util.concurrent.CompletableFuture$AsyncSupply.run
            java.util.concurrent.CompletableFuture.postComplete
       java.util.concurrent.CompletableFuture$UniHandle.tryFire
               java.util.concurrent.CompletableFuture.uniHandle
 jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7
          jdk.internal.net.http.MultiExchange.responseAsyncImpl
                   jdk.internal.net.http.Exchange.responseAsync
               jdk.internal.net.http.Exchange.responseAsyncImpl
              jdk.internal.net.http.Exchange.responseAsyncImpl0
                  java.util.concurrent.CompletableFuture.handle
          java.util.concurrent.CompletableFuture.uniHandleStage
               java.util.concurrent.CompletableFuture.uniHandle
    jdk.internal.net.http.Exchange.lambda$responseAsyncImpl0$10
                     jdk.internal.net.http.Exchange.checkFor407
     jdk.internal.net.http.Exchange.lambda$responseAsyncImpl0$9
           jdk.internal.net.http.Http1Exchange.sendHeadersAsync
         jdk.internal.net.http.PlainHttpConnection.connectAsync
                  java.util.concurrent.CompletableFuture.handle
          java.util.concurrent.CompletableFuture.uniHandleStage
               java.util.concurrent.CompletableFuture.uniHandle
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1
    jdk.internal.net.http.PlainHttpConnection.checkRetryConnect
         jdk.internal.net.http.PlainHttpConnection.connectAsync
                    java.security.AccessController.doPrivileged
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0
                           sun.nio.ch.SocketChannelImpl.connect
                      sun.nio.ch.SocketChannelImpl.beginConnect
                        sun.nio.ch.SocketChannelImpl.ensureOpen
java.nio.channels.ClosedChannelException:
               java.net.ConnectException:
java.util.concurrent.CompletionException: java.net.ConnectException

Additional context I am using docker-compose on an Ubuntu VM. The Discord app and server were both created specifically for this purpose. I tried first with Linuxserver.io's image but after reading some of the other tickets I switched to the kiranshila image and got the same result. I tried with a couple movies to include malibu's most wanted (to see how it would handle special characters) but also tried hitman which should definitely have returned some results. For good measure I searched for one of the most popular tv series of all time, breaking bad, and still no results.

I thought I might encounter some issues since my setup is odd. My server connects to the internet only through a VPN on port 53. So in this environment, I am not even making sonarr/radarr available on the web as I cannot do port forwarding. This prevented me from using Ombi or Overseerr to issue commands to *arr apps when away from home. I thought doplarr might be a viable workaround, if it could somehow just "listen" to a discord server for commands to execute... the computer can open discord, but it cannot do things like have *arr apps send out notifications to a Telegram bot.

So, problems were expected but I would like to exhaust all options and see if this is something other than my pathway to the internet.

Stapleton commented 1 year ago

I can vouch for this issue. Just setup the Starr suite and Doplarr is refusing to return any results back. Same sort of error as what buddy above me has.

2023-08-26T07:48:40.658Z 5e3ce834ca0d INFO [doplarr.config:66] - Configuration is valid
2023-08-26T07:48:42.262Z 5e3ce834ca0d INFO [discljord.messaging.impl:?] - Starting messaging process
2023-08-26T07:48:42.275Z 5e3ce834ca0d INFO [discljord.connections.impl:?] - Connecting shard 0
2023-08-26 07:48:42.526:INFO::async-dispatch-4: Logging initialized @6884ms to org.eclipse.jetty.util.log.StdErrLog
2023-08-26T07:48:43.787Z 5e3ce834ca0d INFO [doplarr.core:38] - Discord connection successful
2023-08-26T07:48:43.792Z 5e3ce834ca0d INFO [doplarr.core:43] - Connected to guild
2023-08-26T07:48:53.014Z 5e3ce834ca0d INFO [doplarr.interaction-state-machine:28] - Performing search for series shoresy
2023-08-26T07:48:54.030Z 5e3ce834ca0d FATAL [doplarr.utils:78] - 
                                           java.lang.Thread.run   
             java.util.concurrent.ThreadPoolExecutor$Worker.run   
              java.util.concurrent.ThreadPoolExecutor.runWorker   
         java.util.concurrent.CompletableFuture$AsyncSupply.run   
            java.util.concurrent.CompletableFuture.postComplete   
       java.util.concurrent.CompletableFuture$UniHandle.tryFire   
               java.util.concurrent.CompletableFuture.uniHandle   
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1   
    jdk.internal.net.http.PlainHttpConnection.checkRetryConnect   
         jdk.internal.net.http.PlainHttpConnection.connectAsync   
                    java.security.AccessController.doPrivileged   
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0   
                           sun.nio.ch.SocketChannelImpl.connect   
                      sun.nio.ch.SocketChannelImpl.beginConnect   
                        sun.nio.ch.SocketChannelImpl.ensureOpen   
java.nio.channels.ClosedChannelException: 
               java.net.ConnectException: 
java.util.concurrent.CompletionException: java.net.ConnectException

The difference is I dont have some wierd networking setup going on. I am using the docker container, which is on a bridged network, i could directly access the ports if there were any. Yet, I also have the issue. Honestly was looking forward to having a super normie friendly way of requesting content. Invite them to a special discord, and let them add whatever they want. Also side curiosity, whats with the RtL logging for the stacktrace?

i-am-at0m commented 1 year ago

I figured this out. If overseerr for example is in HOST networking mode, you can't access it via its docker url and port, you have to use the external one that you've configured inside overseerr. After I did that, it all started working.

The-Running-Dev commented 8 months ago

This is not a real issue. I ran into this several times. And it had to do with the URL you have configured for Radarr/Sonarr or Overseer. The java.net.ConnectionException means it could not connect to the URL provided. So, config issue, not a real bug.