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

Upgrade python, consul-template, uWSGI #451

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Upgrade python, consul-template, uWSGI #451

merged 1 commit into from
Nov 28, 2023

Conversation

amCap1712
Copy link
Member

We fixed the bind(): Address already in use [core/socket.c line 769] error using exit-on-reload = true in uWSGI configuration. However, this prevents graceful reloading.

I did some further investigation as noted in metabrainz/artwork-redirect#46 and have a better fix in mind now.

For the command field in exec block of consul template configuration, use array format. This executes the command directly without spawning a shell wrapper or setting a process group id. Both of which will interfere with forwarding signals to the uWSGI process.

This also needs a newer version of consul-template. So upgrading to a newer base image.

We fixed the `bind(): Address already in use [core/socket.c line 769]` error using
`exit-on-reload = true` in uWSGI configuration. However, this prevents graceful
reloading.

I did some further investigation as noted in metabrainz/artwork-redirect#46 and have
a better fix in mind now.

For the command field in exec block of consul template configuration, use array
format. This executes the command directly without spawning a shell wrapper or
setting a process group id. Both of which will interfere with forwarding signals
to the uWSGI process.

This also needs a newer version of consul-template. So upgrading to a newer
base image.
Copy link

Test Results

67 tests  ±0   67 ✔️ ±0   8s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit 4aec2f6. ± Comparison against base commit be816d4.

@amCap1712 amCap1712 merged commit 2f716da into master Nov 28, 2023
2 checks passed
@amCap1712 amCap1712 deleted the upgrades branch November 28, 2023 05:44
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

Successfully merging this pull request may close these issues.

1 participant