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

No error when the process cannot bind to the HTTP/S port #3456

Open
markormesher opened this issue Jan 13, 2024 · 0 comments
Open

No error when the process cannot bind to the HTTP/S port #3456

markormesher opened this issue Jan 13, 2024 · 0 comments

Comments

@markormesher
Copy link

I recently ran into an issue when running the Drone server as a non-root user in Kubernetes. It was failing to bind to port 80 because it didn't have the required permissions (context). This isn't a problem, you just need to run on a different port or add the necessary capabilities; the issue is that no message is printed when this edge case is hit -- the process just appears to freeze while it waits indefinitely.

It's only when the process exits after being killed that the following error message is printed:

listen tcp :80: bind: permission denied

I totally accept this is a pretty niche edge case, but if the port bind had some timeout period, after which is gave up, it could save other users some frustrating debugging in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant