
Backup jobs rely on podman commit, which fails with archive/tar: write too long when backing up a WordPress container in production. The error occurs consistently on some WP containers.
We haven't pinpointed the exact cause yet. The most likely hypothesis, based on similar reports upstream (containers/storage, containers/podman), is a mismatch between the size declared in the tar header (via stat() at read time) and the bytes actually read — which typically happens when a file changes size during the commit (concurrent writes). This container runs WordPress with an active cache plugin, so there's continuous file generation/writing in wp-content/uploads/ and cache directories during the backup window.
Steps to reproduce
- WordPress container in production, with an active cache plugin continuously generating/rewriting files in
wp-content/uploads/ (or cache).
- Run a backup.
- Observe the error at the job logs:
Error: copying layers and metadata for container "...": initializing source containers-storage:<domain>: storing layer "<hash>" to file: on copy: archive/tar: write too long
- Not every WordPress containers fails, suggesting containers without concurrent active writes (same base image, no traffic/cache generating files) do not reproduce the error.
Impact
- There's no error message identifying which file caused the mismatch, which makes diagnosis and any manual workaround (e.g. pausing the process writing to that specific file) difficult.
Backup jobs rely on
podman commit, which fails witharchive/tar: write too longwhen backing up a WordPress container in production. The error occurs consistently on some WP containers.We haven't pinpointed the exact cause yet. The most likely hypothesis, based on similar reports upstream (containers/storage, containers/podman), is a mismatch between the size declared in the tar header (via
stat()at read time) and the bytes actually read — which typically happens when a file changes size during the commit (concurrent writes). This container runs WordPress with an active cache plugin, so there's continuous file generation/writing inwp-content/uploads/and cache directories during the backup window.Steps to reproduce
wp-content/uploads/(or cache).Impact