-
Notifications
You must be signed in to change notification settings - Fork 220
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
toolbox failing when there is a container running on another terminal with different $HOME #467
Comments
Hi @yilkalargaw! I have a suspicion that this is a problem of Podman and not of Toolbox. I'll try to investigate a bit later on. |
I saw this issue and I tried to reproduce it. I kinda did. Here are my
The OS is Steps to reproduce the error:
NOTE: I pressed
But it can in another terminal:
Nothing happend... so I run with verbose the
Final thoughts:
Right now I can't use (or remove) the tested containers 😞, but I can create new ones and use them. I hope this give you more info about the issue and sorry for all the verboseness. |
Also, I don't know if it's a separated bug, but it's weird that when I tried the container (after all the |
One more thing. I've just rebooted the system and all the toolbox's containers work fine. |
@juanje you are right. I had the same problems regarding not being able to access my other containers from a fresh terminal with a proper home. To solve the issue without rebooting you have to kill every process associated with podman and then kill every process that is related to fuse overlays. After that restarting containers in a clean terminal will solve the issue. That is why I suggested fuse-overlays may be part of the issue. |
@yilkalargaw Thanks for the tip! 😄 |
I figured out a new thing about this issue. And I thought I might add it because it might help in the debugging. the following works perfectly mkdir tmp1 && cd tmp1 && HOME=$PWD
podman pull ubuntu && podman run -it --entrypoint /bin/bash docker.io/library/ubuntu
# do something
exit
cd .. && mkdir tmp2 && cd tmp2 && HOME=$PWD
podman pull ubuntu && podman run -it --entrypoint /bin/bash docker.io/library/ubuntu
Even after switching back and forth between the two directories access of the two containers work perfectly. But if you open a clean new terminal and try to start your toolbox containers they fail to start. This indicates it might not be a problem with podman or may be volume sharing might be the problem. I have not tried a simple volume sharing though and I might try it in the future. |
Yep it is a volume sharing issue. I wonder if it is a fuse or toolbox issue. |
This seems a like a duplicate of #183 I remember @yilkalargaw had come up with the idea of redefining $HOME in one of the duplicates of #183 While it's a neat hack, it's just that - a hack. Changing |
Duplicate of #183 |
Relates to issues containers#183, containers#348, containers#467 Added optional boxhome argument to create command. Boxhome is concatenated with homedir in order to be under host's home dir. Homedir is still mounted. No worries. Being under host's home enables easy file sharing, and prevents privilage issues. When boxhome argument is not given, system works as before (uses user's home dir)
Relates to issues containers#183, containers#348, containers#467 Added optional boxhome argument to create command. Boxhome is concatenated with homedir in order to be under host's home dir. Homedir is still mounted. No worries. Being under host's home enables easy file sharing, and prevents privilage issues. When boxhome argument is not given, system works as before (uses user's home dir)
Merge branch 'boxhome' of github.com:onuruluag/toolbox into boxhome Added optional boxhome argument to create command. Boxhome is concatenated with homedir in order to be under host's home dir. Homedir is still mounted. No worries. Being under host's home enables easy file sharing, and prevents privilage issues. When boxhome argument is not given, system works as before (uses user's home dir):
Relates to issues containers#348, containers#467 Added optional boxhome argument to create command. Boxhome is concatenated with homedir in order to be under host's home dir. Homedir is still mounted. No worries. Being under host's home enables easy file sharing, and prevents privilage issues. When boxhome argument is not given, system works as before (uses user's home dir)
Relates to issues containers#348, containers#467 Added optional boxhome argument to create command. Boxhome is concatenated with homedir in order to be under host's home dir. Homedir is still mounted. No worries. Being under host's home enables easy file sharing, and prevents privilage issues. When boxhome argument is not given, system works as before (uses user's home dir)
I sometimes run toolbox in a specific directory to try out things without touching the home directory. To do this I usually change $HOME. When ever I do this and try to open my old toolboxes in another terminal window, toolbox fails with
toolbox: failed to create /run/.toolboxenv in container dnfy-fedora
.I think it might have something todo with fuse-overlays because restarting the containers would not help.
How to recreate
The text was updated successfully, but these errors were encountered: