Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filebeat: Error watching for docker events: context deadline exceeded #15096

Closed
ChrsMark opened this issue Dec 13, 2019 · 2 comments · Fixed by #15336
Closed

Filebeat: Error watching for docker events: context deadline exceeded #15096

ChrsMark opened this issue Dec 13, 2019 · 2 comments · Fixed by #15336
Labels
bug good first issue Indicates a good issue for first-time contributors

Comments

@ChrsMark
Copy link
Member

The following error has been reported:

{
  "stream": "stderr",
  "caller": "docker/watcher.go:303",
  "level": "error",
  "message": "Error watching for docker events: context deadline exceeded"
}

Since this is something that comes from

ctx, cancel := context.WithTimeout(w.ctx, dockerWatchRequestTimeout)
and most probably because Docker API takes to long to respond for events at the point of reaching timeout, we should consider of handling this "error" explicitly at
logp.Err("Error watching for docker events: %v", err)
and log a friendlier message.

This will avoid creating confusion.

discuss: https://discuss.elastic.co/t/filebeat-error-watching-for-docker-events-context-deadline-exceeded/211113

@ChrsMark ChrsMark added bug good first issue Indicates a good issue for first-time contributors labels Dec 13, 2019
@mattschoch
Copy link

Just updated to filebeat 7.5.0 and now I'm getting this error every hour, I wasn't getting it before on 7.2.0. Is there a known workaround, or any idea why this is seeming to happen now when it wasn't previously?

@jacobmw
Copy link

jacobmw commented Dec 24, 2019

I am on filebeat 7.5.1 and get this message four times, at the same time, every hour. Seems to be at the same minute as when I started the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Indicates a good issue for first-time contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants