arcane icon indicating copy to clipboard operation
arcane copied to clipboard

Auto Update Partial run cannot be retried or dismissed — Retry returns 400 "no settled targets to retry"

Open youfou opened this issue 2 weeks ago • 1 comments

Bug Description

A scheduled Auto Update run ended as Partial ("Some updates failed") and the dashboard still shows it under Needs Attention, with no way to clear it.

The failure was in the image-check step, not in applying updates, and there were 0 pending updates. Clicking "Retry run" on that run returns a 400 instead of starting a new run, so the warning is stuck until the next scheduled run succeeds.

Steps To Reproduce

  1. Wait for the scheduled Auto Update job (cron 0 6 * * *) to run on an agent.
  2. In this case the run on agent oracle-jp on 2026-11-17 06:00 (run ID ba01fc8e-d990-4d70-9fca-80bef69ca709, duration 1m 45s) ended as Partial.
  3. Open Dashboard > Needs Attention > View, which leads to the agent history for auto-update.
  4. Click "Retry run" on that run.

Expected Behavior

One of these would help:

  • "Retry run" re-runs the failed check step when there is no settled target to retry, or
  • the Needs Attention entry can be dismissed / acknowledged once the failure has been reviewed, or
  • a Partial run with 0 pending updates does not keep Needs Attention at 1.

Actual Behavior

  • Run log: Check images 5/6 succeeded, 1 failed; Plan update and Apply update both succeeded; "Found 0 pending image update records"; final summary "Some updates failed".
  • The only failed item: lscr.io/linuxserver/webtop:ubuntu-kde distribution inspect of lscr.io/linuxserver/webtop:ubuntu-kde failed: Error response from daemon: too many requests: retry-after: 565.588µs, allowed: 44000/minute
  • Clicking "Retry run" shows this inline error, no new run is created: unexpected status code 400: {"$schema":"https://agent.tunnel.arcane.internal/api/schemas/ErrorModel.json","title":"Bad Request","status":400,"detail":"auto-update has no settled targets to retry"}
  • There is no dismiss / acknowledge / resolve button anywhere I could find: the dashboard Needs Attention card only has "View", the agent run history only offers "Retry run", and Settings > Automations only has enable/disable, schedule, delay and exclusions. The Event Log also does not record this failure (Error count is 0).

Screenshots

No response

Arcane Version

v3.0.1

Installation Method

Docker Compose (Recommended)

Environment Type

Local Docker (Single instance)

Database Type

SQLite (Default)

Operating System

Linux

Docker Version

29.9.3

Browser & Version

No response

Debug Logs

Check images 5/6 succeeded, 1 failed; Plan update and Apply update both succeeded; "Found 0 pending image update records"; final summary "Some updates failed".
distribution inspect of lscr.io/linuxserver/webtop:ubuntu-kde failed: Error response from daemon: too many requests: retry-after: 565.588µs, allowed: 44000/minute
unexpected status code 400: {"$schema":"https://agent.tunnel.arcane.internal/api/schemas/ErrorModel.json","title":"Bad Request","status":400,"detail":"auto-update has no settled targets to retry"}

Docker Compose Configuration


Environment Configuration (.env file)


Additional Context

Thanks for considering this — happy to provide more logs if needed.

youfou avatar Nov 17 '26 14:11 youfou

Same symptom on a second instance — a manager plus three remote agents, all v3.0.1 (upgraded from 2.17.3 two days ago). Confirming the stuck entry is the image check, and that neither Retry nor acknowledge clears it.

What the job history holds for the scheduled image check (101 retained runs, this record predates the 3.0 upgrade):

  • 35 succeeded, 66 Partial
  • every Partial run reads Some image update checks failed, with a single failing target
  • failing target: lscr.io/linuxserver/socket-proxy:latest
  • stored failure chain: daemon digest lookup failed; registry fallback failed: distribution inspect of lscr.io/linuxserver/socket-proxy:latest failed: Error response from daemon: 403 Forbidden / Request forbidden by administrative rules and then registry manifest inspect ... context deadline exceeded

That 403 is expected behaviour in this setup: it is the local socket proxy's own deny page (DISTRIBUTION=0, /distribution blocked by design), so the daemon lookup can never succeed for that image and the registry fallback is the only path. When the fallback also times out, the run ends Partial even though nothing in the fleet needs updating.

The underlying failures stopped on their own (2026-11-11 03:00Z). Since then 175 consecutive hourly checks succeeded, the most recent one today, and the per-container update info is clean. Yet the Partial runs stay in the dashboard's Needs Attention:

  • Retry run is a no-op — the targets already settled, so it fails the same way as reported here
  • there is no acknowledge/dismiss action offered for a Partial run
  • the only removal paths I can find are a per-environment DELETE /agents/{id}/activities/history or lowering activityHistoryRetentionDays, which means throwing away usable history to hide a state that is no longer true

Requests, in the order that would help most:

  1. Make jobs: ack work for Partial runs, so a reviewed partial can be closed without touching history.
  2. Do not count a Partial run whose failing targets are resolved (0 pending updates) towards Needs Attention.
  3. If the check failure is a known-permanent condition for a locally-classified image (socket proxy deny page), treat the build as checked-by-fallback rather than as a failed target.

Environment, for reproduction context: Docker (not Podman), manager on a single host with a published socket proxy (DISTRIBUTION=0), three remote agents over the 3.0 tunnel, image check scheduled hourly.

thitar avatar Nov 17 '26 21:11 thitar