-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: readlink /var/lib/containers/storage/overlay: invalid argument when using Podman on WSL #8743
Comments
Thanks for reaching out, @PavelSosin-320 ! That's a curious issue. Could you share the debug logs ( |
I suppose you need only the tail of the log after network initialization: This may explain while buildah that has its own image store works, including buildah --type=image inspect variant. |
Can you try removing the image and repull? |
@vrothberg I did it - see step 6. So, podman image inspect shall look into overlay-images, instead of overlay-containers. and cat /var/lib/containers/storage/overlay-images/images.json output indeed contains node image layers. (too big to attach) |
@PavelSosin-320 im not able to trip this bug ... i suspect it might be a difference in our commands. could you provide an exact set of podman commands to the point of tripping the first error? |
I just created the single container pod from VSCode dev-container image using new:my-pod-name |
On my new Podman 2.0.6 the same scenario: |
Works OK Podman 2.0.6 on Ubuntu 20.10 Groovy WSL distro |
I got the same issue,how did you fix it?thanks |
I've also faced this issue. It happened on virtual machine after I've accidently rebooted it during build process. After that I was not able to inspect the state of cached image layer. Podman version
|
Please update to podman 4.* there have some fixes in this area. |
@rhatdan is there any possibility to cherry-pick the fixes into 3.x branch? Is it more of fundamental architectural rework or something potentially surgically transplant-able? |
The 3.x releases are out of support at this point, so there will be no further bugfixes made there |
@mheon thanks a lot for reply, is there nevertheless any way to find out which commits roughly fixed the issue, so we can cherry-pick manually? |
/kind bug
Description
Podman image inspect fails with Error: readlink /var/lib/containers/storage/overlay: invalid argument
Landscape:
Podman 2.2 on Ubuntu 20.04 distro with "Kube" and Podman installed from Ubuntu repository
Steps to reproduce the issue:
0. Install Podman on Ubuntu and check if it works - indeed, works
Describe the results you received:
Error: readlink /var/lib/containers/storage/overlay: invalid when analyzing pulled image using podman image inspect
Describe the results you expected:
The same result as when I analyzing nginx image or node image using buildah
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
WSL2 distro
Hint: Podman runs inside WSL VM and WSL file system. It has tiny rootfs inside a compressed vhdx file containing ext4 volume.
Most of the storage is in the /mnt/c,d,... filesystems:
drvfs 139271164 139119476 151688 100% /mnt/c
drvfs 87256060 72047908 15208152 83% /mnt/d
podman container inspect works OK
podman image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/node latest bd4dba13afd5 3 days ago 963 MB
2d840844f8e7 3 weeks ago 963 MB
docker.io/library/nginx
I can do podman image inspect for every image except node official image. What is wrong with it?
The text was updated successfully, but these errors were encountered: