podman error creating runtime static files
On RHEL 8 (CSB), I'm attempting to use podman. I've added myself to /etc/sub{u,g}id, logged out and then back in. I've reinstalled shadow-utils. Everything seems like it ought to work now, but no matter what podman command I run, I seem to hit a runtime error. ``` $ podman --log-level debug image list INFO[0000] running as rootless ERRO[0000] Could not get runtime: error creating runtime static files directory /var/lib/flatpak/exports/share:/containers/storage/libpod: mkdir /var/lib/flatpak/exports/share:: permission denied ``` Running with `sudo` is successful, but I'm trying to avoid a `sudo` dependency if possible. Ultimately, I'd like to pull an image from quay.io via the podman Ansible module, and I assume this error is why my playbook reliably fails at the podman task.
On 8/10/20 06:01, Seth Kenlon wrote:
On RHEL 8 (CSB), I'm attempting to use podman. I've added myself to /etc/sub{u,g}id, logged out and then back in. I've reinstalled shadow-utils. Everything seems like it ought to work now, but no matter what podman command I run, I seem to hit a runtime error.
``` $ podman --log-level debug image list INFO[0000] running as rootless ERRO[0000] Could not get runtime: error creating runtime static files directory /var/lib/flatpak/exports/share:/containers/storage/libpod: mkdir /var/lib/flatpak/exports/share:: permission denied ```
Running with `sudo` is successful, but I'm trying to avoid a `sudo` dependency if possible.
Ultimately, I'd like to pull an image from quay.io <http://quay.io> via the podman Ansible module, and I assume this error is why my playbook reliably fails at the podman task.
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Podman has nothing to do with /var/lib/flatpack, so did you somehow add this to storage.conf?
The inclusion of Flatpak in the path confused me too. Flatpak, as I recall, came preinstalled on the system and I haven't done anything (in my memory) to change it. Nothing in /etc/containers/storage.conf about Flatpak: ``` $ grep -v '^#' /etc/containers/storage.conf | awk 'NF' [storage] driver = "overlay" runroot = "/var/run/containers/storage" graphroot = "/var/lib/containers/storage" [storage.options] additionalimagestores = [ ] size = "" override_kernel_check = "true" [storage.options.thinpool] ``` On Tue, Aug 11, 2020 at 2:10 AM Daniel Walsh <dwalsh@redhat.com> wrote:
On 8/10/20 06:01, Seth Kenlon wrote:
On RHEL 8 (CSB), I'm attempting to use podman. I've added myself to /etc/sub{u,g}id, logged out and then back in. I've reinstalled shadow-utils. Everything seems like it ought to work now, but no matter what podman command I run, I seem to hit a runtime error.
``` $ podman --log-level debug image list INFO[0000] running as rootless ERRO[0000] Could not get runtime: error creating runtime static files directory /var/lib/flatpak/exports/share:/containers/storage/libpod: mkdir /var/lib/flatpak/exports/share:: permission denied ```
Running with `sudo` is successful, but I'm trying to avoid a `sudo` dependency if possible.
Ultimately, I'd like to pull an image from quay.io via the podman Ansible module, and I assume this error is why my playbook reliably fails at the podman task.
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Podman has nothing to do with /var/lib/flatpack, so did you somehow add this to storage.conf?
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Thanks. I checked ~/.config/containers/storage.conf and it seems the flatpak entry is indeed from that file. I'm not clear on what is generating that file, but there seems to be no way to alter or remove it reliably: I don't know what's adding flatpak there, but no matter what I did to remove it, it was added back to the file. Eventually, I did a chmod 444 on the file to prevent alteration. Now I get this error instead: ``` $ cat ~/.config/containers/storage.conf [storage] driver = "overlay" runroot = "/run/user/100900" graphroot = "/containers/storage" [storage.options] mount_program = "/usr/bin/fuse-overlayfs" $ podman image list Could not get runtime: error creating runtime static files directory /containers/storage/libpod: mkdir /containers: permission denied ``` Finally, I settled on a modification that I assume ought to work, but unfortunately podman seems to hang: ``` $ cat ~/.config/containers/storage.conf [storage] driver = "overlay" runroot = "/run/user/100900" graphroot = "~/.config/containers/storage" [storage.options] mount_program = "/usr/bin/fuse-overlayfs" $ time podman --log-level debug image list INFO[0000] running as rootless DEBU[0000] Initializing boltdb state at ~/.config/containers/storage/libpod/bolt_state.db DEBU[0000] Using graph driver overlay DEBU[0000] Using graph root ~/.config/containers/storage DEBU[0000] Using run root /run/user/100977 DEBU[0000] Using static dir ~/.config/containers/storage/libpod DEBU[0000] Using tmp dir /run/user/100977/libpod/tmp DEBU[0000] Set libpod namespace to "" DEBU[0000] [graphdriver] trying provided driver "overlay" DEBU[0000] overlay: mount_program=/usr/bin/fuse-overlayfs ^C^C^C real 3m48.563s user 2m24.923s sys 1m56.044s ``` Any ideas about what might be abducting my ~/.config/containers/storage.conf (and why), and why podman fails? On Tue, Aug 11, 2020 at 9:56 AM Gordon Messmer <gordon.messmer@gmail.com> wrote:
On 8/10/20 11:04 AM, Seth Kenlon wrote:
Nothing in /etc/containers/storage.conf about Flatpak:
``` $ grep -v '^#' /etc/containers/storage.conf | awk 'NF'
Sure, but you also need to check .config/containers/storage.conf _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
On 8/10/20 14:04, Seth Kenlon wrote:
The inclusion of Flatpak in the path confused me too. Flatpak, as I recall, came preinstalled on the system and I haven't done anything (in my memory) to change it.
Nothing in /etc/containers/storage.conf about Flatpak:
``` $ grep -v '^#' /etc/containers/storage.conf | awk 'NF' [storage] driver = "overlay" runroot = "/var/run/containers/storage" graphroot = "/var/lib/containers/storage" [storage.options] additionalimagestores = [ ] size = "" override_kernel_check = "true" [storage.options.thinpool] ```
On Tue, Aug 11, 2020 at 2:10 AM Daniel Walsh <dwalsh@redhat.com <mailto:dwalsh@redhat.com>> wrote:
On 8/10/20 06:01, Seth Kenlon wrote:
On RHEL 8 (CSB), I'm attempting to use podman. I've added myself to /etc/sub{u,g}id, logged out and then back in. I've reinstalled shadow-utils. Everything seems like it ought to work now, but no matter what podman command I run, I seem to hit a runtime error.
``` $ podman --log-level debug image list INFO[0000] running as rootless ERRO[0000] Could not get runtime: error creating runtime static files directory /var/lib/flatpak/exports/share:/containers/storage/libpod: mkdir /var/lib/flatpak/exports/share:: permission denied ```
Running with `sudo` is successful, but I'm trying to avoid a `sudo` dependency if possible.
Ultimately, I'd like to pull an image from quay.io <http://quay.io> via the podman Ansible module, and I assume this error is why my playbook reliably fails at the podman task.
_______________________________________________ Podman mailing list -- podman@lists.podman.io <mailto:podman@lists.podman.io> To unsubscribe send an email to podman-leave@lists.podman.io <mailto:podman-leave@lists.podman.io>
Podman has nothing to do with /var/lib/flatpack, so did you somehow add this to storage.conf?
_______________________________________________ Podman mailing list -- podman@lists.podman.io <mailto:podman@lists.podman.io> To unsubscribe send an email to podman-leave@lists.podman.io <mailto:podman-leave@lists.podman.io>
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Does podman info work?
podman info appears to hang. ``` $ podman --version podman version 1.0.2-dev $ time podman info ^C real 1m36.925s user 1m1.415s sys 0m49.129s ``` On Tue, Aug 11, 2020 at 9:53 PM Daniel Walsh <dwalsh@redhat.com> wrote:
On 8/10/20 14:04, Seth Kenlon wrote:
The inclusion of Flatpak in the path confused me too. Flatpak, as I recall, came preinstalled on the system and I haven't done anything (in my memory) to change it.
Nothing in /etc/containers/storage.conf about Flatpak:
``` $ grep -v '^#' /etc/containers/storage.conf | awk 'NF' [storage] driver = "overlay" runroot = "/var/run/containers/storage" graphroot = "/var/lib/containers/storage" [storage.options] additionalimagestores = [ ] size = "" override_kernel_check = "true" [storage.options.thinpool] ```
On Tue, Aug 11, 2020 at 2:10 AM Daniel Walsh <dwalsh@redhat.com> wrote:
On 8/10/20 06:01, Seth Kenlon wrote:
On RHEL 8 (CSB), I'm attempting to use podman. I've added myself to /etc/sub{u,g}id, logged out and then back in. I've reinstalled shadow-utils. Everything seems like it ought to work now, but no matter what podman command I run, I seem to hit a runtime error.
``` $ podman --log-level debug image list INFO[0000] running as rootless ERRO[0000] Could not get runtime: error creating runtime static files directory /var/lib/flatpak/exports/share:/containers/storage/libpod: mkdir /var/lib/flatpak/exports/share:: permission denied ```
Running with `sudo` is successful, but I'm trying to avoid a `sudo` dependency if possible.
Ultimately, I'd like to pull an image from quay.io via the podman Ansible module, and I assume this error is why my playbook reliably fails at the podman task.
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Podman has nothing to do with /var/lib/flatpack, so did you somehow add this to storage.conf?
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Does podman info work? _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Just remove the containers.conf file from your homedir, and it should work rm ~/.config/containers/containers.conf. If you have anything else in that directory that you don't understand, remove them also. On 8/11/20 06:19, Seth Kenlon wrote:
podman info appears to hang.
``` $ podman --version podman version 1.0.2-dev $ time podman info ^C real 1m36.925s user 1m1.415s sys 0m49.129s ```
On Tue, Aug 11, 2020 at 9:53 PM Daniel Walsh <dwalsh@redhat.com <mailto:dwalsh@redhat.com>> wrote:
On 8/10/20 14:04, Seth Kenlon wrote:
The inclusion of Flatpak in the path confused me too. Flatpak, as I recall, came preinstalled on the system and I haven't done anything (in my memory) to change it.
Nothing in /etc/containers/storage.conf about Flatpak:
``` $ grep -v '^#' /etc/containers/storage.conf | awk 'NF' [storage] driver = "overlay" runroot = "/var/run/containers/storage" graphroot = "/var/lib/containers/storage" [storage.options] additionalimagestores = [ ] size = "" override_kernel_check = "true" [storage.options.thinpool] ```
On Tue, Aug 11, 2020 at 2:10 AM Daniel Walsh <dwalsh@redhat.com <mailto:dwalsh@redhat.com>> wrote:
On 8/10/20 06:01, Seth Kenlon wrote:
On RHEL 8 (CSB), I'm attempting to use podman. I've added myself to /etc/sub{u,g}id, logged out and then back in. I've reinstalled shadow-utils. Everything seems like it ought to work now, but no matter what podman command I run, I seem to hit a runtime error.
``` $ podman --log-level debug image list INFO[0000] running as rootless ERRO[0000] Could not get runtime: error creating runtime static files directory /var/lib/flatpak/exports/share:/containers/storage/libpod: mkdir /var/lib/flatpak/exports/share:: permission denied ```
Running with `sudo` is successful, but I'm trying to avoid a `sudo` dependency if possible.
Ultimately, I'd like to pull an image from quay.io <http://quay.io> via the podman Ansible module, and I assume this error is why my playbook reliably fails at the podman task.
_______________________________________________ Podman mailing list -- podman@lists.podman.io <mailto:podman@lists.podman.io> To unsubscribe send an email to podman-leave@lists.podman.io <mailto:podman-leave@lists.podman.io>
Podman has nothing to do with /var/lib/flatpack, so did you somehow add this to storage.conf?
_______________________________________________ Podman mailing list -- podman@lists.podman.io <mailto:podman@lists.podman.io> To unsubscribe send an email to podman-leave@lists.podman.io <mailto:podman-leave@lists.podman.io>
_______________________________________________ Podman mailing list -- podman@lists.podman.io <mailto:podman@lists.podman.io> To unsubscribe send an email to podman-leave@lists.podman.io <mailto:podman-leave@lists.podman.io>
Does podman info work?
_______________________________________________ Podman mailing list -- podman@lists.podman.io <mailto:podman@lists.podman.io> To unsubscribe send an email to podman-leave@lists.podman.io <mailto:podman-leave@lists.podman.io>
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
participants (3)
-
Daniel Walsh -
Gordon Messmer -
Seth Kenlon