sct / overseerr

Request management and media discovery tool for the Plex ecosystem
https://overseerr.dev
MIT License
3.76k stars 437 forks source link

Cache hostname(s) for DNS query results with Media Availability Sync job #3586

Open blackthroat opened 1 year ago

blackthroat commented 1 year ago

Description

Every morning at 5AM I receive alerts from Uptime Kuma with a "Temporary failure in name resolution" message for a handful of my devices. After digging through logs of all my Docker containers with Graylog, I determined that Overseerr was causing this and it coincides with the default scheduled run for the Media Availability Sync job.

After changing the Radarr, Sonarr, and Tautulli addresses from a hostname to an IP address (in my instance, they all share the same hostname), then manually running the Media Availability Sync job numerous times, I no longer received Pi-hole messages that a client has been rate-limited. After changing them back to a hostname, I was able to easily replicate the problem. No other Overseerr job seems to flood my DNS server (Pi-hole) with queries. You can see in the screenshots below that the Download Tracker job, which usually has no issues running, receives an error while the Media Availability Sync job is in progress.

Desired Behavior

Have the Media Availability Sync job cache and use the DNS query result(s) of the hostname(s) for services (Radarr, Sonarr, and Tautulli) for the remainder of the job.

Additional Context

image

image

image

image

image

Code of Conduct

Fallenbagel commented 10 months ago

For the time being you could add this to your docker compose:

image: ....
extra_hosts:
  - "plex.url.com:172.16.0.5"   # "domain:ip"
  - "sonarr.lan:172.16.0.8"   # "domain:ip"
stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.