Skip to content

fix: retry soon when GitHub's unreachable, and tidy up the allowed hosts - #22

Merged
NotAFlightRisk merged 1 commit into
mainfrom
fix/retry-and-allowed-hosts
Dec 3, 2026
Merged

NotAFlightRisk merged 1 commit into
mainfrom
fix/retry-and-allowed-hosts

Conversation

@NotAFlightRisk

Copy link
Copy Markdown
Owner

Category

Bugfix (one that bites after a reboot, plus three small ones)

Overview

If Patchcall starts before DNS does, which is easy to end up with when Pi-hole or AdGuard runs on the same box, the first check can't reach GitHub and the next one's six hours away. Every app reads "Source unavailable" (or "Stale data") until then. Only Docker being out of reach got the one-minute retry, so a fetch that fails on the network gets it too now, and the page catches up a minute after the network does. A 404 or the rate limit still waits for the usual interval, so a bad override can't eat the 60 an hour.

The small ones:

  • PATCHCALL_ALLOWED_HOSTS shrugs off spaces and ports. a.lan, b.lan used to turn b.lan away, and nas.lan:7282 could never match, with a 403 telling you to add what was already there
  • /api/status says "pending": true while the first check is running, and "apps": [] rather than null, so a dashboard doesn't read it as nothing running
  • Unmapped rows show the image next to the container name, since the overrides file wants bugsink/bugsink and not bugsink-bugsink-1

Unmapped row with its image

Issue Number

N/A

Additional Info

If one repo failed on the network every time while the rest answered, it'd check every minute until the rate limit stepped in. I couldn't find a way to get there, since every request goes to the same host, but it's the bit I'm least sure of.

@github-actions github-actions Bot added the bug Something isn't working label Dec 3, 2026
@NotAFlightRisk
NotAFlightRisk merged commit d1afb24 into main Dec 3, 2026
12 checks passed
@NotAFlightRisk
NotAFlightRisk deleted the fix/retry-and-allowed-hosts branch December 3, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant