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

Gunicorn throws error upon handling SIGINT #7204

Open
PKizzle opened this issue Oct 17, 2023 · 5 comments
Open

Gunicorn throws error upon handling SIGINT #7204

PKizzle opened this issue Oct 17, 2023 · 5 comments
Labels
bug/confirmed Confirmed bugs bug Something isn't working

Comments

@PKizzle
Copy link
Contributor

PKizzle commented Oct 17, 2023

Describe the bug
When sending a SIGINT to the authentik server gunicorn throws an error.

To Reproduce
Steps to reproduce the behavior:

  1. Start a shell inside an authentik Docker image
  2. Run dumb-init -- /lifecycle/ak server and wait for the startup to finish successfully
  3. Send a SIGINT to the process i.e. by using the keyboard (CTRL+c)
  4. See error

Expected behavior
The process should exit without throwing an error.

Logs

{"event": "Handling signal: int", "level": "info", "logger": "gunicorn.error", "timestamp": 1697581130.2154722}
{"event": "Error while closing socket [Errno 9] Bad file descriptor", "level": "info", "logger": "gunicorn.error", "timestamp": 1697581130.2611558}
{"event": "Error while closing socket [Errno 9] Bad file descriptor", "level": "info", "logger": "gunicorn.error", "timestamp": 1697581130.261223}
{"event": "Worker exiting (pid: 39)", "level": "info", "logger": "gunicorn.error", "timestamp": 1697581130.3631873}
{"event": "Worker exiting (pid: 38)", "level": "info", "logger": "gunicorn.error", "timestamp": 1697581130.3642566}
{"event": "Shutting down: Master", "level": "info", "logger": "gunicorn.error", "timestamp": 1697581130.9277878}

Version and Deployment (please complete the following information):

  • authentik version: 2023.8.3
  • Deployment: helm

Additional context
This might be related to benoitc/gunicorn#1877 however this issue should have already been fixed in the version that authentik is currently using.

@PKizzle PKizzle added the bug Something isn't working label Oct 17, 2023
@PKizzle
Copy link
Contributor Author

PKizzle commented Dec 3, 2023

The issue seems to persist even in recent versions: benoitc/gunicorn#3013

@authentik-automation
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@PKizzle
Copy link
Contributor Author

PKizzle commented Feb 5, 2024

There is now a draft PR for the aforementioned issue in the gunicorn repo: https://github.com/benoitc/gunicorn/pull/3127/files

PKizzle added a commit to PKizzle/authentik that referenced this issue Feb 10, 2024
@authentik-automation
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@PKizzle
Copy link
Contributor Author

PKizzle commented Apr 8, 2024

Still waiting for PR to leave draft status...

@BeryJu BeryJu added bug/confirmed Confirmed bugs and removed wontfix labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed Confirmed bugs bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants