-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Opening logs from a container causes continous error messages in syslog (superfluous response.WriteHeader call) #11251
Comments
What is your logging configuration for Docker itself? Are you using the default logging driver or have you made adjustments to the default config? |
I've been able to reproduce this here and am opening an internal issue - as an interim measure if you disable auto-refresh when viewing the logs it should stop it spamming syslog.
|
On further investigation this appears to be a result of Docker 25.0.0 introducing OpenTelemetry. At present we don't fully support Docker 25.x which is why this is appearing now, but we've logged this internally in any case. Edit: On even further investigation, this same syslog entry occurs when simply using |
Thanks James, much appreciate the quick and detailed analysis! |
This issue has been marked as stale as it has not had recent activity, it will be closed if no further activity occurs in the next 7 days. If you believe that it has been incorrectly labelled as stale, leave a comment and the label will be removed. |
It looks like a fix for this has been merged upstream at Docker, tagged for Docker 27. moby/moby#47796 |
With any luck we'll see it in 26.1.4 shortly: moby/moby#47843 |
Before you start please confirm the following.
Problem Description
As soon as I use the UI to navigate to the logs of a container (tried it e.g. with Watchtower), /var/log/syslog is filled with
Feb 24 08:16:04 server dockerd[2663]: 2024/02/24 08:16:04 http: superfluous response.WriteHeader call from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.(*respWriterWrapper).WriteHeader (wrap.go:98) Feb 24 08:16:07 server dockerd[2663]: 2024/02/24 08:16:07 http: superfluous response.WriteHeader call from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.(*respWriterWrapper).WriteHeader (wrap.go:98)
This stops as soon the log window is closed.
Expected Behavior
No error messages in syslog
Actual Behavior
See above.
Steps to Reproduce
Portainer logs or screenshots
No response
Portainer version
2.19.4
Portainer Edition
Community Edition (CE)
Platform and Version
Docker 25.0.3
OS and Architecture
Debian 12.5
Browser
Firefox 122.0.1
What command did you use to deploy Portainer?
Additional Information
No response
The text was updated successfully, but these errors were encountered: