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

[🐛 BUG]: http: superfluous response.WriteHeader #1544

Closed
1 task done
mfadul24 opened this issue Apr 19, 2023 · 2 comments · Fixed by roadrunner-server/status#48
Closed
1 task done

[🐛 BUG]: http: superfluous response.WriteHeader #1544

mfadul24 opened this issue Apr 19, 2023 · 2 comments · Fixed by roadrunner-server/status#48
Assignees
Labels
B-bug Bug: bug, exception
Milestone

Comments

@mfadul24
Copy link

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

The ready and status endpoint are flooding the logs on the Kubernetes Cluster with entries like:

http: superfluous response.WriteHeader call from github.com/roadrunner-server/status/v4.(*Health).ServeHTTP (health.go:72)

http: superfluous response.WriteHeader call from github.com/roadrunner-server/status/v4.(*Health).ServeHTTP (ready.go:77)

Version (rr --version)

2023.1.0

How to reproduce the issue?

Activate status endopoint:

status:
  address: '0.0.0.0:2114'

and use it on kubernetes:

          livenessProbe:
            httpGet:
              path: /health?plugin=http
              port: php-status
            initialDelaySeconds: 10
            periodSeconds: 5

Relevant log output

: superfluous response.WriteHeader call from github.com/roadrunner-server/status/v4.(*Health).ServeHTTP (health.go:72)

```http: superfluous response.WriteHeader call from github.com/roadrunner-server/status/v4.(*Health).ServeHTTP (ready.go:77)```
@mfadul24 mfadul24 added B-bug Bug: bug, exception F-need-verification labels Apr 19, 2023
@github-project-automation github-project-automation bot moved this to Backlog in General Apr 19, 2023
@rustatian rustatian added this to the v2023.1.1 milestone Apr 19, 2023
@rustatian rustatian moved this from Backlog to In Progress in General Apr 19, 2023
@joaopbnogueira
Copy link

Just a heads up that we're facing the same issue after the update (today) to 2023.01 also in K8s

  livenessProbe:
    httpGet:
      path: /health?plugin=http
      port: 2114

@rustatian
Copy link
Member

rustatian commented Apr 19, 2023

Got u guys, this is because Go does not allow to write twice to the Write or Headers methods. I'll fix this and release a bugfix this Thursday, as we normally do. Thanks for contribution ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: bug, exception
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants