cgwalters / coretoolbox

"pet container" tool using podman
Apache License 2.0
24 stars 6 forks source link

error: Initializing container: Opening statefile: No such file or directory (os error 2) #2

Closed juhp closed 5 years ago

juhp commented 5 years ago

I wanted to try out and play with this, thanks (on Silverblue 30). But I am having trouble getting started (first I wondered if I should be in coreos:).

$ ~/src/coretoolbox/target/debug/coretoolbox 
7d213f319465efcab406355e0d2be6d6be6a0241bba92c7cd0aadb17ccecc22d
error: Initializing container: Opening statefile: No such file or directory (os error 2)
Error: exit status 1
$ ~/src/coretoolbox/target/debug/coretoolbox exec
error: Not inside a container
$ toolbox
[f30container] $ ~/src/coretoolbox/target/debug/coretoolbox -N
error: No such file or directory (os error 2)
[f30container] $ ~/src/coretoolbox/target/debug/coretoolbox -N exec
error: Initializing container: Permission denied (os error 13)

So I am not sure if I am hitting some issue or missing something. :-) I think it is still early days, but maybe you want to add a few more clues to the README or help. (Maybe I need the container tools in my toolbox?)

Okay some container output:

$ podman ps | grep coreos
7d213f319465  registry.fedoraproject.org/f30/fedora-toolbox:30  sleep infinity  10 minutes ago  Up 10 minutes ago         coreos-toolbox

If I try to run the coreos-toolbox container by hand it just seems to hang for me.

juhp commented 5 years ago

(Actually I also remembered when I first tried it I got an error about binding mounting /host/home.)

edit: reported in #3. (edit2 likely this bug is caused by that)

juhp commented 5 years ago

With latest HEAD (5ca268c) I still get:

$ ~/src/coretoolbox/target/debug/coretoolbox run
error: Initializing container: Opening statefile: No such file or directory (os error 2)
Error: exit status 1
juhp commented 5 years ago
$ ./target/debug/coretoolbox rm
$ ./target/debug/coretoolbox run
mount: /home/petersen: wrong fs type, bad option, bad superblock on /host/var/home/petersen, missing codepage or helper program, or other error.
error: Initializing container: Child ["mount" "--bind" "/host/home/petersen" "/home/petersen"] exited: exit code: 32
Error: exit status 1
$ ./target/debug/coretoolbox run
error: Initializing container: Opening statefile: No such file or directory (os error 2)
Error: exit status 1
juhp commented 5 years ago

I think this is just a side-effect of #3 so closing this out.