elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
109 stars 4.93k forks source link

[Heartbeat] Rootless ping doesn't work on OSX #20007

Open andrewvc opened 4 years ago

andrewvc commented 4 years ago

We have a report from @josephPresseller that rootless ping on OSX doesn't work. It appears to produce documents with errors like:

"error": {
  "type": "io",
  "message": "write udp 0.0.0.0:0->172.217.8.174: invalid argument"
 },

which indicate that we're trying a rootless ping but don't have perms. Running as root fixes this, but we can do better on OSX, and should instead fail to start, giving a permissions error.

elasticmachine commented 4 years ago

Pinging @elastic/uptime (Team:Uptime)

bitnapper commented 3 years ago

This issue seems still unresolved. Is there a workaround?

andrewvc commented 3 years ago

Unfortunately it's still not our highest priority issue. One workaround would be using the docker image instead of plain heartbeat for now.

gkuba commented 9 months ago

Your workaround with the elastic search complete agent version 8.11.1 and 8.12 have the same results. Running this docker container in an Kubernetes cluster on Openshift

image

joshjanoski commented 3 months ago

Just ran into this issue when configuring Heartbeat with a ping monitor on OSX. Looks to still be an issue.

afshineffati commented 2 months ago

This is to report that issue is still standing:

could not write to conn: write udp 0.0.0.0:8->*.*.*.*: invalid argument