habitat icon indicating copy to clipboard operation
habitat copied to clipboard

unknown protocol icmp

Open johnjelinek opened this issue 7 years ago • 9 comments

/etc/protocols is missing in the studio:

# hab pkg exec core/inetutils ping -c3 localhost
ping: unknown protocol icmp.

create /etc/protocols:

ip      0       IP              # internet protocol, pseudo protocol number
icmp    1       ICMP            # internet control message protocol
igmp    2       IGMP            # Internet Group Management
# hab pkg exec core/inetutils ping -c3 localhost
PING localhost.containerstore.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.081 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.088 ms
^C--- localhost.containerstore.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.081/0.084/0.088/0.000 ms

johnjelinek avatar Jul 18 '17 21:07 johnjelinek

@adamhjk: ☝️ from our conversation yesterday.

johnjelinek avatar Jul 19 '17 17:07 johnjelinek

If you look in $(hab pkg path core/glibc)/include/netdb.h, you'll see:

#define _PATH_PROTOCOLS        "/etc/protocols"
#define _PATH_SERVICES         "/etc/services"

The correct thing might be to have core/glibc have a dependency on core/iana-etc and patch these to point to $(pkg_path_for iana-etc)/etc/protocols, etc.

smith avatar Jul 24 '17 04:07 smith

@smith I think that's the right approach

reset avatar Jul 25 '17 00:07 reset

I've implemented what @smith wrote in habitat-sh/core-plans#929

rsertelon avatar Nov 05 '17 17:11 rsertelon

:+1: on @smith’s approach.

bdangit avatar Nov 07 '17 04:11 bdangit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Apr 03 '20 07:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Sep 20 '22 20:09 stale[bot]

If not done yet, it still deserves some attention IMHO. Also, the fix could be added before a refresh.

rsertelon avatar Sep 24 '22 17:09 rsertelon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Oct 15 '23 15:10 stale[bot]