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

SO_REUSEPORT for smooth restart #4085

Open
doc-sheet opened this issue Sep 29, 2024 · 2 comments
Open

SO_REUSEPORT for smooth restart #4085

doc-sheet opened this issue Sep 29, 2024 · 2 comments
Assignees

Comments

@doc-sheet
Copy link

Hi! For a long time relay can't be restarted normally at least on upgrade.

2024-09-29T10:59:28.950928Z  INFO relay_system::controller: SIGTERM received, stopping in 8s
2024-09-29T10:59:28.950996Z  INFO relay_server::services::outcome_aggregator: outcome aggregator stopped
2024-09-29T10:59:28.957884Z  INFO relay_server::services::server: Shutting down HTTP server
2024-09-29T10:59:37.235282Z  INFO relay_server: relay shutdown complete
2024-09-29T10:59:41.930891Z  INFO relay::setup: launching relay from config folder /etc/relay

<...>

2024-09-29T10:59:41.955944Z ERROR relay_server::services::health_check: Health check probe 'auth' failed
2024-09-29T10:59:42.056752Z ERROR relay_log::utils: error=bind to interface failed error.sources=[Address already in use (os error 98)]

Relay version 24.9.0 from self-hosted image.

Could you add SO_REUSEPORT flag to socket?

https://docs.rs/tokio/latest/tokio/net/struct.TcpSocket.html#method.set_reuseport

@jjbayer
Copy link
Member

jjbayer commented Sep 30, 2024

@jjbayer
Copy link
Member

jjbayer commented Sep 30, 2024

@Litarnus Litarnus self-assigned this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

4 participants