Translated message

A translation of this page exists in English.

Error loading image.tar: Error committing the finished image: error adding layer with blob

Solution Verified - Updated -

Issue

podman load -i image.tar コマンドを使用してアーカイブされたイメージをロードすると、次のエラーが出力されます。

  • Error loading image.tar: Error committing the finished image: error adding layer with blob
  • error creating layer with ID "xxxxxxxx": Stat /var/lib/containers/storage/overlay/xxxxxx: no such file or directory
  • Error loading image.tar: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive)
  • rpc error: code = Unknown desc = Error writing blob: error storing blob to file "/var/tmp/storagexxxx/1": flate: corrupt input before offset xxxxxx
# podman load -i image.tar --log-level=debug

INFO[0000] podman filtering at log level debug
DEBU[0000] Called load.PersistentPreRunE(podman load -i image.tar --log-level=debug)
DEBU[0000] Merged system config "/usr/share/containers/containers.conf"
DEBU[0000] Using conmon: "/usr/bin/conmon"
DEBU[0000] Initializing boltdb state at /var/lib/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/lib/containers/storage
DEBU[0000] Using run root /var/run/containers/storage
DEBU[0000] Using static dir /var/lib/containers/storage/libpod
DEBU[0000] Using tmp dir /run/libpod
DEBU[0000] Using volume path /var/lib/containers/storage/volumes
DEBU[0000] Set libpod namespace to ""
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] cached value indicated that overlay is supported
DEBU[0000] cached value indicated that metacopy is not being used
DEBU[0000] NewControl(/var/lib/containers/storage/overlay): nextProjectID = 1076602600
DEBU[0000] cached value indicated that native-diff is usable
DEBU[0000] backingFs=xfs, projectQuotaSupported=true, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend file
DEBU[0000] configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/runc"
INFO[0000] Found CNI network crio (type=bridge) at /etc/cni/net.d/100-crio-bridge.conf
INFO[0000] Found CNI network 200-loopback.conf (type=loopback) at /etc/cni/net.d/200-loopback.conf
INFO[0000] Found CNI network podman (type=bridge) at /etc/cni/net.d/87-podman-bridge.conflist
DEBU[0000] Default CNI network name podman is unchangeable
INFO[0000] Setting parallel job count to 97
DEBU[0000] Loading image from "image.tar"
DEBU[0000] -> Attempting to load "image.tar" as an OCI directory
DEBU[0000] parsed reference into "[overlay@/var/lib/containers/storage+/var/run/containers/storage]localhost/image.tar:latest"
DEBU[0000] Copying source image image.tar: to destination image [overlay@/var/lib/containers/storage+/var/run/containers/storage]localhost/image.tar:latest

DEBU[0000] Error loading image.tar: Error initializing source oci:image.tar:: open image.tar/index.json: not a directory
DEBU[0000] -> Attempting to load "image.tar" as an OCI archive
DEBU[0000] Error deleting temporary directory: <nil>
DEBU[0000] Error loading image.tar: error loading index: open /var/tmp/oci140799822/index.json: no such file or directory
DEBU[0000] -> Attempting to load "image.tar" as a Docker dir
....
Copying blob 50644c29ef5a skipped: already exists
Copying blob 0097350d5664 skipped: already exists
Copying blob 7564af3b5460 skipped: already exists
Copying blob 80e4461a4b82 skipped: already exists
DEBU[0000] No compression detected
DEBU[0000] Using original blob without modification
Copying config 5823fd65b3 done
Writing manifest to image destination
Storing signatures
DEBU[0000] Error loading image.tar: Error committing the finished image: error adding layer with blob "sha256:bc73e9c7b7265138f02d7672a560583228d2ba53348e373950978e3ef954673f": error creating layer with ID "2cc8d0b2df04d184d6a1172ae7469571cfb83f1a157527d4d5a25153bebd8eff": Stat /var/lib/containers/storage/overlay/fac7cbfaf3acd03fe52af6d1ebc27792b18e7745fc3d9a13e66b9235dfacc408: no such file or directory
DEBU[0000] Error loading image.tar: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive)
Error: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive

Environment

  • Red Hat OpenShift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content