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
I have the same issue on an f30 host, running an f31 toolbox. The flatpak-spawn --host ping ... workaround works for me. But ping is not the only command affected. There is also some issue with DNS resolution:
flatpak-spawn --host bash seems to solve the problem, but there is no ⬢ in front of the prompt. (I assume it's impossible for anything to break out of the container, so this is just a nested bash instance.)
⬢[luke@toolbox ~]$ flatpak-spawn --host bash
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[luke@localhost ~]$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=45 time=34.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=45 time=33.9 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 33.911/33.965/34.020/0.192 ms
[luke@localhost ~]$ exit
⬢[luke@toolbox ~]$
The first time I exited out of the nested bash instance, the host kernel locked up hard, but I don't know if this has anything to do with podman, or if it was just a freak occurrence.
This might be unrelated. What does /etc/resolv.conf look like inside your toolbox container?
flatpak-spawn --host bash seems to solve the problem, but there is no ⬢ in front of the
prompt. (I assume it's impossible for anything to break out of the container, so this is just a
nested bash instance.)
flatpak-spawn is how you break out of the container. :)
The first time I exited out of the nested bash instance, the host kernel locked up hard, but
I don't know if this has anything to do with podman, or if it was just a freak occurrence.
My first instinct is that it was just a coincidence. However if you can reliably reproduce it, then it might be worth looking into.
This might be unrelated. What does /etc/resolv.conf look like inside your toolbox container?
I just tried this in a freshly created toolbox (which also does not have working DNS), f30 on an f30 host:
$ toolbox enter
⬢[luke@toolbox ~]$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
⬢[luke@toolbox ~]$ logout
[luke@localhost ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
flatpak-spawn is how you break out of the container. :)
Ah, thanks for explaining! I read the man page now.
My first instinct is that it was just a coincidence. However if you can reliably reproduce it, then it might be worth looking into.
I haven't seen the hard lockup more than once.
Separately, are the following warnings expected? TTY control sequences are broken in the spawned bash. (Sorry for the slightly off topic question...)
⬢[luke@toolbox ~]$ flatpak-spawn --host bash
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
I just tried this in a freshly created toolbox (which also does not have working DNS),
f30 on an f30 host:
$ toolbox enter
⬢[luke@toolbox ~]$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
⬢[luke@toolbox ~]$ logout
[luke@localhost ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
I think the lack of DNS is the real problem here. However, I am not sure how that came to be.
Is /etc/resolv.conf symbolic link on the host? What version of Toolbox are you using?
Separately, are the following warnings expected? TTY control sequences are broken in the
spawned bash. (Sorry for the slightly off topic question...)
Yes, the warnings are expected. They are caused by the absence of a controlling TTY device for the shell. The controlling TTY device is propagated from parent to child processes, but in this case, flatpak-spawn operates over D-Bus, which is a client-server model. Hence the new shell is not a child of the previous one, which means it doesn't get the controlling TTY device.
Activity
ibotty commentedon Jul 19, 2019
This can be allowed with the sysctl
net.ipv4.ping_group_range. If you set it to e.g.0 2000000, it will work.debarshiray commentedon Jul 22, 2019
Yes, this is a known shortcoming of rootless Podman. podman-container-tools/podman#1550 has some discussion on the topic specifically for Toolbox.
debarshiray commentedon Jul 22, 2019
One immediate workaround is to use
flatpak-spawn --host ping ...debarshiray commentedon Jul 22, 2019
I filed systemd/systemd#13141 to get
net.ipv4.ping_group_rangeenabled by default.debarshiray commentedon Jul 24, 2019
This should now start working once systemd 243 gets released and is picked up by distributors.
In the meantime, you can put the following in a file in
/etc/sysctl.dand reboot:[-]ping does not work inside the container[/-][+]ping(8) does not work[/+]lukehutch commentedon Nov 24, 2019
I have the same issue on an f30 host, running an f31 toolbox. The
flatpak-spawn --host ping ...workaround works for me. Butpingis not the only command affected. There is also some issue with DNS resolution:flatpak-spawn --host bashseems to solve the problem, but there is no⬢in front of the prompt. (I assume it's impossible for anything to break out of the container, so this is just a nested bash instance.)The first time I exited out of the nested bash instance, the host kernel locked up hard, but I don't know if this has anything to do with podman, or if it was just a freak occurrence.
debarshiray commentedon Nov 25, 2019
This might be unrelated. What does
/etc/resolv.conflook like inside your toolbox container?flatpak-spawnis how you break out of the container. :)My first instinct is that it was just a coincidence. However if you can reliably reproduce it, then it might be worth looking into.
lukehutch commentedon Nov 25, 2019
I just tried this in a freshly created toolbox (which also does not have working DNS), f30 on an f30 host:
Ah, thanks for explaining! I read the man page now.
I haven't seen the hard lockup more than once.
Separately, are the following warnings expected? TTY control sequences are broken in the spawned bash. (Sorry for the slightly off topic question...)
debarshiray commentedon Nov 26, 2019
I think the lack of DNS is the real problem here. However, I am not sure how that came to be.
Is
/etc/resolv.confsymbolic link on the host? What version of Toolbox are you using?Yes, the warnings are expected. They are caused by the absence of a controlling TTY device for the shell. The controlling TTY device is propagated from parent to child processes, but in this case,
flatpak-spawnoperates over D-Bus, which is a client-server model. Hence the new shell is not a child of the previous one, which means it doesn't get the controlling TTY device.lukehutch commentedon Nov 26, 2019
toolbox-0.0.16-1.fc30.noarch
I just discovered that
/etc/resolv.confis a broken link:debarshiray commentedon Nov 26, 2019
That's due to #187 and https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/269
sudo rm /etc/resolv.confon the host, followed by an immediate reboot should sort out the NetworkManager mix-up.Anyway, it's not related to this issue, but thanks for stopping by. :)