You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I suddenly couldn't enter my toolbox, so I tried to recreate it again using toolbox reset and toolbox enter with no luck. Here is the output of toolbox -v enter:
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user zlopez
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: running on a cgroups v2 host
toolbox: current Podman version is 1.6.2
toolbox: migration not needed: Podman version 1.6.2 is unchanged
toolbox: Fedora generational core is f31
toolbox: base image is fedora-toolbox:31
toolbox: container is fedora-toolbox-31
toolbox: checking if container fedora-toolbox-31 exists
toolbox: calling org.freedesktop.Flatpak.SessionHelper.RequestSession
toolbox: starting container fedora-toolbox-31
toolbox: /etc/profile.d/toolbox.sh already mounted in container fedora-toolbox-31
Error: unable to start container "fedora-toolbox-31": creating file '/var/home/zlopez/.local/share/containers/storage/overlay/bcd97a238cf639f8d3dfeef7b5c44b7ad9f4ba99410864856358b26ade201f1e/merged/media': Is a directory: OCI runtime error
toolbox: failed to start container fedora-toolbox-31
I have an old spare laptop I use for testing; it's running Silverblue Rawhide. Toolbox is working there on its most recent update (Rawhide.20191107.n.1), but it's between the F31 versions: crun-0.10.4-1.fc32.x86_64.
So it seems something broke in crun between 0.10.4 and 0.10.5. Hopefully this helps to isolate the problem and either fix it in crun or podman... or work around or adapt to it in toolbox.
However, I should note that podman in rawhide is at version 1.6.3-0.34.dev.git1e750f7.fc32.x86_64, not podman-1.6.2-2.fc31.x86_64.
Meanwhile, toolbox is on the same version in all the places, toolbox-0.0.16-1.fc31.noarch (or toolbox-0.0.16-1.fc32.noarch in rawhide).
Error: unable to start container "fedora-toolbox-31": creating file '/var/home/pluto/.local/share/containers/storage/overlay/e56a2816dbb492d3446030ba65d10d659ee6dd621dbaf76e20290f59ad4f35af/merged/mnt': Is a directory: OCI runtime error
I just removed all the references to /mnt and /run/media in toolbox and that temporarily resolved the issue for me.
I can confirm downgrading crun on SB31 using latest updates will result in working toolbox containers. Running "31.20191115.0 (2019-11-15T01:59:08Z)" and performed these steps:
A few days later, the toolbox again is broken.
Seems the problem is fixed in crun-0.10.6-1.fc3, according to this info podman-container-tools/podman#4024.
To fix the issue perform similar steps as @stephanmol mentioned above:
@aaronuurmancrun-0.10.6-1.fc31.x86_64 is in Silverblue as of yesterday. You shouldn't need to override anymore.
I'm happily getting work done in containers on Silverblue right this very moment thanks to toolbox (and podman and crun). Hopefully it all works again for you too after an rpm-ostree update (and reboot)?
Should the override stay in place after running rpm-ostree upgrade I had to perform manually rpm-ostree override reset crun which made it used the latest version of crun which fixes the issue (yay!)
FWIW, I did an rpm-ostree override reset -a and rebooted just to be sure I didn't have any overrides. (Specifying just crun or crun-0.10.6 didn't work. But resetting all did.)
The crun override wasn't showing, but I wanted to make sure it wasn't transparently there because it was the same version as what now ships in Silverblue. (I don't want to have some surprise in the future. 😉)
Let me re-purpose this issue to improve our handling of /mnt and /media to make things a bit more robust in the immediate short-term. We already do the same for /home.
Activity
elhutchi commentedon Nov 12, 2019
I had the same issue after upgrading Silverblue. These were the packages included in the upgrade. It was fixed after rolling back.
Zlopez commentedon Nov 12, 2019
Probably a new version of
cruncaused this.garrett commentedon Nov 12, 2019
I have an old spare laptop I use for testing; it's running Silverblue Rawhide. Toolbox is working there on its most recent update (Rawhide.20191107.n.1), but it's between the F31 versions:
crun-0.10.4-1.fc32.x86_64.So it seems something broke in crun between 0.10.4 and 0.10.5. Hopefully this helps to isolate the problem and either fix it in crun or podman... or work around or adapt to it in toolbox.
However, I should note that podman in rawhide is at version
1.6.3-0.34.dev.git1e750f7.fc32.x86_64, notpodman-1.6.2-2.fc31.x86_64.Meanwhile, toolbox is on the same version in all the places,
toolbox-0.0.16-1.fc31.noarch(ortoolbox-0.0.16-1.fc32.noarchin rawhide).giuseppe commentedon Nov 12, 2019
would you please share the output of
stat /mediafrom the host?linux: resolve source paths
giuseppe commentedon Nov 12, 2019
I've opened a PR to fix it in crun. In the meanwhile, you can workaround it with:
martymichal commentedon Nov 12, 2019
Thank you for the quick fix, @giuseppe!!
p1u3o commentedon Nov 13, 2019
I'm having a similar issue with /mnt
I just removed all the references to /mnt and /run/media in toolbox and that temporarily resolved the issue for me.
giuseppe commentedon Nov 13, 2019
@p1u3o just to be sure my fix addresses your issue, could you show me the output for
stat /mnt?benhoman commentedon Nov 13, 2019
@giuseppe I'm having the same issue. The output of
stat /mntis:File: /mnt -> var/mntSize: 7 Blocks: 0 IO Block: 4096 symbolic linkDevice: fd01h/64769d Inode: 2621481 Links: 5Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)Context: system_u:object_r:mnt_t:s0Access: 2019-11-13 08:18:38.666995206 -0500Modify: 2019-11-12 13:51:35.169000757 -0500Change: 2019-11-13 06:09:45.432966095 -0500Birth: 2019-11-12 13:51:35.169000757 -0500p1u3o commentedon Nov 13, 2019
If it's of any help I'm using XFS with SELinux set as permissive.
aaronuurman commentedon Nov 13, 2019
Same problem here.
After recreation of a container still can't enter.
File: /mnt -> var/mnt Size: 7 Blocks: 0 IO Block: 4096 symbolic link Device: fd00h/64768d Inode: 655408 Links: 4 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:mnt_t:s0 Access: 2019-11-13 20:58:21.899394135 +0200 Modify: 2019-10-19 12:03:46.378316430 +0300 Change: 2019-11-13 19:37:41.427229814 +0200 Birth: 2019-10-19 12:03:46.378316430 +0300stephanmol commentedon Nov 15, 2019
I can confirm downgrading crun on SB31 using latest updates will result in working toolbox containers. Running "31.20191115.0 (2019-11-15T01:59:08Z)" and performed these steps:
Maybe this is helpful to someone getting no work done on SB as main desktop without having working toolbox containers.
I'm glad I found this post of @garrett which pointed me in this direction https://discussion.fedoraproject.org/t/toolbox-broken-again-crun-update-in-31-20191112-0/11369/8
aaronuurman commentedon Nov 17, 2019
@stephanmol Thank you, got toolbox working again.
aaronuurman commentedon Nov 20, 2019
A few days later, the toolbox again is broken.
Seems the problem is fixed in crun-0.10.6-1.fc3, according to this info podman-container-tools/podman#4024.
To fix the issue perform similar steps as @stephanmol mentioned above:
Download crun-0.10.6-1.fc3 (https://kojipkgs.fedoraproject.org//packages/crun/0.10.6/1.fc31/x86_64/crun-0.10.6-1.fc31.x86_64.rpm)
rpm-ostree override replace ~/Downloads/crun-0.10.6-1.fc31.x86_64.rpm
systemctl reboot
garrett commentedon Nov 20, 2019
@aaronuurman
crun-0.10.6-1.fc31.x86_64is in Silverblue as of yesterday. You shouldn't need to override anymore.I'm happily getting work done in containers on Silverblue right this very moment thanks to toolbox (and podman and crun). Hopefully it all works again for you too after an
rpm-ostree update(and reboot)?stephanmol commentedon Nov 20, 2019
Should the override stay in place after running
rpm-ostree upgradeI had to perform manuallyrpm-ostree override reset crunwhich made it used the latest version of crun which fixes the issue (yay!)debarshiray commentedon Nov 20, 2019
Thanks for sorting this out, @giuseppe !
aaronuurman commentedon Nov 21, 2019
It seems override stays in place after rpm-ostree upgrade, probably that's why I did a new override.
Thank you for pointing it out 👍
garrett commentedon Nov 21, 2019
FWIW, I did an
rpm-ostree override reset -aand rebooted just to be sure I didn't have any overrides. (Specifying just crun or crun-0.10.6 didn't work. But resetting all did.)The crun override wasn't showing, but I wanted to make sure it wasn't transparently there because it was the same version as what now ships in Silverblue. (I don't want to have some surprise in the future. 😉)
Set up /media to match the host
[-]failed to start container fedora-toolbox-31[/-][+]Set up /media and /mnt to match the host[/+]debarshiray commentedon Nov 21, 2019
Let me re-purpose this issue to improve our handling of
/mntand/mediato make things a bit more robust in the immediate short-term. We already do the same for/home.Set up /media to match the host