theotherp / nzbhydra2

Usenet meta search
Other
1.25k stars 75 forks source link

Added with WAIT in SABnzbd when using "Send to SABnzbd" from search #599

Closed danielb2 closed 4 years ago

danielb2 commented 4 years ago

Just want to add something to the queue from a search. It's added to the queue just fine, but it's stuck indefiniately on WAIT.

Yes

Happens every time I try to add something

Yes, I figured it out.

So what's happening is that I'm using a dns shortcut to my server. It's been defined in /etc/hosts so instead of typing out the IP address of my server to access hydra, I use the shortname of the server. It appears Hydra uses that instead of the IP address specified in /config/downloading. When I switch to accessing hydra by IP, everything works just fine. However, the docker container hydra/sabnzbd lives in doesn't have access to the shortname so sab tries to access via shortname and is stuck forever more.

theotherp commented 4 years ago

You didn't add me the debug infos zip.

I guess you're sending links to sab? Try sending the nzb instead. Or use the full address instead of that shortcut.

danielb2 commented 4 years ago

How about this ?

Steps to repro:

  1. Create a dns alias in /etc/hosts called 'hydra' that points to the host of your nzbhydra server.
  2. use the alias to access your hydra instance
  3. search and add search result to nzb


Screen Shot 2020-07-21 at 12 36 12

add using sab

SABnzbd _note server having issues finding the host_ Again, be sure that the host doesn't have the alias in it's own `/etc/hosts` otherwise it will resolve just fine.

danielb2 commented 4 years ago

Out of curiosity, why doesn't hydra send the full link from the search result to sab instead of a link to itself ?

theotherp commented 4 years ago

POST YOUR DEBUG INFOS. Jesus, is that so hard?

danielb2 commented 4 years ago

I thought the issue was self-explanatory with it not resolving the DNS. I do go through logs just to double-check, so it's absolutely more effort.

nzbhydra-debuginfos-2020-07-22-08-12.zip

theotherp commented 4 years ago

Well, there's a reason I ask for them in the first place and then asked again.

The point is that I need to see the config you're using. You've configured Hydra to send links to your downloader and to redirect the requests to the actual indexer. If I sent the actual link directly to the download Hydra would be unable to get notified of the actual download. You can select to upload the NZBs to the downloader instead of sending links. That way sab does not need to connect to hydra.

danielb2 commented 4 years ago

Ah, I got a workaround :) But it's still a bug, right ?

theotherp commented 4 years ago

Not really, no. Hydra uses the URL you use to call it to determine its address. That address needs to be resolvable by your downloader if you want to send links instead of NZBs.

You could add a script or something to the downloader container to add the same hosts entry there.

danielb2 commented 4 years ago

@theotherp why does it use the URL vs the configured value?

Screen Shot 2020-07-22 at 09 54 53

After all, I am specifying it here. Clearly this is a case where it doesn't work using the URL in the browser. IS there a downside to using the configured value ?

theotherp commented 4 years ago

The problem is with sab connecting to hydra. The connection from hydra to sab obviously works as you're successfully sending links to it.

On Wed, 22 Jul 2020, 18:55 Daniel Bretoi, notifications@github.com wrote:

@theotherp https://github.com/theotherp why does it use the URL vs the configured value?

[image: Screen Shot 2020-07-22 at 09 54 53] https://user-images.githubusercontent.com/26678/88205313-6df49300-cc01-11ea-941a-0aaee28552fc.png

After all, I am specifying it here

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/theotherp/nzbhydra2/issues/599#issuecomment-662568421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNUA6MAZ5HKGJLUIWZKYLTR44KZTANCNFSM4PD3KKHQ .

danielb2 commented 4 years ago

🤦 right