linuxserver / docker-jackett

GNU General Public License v3.0
394 stars 95 forks source link

Cannot access API though CouchPotato or Torznab #17

Closed mrjackyliang closed 7 years ago

mrjackyliang commented 7 years ago

I use: Synology DSM 5.2

I run this command: docker run --restart always --name jackett -h jackett -p 9117:9117 -d -v /volume1/docker/jackett/config:/config -v /volume1/docker/jackett/downloads:/downloads linuxserver/jackett:38

CouchPotato Error: [hpotato.core.plugins.base] Failed opening url in TorrentPotato: http://192.168.10.8:9117/potato/avistaz?imdbid=tt4195368&search=Flying+Colors+2015&user=&passkey=xxx&search=Flying+Colors+2015&user=&passkey=xxx

Sonarr Error: 17-1-15 12:18:53.2|Warn|Torznab|Unable to connect to indexer

[v2.0.0.4472] System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00065] in /spksrc/native/mono/work-native/mono-3.10.0/mcs/class/System/System.Net/HttpWebRequest.cs:971 at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /spksrc/native/mono/work-native/mono-3.10.0/mcs/class/System/System.Net/HttpWebRequest.cs:985 at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x000fe] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:61

17-1-15 12:18:53.3|Warn|NzbDroneErrorPipeline|Invalid request Validation failed: -- Unable to connect to indexer, check the log for more details

mrjackyliang commented 7 years ago

Nevermind, found a resolution by changing the Docker commands

docker run --restart always --name jackett --net=host -p 9117:9117 -d -v /volume1/docker/jackett:/config linuxserver/jackett:38

JOduMonT commented 5 years ago

@mrjackyliang when you use --net=host you don't have to mention the port option (-p)

also; if you don't want to run your image with --net=host you could access it through the gateway of your docker network interface

by default it will be the internet bridge and the gateway will be 172.17.0.1

docker network inspect bridge|grep Gateway
                    "Gateway": "172.17.0.1"

in that case jackett will respond at 172.17.0.1:9117