public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-backup v1 0/2] fix #7400: improve handling of corrupted job statefiles
@ 2026-03-17 16:07 Michael Köppl
  2026-03-17 16:07 ` [PATCH proxmox-backup v1 1/2] fix #7400: api: gracefully handle " Michael Köppl
  2026-03-17 16:07 ` [PATCH proxmox-backup v1 2/2] fix #7400: proxy: self-heal " Michael Köppl
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Köppl @ 2026-03-17 16:07 UTC (permalink / raw)
  To: pbs-devel

This patch series fixes a problem where an empty or corrupted job state
file (due to I/O error, abrupt shutdown, ...) would cause API endpoints
for listing jobs to return an error, breaking the web UI for users
because they could not view any of their configured jobs of that type.
It would also cause proxmox-backup-proxy to indefinitely skip the jobs
until a user manually triggered it to rewrite the statefile.

1/2 fixes the API layer by catching the load error, logging a warning,
and returning a default JobScheduleStatus. This ensure the API returns
the job list, showing the affected job without its last run status.

2/2 updates the scheduler loop inside the proxy to match the behavior of
a a newly created job, triggering the job at its next internal (which
then rewrites the statefile).


proxmox-backup:

Michael Köppl (2):
  fix #7400: api: gracefully handle corrupted job statefiles
  fix #7400: proxy: self-heal corrupted job statefiles

 src/api2/admin/prune.rs         | 17 ++++++++++-------
 src/api2/admin/sync.rs          | 16 ++++++++++------
 src/api2/admin/verify.rs        | 17 ++++++++++-------
 src/api2/tape/backup.rs         | 17 ++++++++++-------
 src/bin/proxmox-backup-proxy.rs |  2 +-
 5 files changed, 41 insertions(+), 28 deletions(-)


Summary over all repositories:
  5 files changed, 41 insertions(+), 28 deletions(-)

-- 
Generated by murpp 0.9.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-17 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-17 16:07 [PATCH proxmox-backup v1 0/2] fix #7400: improve handling of corrupted job statefiles Michael Köppl
2026-03-17 16:07 ` [PATCH proxmox-backup v1 1/2] fix #7400: api: gracefully handle " Michael Köppl
2026-03-17 16:07 ` [PATCH proxmox-backup v1 2/2] fix #7400: proxy: self-heal " Michael Köppl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal