Closed sintesfabien closed 6 months ago
Note we only support the latest versions upstream, so my first suggestion try with the latest podman and netavark version.
And for you strace you need to add -f
othwerwise it will not follow the child threads/processes.
Is iptables even in $PATH? The fact the your run it as /usr/sbin/iptables
makes me suspicious.
Hello. I can see the error with strace -f :
[pid 30210] execve("/usr/local/bin/iptables", ["iptables", "--version"], 0x7ffca5e95318 /* 25 vars */) = -1 ENOENT (Aucun fichier ou dossier de ce type)
[pid 30210] execve("/usr/bin/iptables", ["iptables", "--version"], 0x7ffca5e95318 /* 25 vars */) = -1 ENOENT (Aucun fichier ou dossier de ce type)
[pid 30210] execve("/bin/iptables", ["iptables", "--version"], 0x7ffca5e95318 /* 25 vars */) = -1 ENOENT (Aucun fichier ou dossier de ce type)
[pid 30210] execve("/usr/local/games/iptables", ["iptables", "--version"], 0x7ffca5e95318 /* 25 vars */) = -1 ENOENT (Aucun fichier ou dossier de ce type)
[pid 30210] execve("/usr/games/iptables", ["iptables", "--version"], 0x7ffca5e95318 /* 25 vars */) = -1 ENOENT (Aucun fichier ou dossier de ce type)
It was a path problem : /usr/sbin is not in $PATH.
So you are totally reason. Thank you very much.
My debian version is up to date (12.5) and I can't upgrade podman to v5 with debian repository. Is there a repository I can add to my sources list for automatic upgrade ? (or I have to download package and install manually).
Witch is the best way to update path without update system path ? Can I add an option to the container to specify a new PATH ?
Thank you again.
No you would need to make sure $PATH is set correctly. I have no idea /usr/sbin would not be added by default, this looks like a configuration issue on your end.
We do not maintain any repos ourself for newer versions on debian based distros.
Thank you. With debian, system bins are not in PATH for no root users (only /usr/bin of course). And for root, we have to exec "su -" (not only "su" to have root bash executed). Perhaps, you should consider iptables is not necessarely included because podman is not designed only for admins ?
Issue Description
Hello, I'm unable to run many podman containers like : nginx, redis or hello-word ! I have always the same error netavark error.
Steps to reproduce the issue
Steps to reproduce the issue : podman run --name nginx -p 8080:80 docker.io/nginx
Describe the results you received
Error: netavark: No such file or directory (os error 2)
Describe the results you expected
I would like the container starts.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
I have found other problems like this one. It seems it is a iptables dependency problem. But iptables is installed :
Additional information
strace podman start nginx : [...]