-
Notifications
You must be signed in to change notification settings - Fork 400
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] bunkerweb container health status is not accurate when using autoconf #1826
Comments
Adding the healthcheck to
autoconf logs
Maybe this is an issue with |
Here is the final docker compose file that also includes the
|
Hi, happy to see that you found a solution, indeed it looks like this is a podman specific issue. 😄 |
What happened?
Using the config from the Docker autoconf docker-compose configuration from the documentation, the autoconf container never starts because the main bunkerweb container is not healthy
Keep in mind that I am using rootless podman, and havent tried this with docker. I am unsure if this is podman-specific and hope someone here can help reproduce
Here are the logs from the autoconf container. This repeats infinitely
Here is the line of code that produces the above error message: Controller.py
And here is the line that seems to be responsible for telling the autoconf container about bunkerweb's health status: DockerController.py
The problem is that this line is resolving to false because the value of
State.Health.Status
inpodman inspect <bunkerweb container>
is an empty string. That line checks ifState.Running == true
andState.Health.Status == "healthy"
Here is my bunkweb container info
I am trying to figure out if this is a problem with bunkerweb, or podman, or just my config. I did try manually running the healthcheck script of bunkerweb and it seems to be okay --- just the status is not actually being updated on the container, even though the Dockerfile has this healthcheck line
Here's how I manually ran the healthcheck
first made sure that podman will actually report back the correct exit code
then checked the code of the healthcheck
The next thing I am going to try is to run the healthcheck from docker-compose instead the one defined on the image. Maybe healthchecks in images dont run if you use docker-compose? Not sure, im looking into it. Will someone try this with Docker just to rule out this being a podman issue?
How to reproduce?
Use the docker-compose yaml from the documentation and rootless Podman
https://docs.bunkerweb.io/latest/integrations/#docker-autoconf
Configuration file(s) (yaml or .env)
Relevant log output
BunkerWeb version
1.5.12
What integration are you using?
Autoconf
Linux distribution (if applicable)
No response
Removed private data
Code of Conduct
The text was updated successfully, but these errors were encountered: