Graylog2 / collector-sidecar

Manage log collectors through Graylog
https://www.graylog.org/
Other
268 stars 56 forks source link

Regular EOL errors for UpdateRegistration #398

Open ni-cwinkelmann opened 4 years ago

ni-cwinkelmann commented 4 years ago

Problem description

Hello,

we're running Graylog in a kubernetes environment and on all of our collector sidecars are raising the following error "randomly" for the UpdateRegistration event:

Aug 27 18:24:36 some-host graylog-sidecar[5995]: time="2020-08-27T18:24:36+02:00" level=error msg="[UpdateRegistration] Failed to report collector status to server: Put https://log.example.org/api/sidecars/some-host.example.org: EOF"

The problem does not occur every time the sidecar tries to update the registration. I also tried to debug the issue myself within the sources but I hit my limits. From what I've seen in the graylog.go file there is an exception for io.EOL errors but the error being returned is an *url.Error type.

As these error messages will be written into the syslog almost every second every help would be appreciated.

Kind Regards, Christopher

Steps to reproduce the problem

Unfortunately not sure how.

Environment

theherodied commented 3 years ago

Seeing the same thing. https://community.graylog.org/t/failed-to-report-collector-status-to-server/19301/2

Not seeing the issue on Windows Client. Only on Linux.

theherodied commented 3 years ago

Same issue reported here https://community.graylog.org/t/failed-to-report-collector-status-to-server-on-sidecar-side/14533