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

Unhealthy container status due to missing healthcheck #229

Closed
rhee876527 opened this issue May 8, 2020 · 7 comments
Closed

Unhealthy container status due to missing healthcheck #229

rhee876527 opened this issue May 8, 2020 · 7 comments

Comments

@rhee876527
Copy link

Please add healthcheck script on startup. Even though effect is mostly cosmetic and container still runs without issues. Unhealthy status on docker dashboards sounds unnecessary alarm & is rather an eye-sore.

@aptalca
Copy link
Member

aptalca commented May 8, 2020

We have no plans for it.

See here on how to customize your container: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

@aptalca aptalca closed this as completed May 8, 2020
@rhee876527
Copy link
Author

Container modification is not a feasible alternative. The problem is with the setup.

Plex in the container (for some reason) starts up with healthcheck command. Not anyone's fault really. But the same issued health check looks for a healthcheck.sh script that should be located on the root path. But missing on a fresh start on the container.

This is the inconsistency that am pointing out here. And I do not think any container mods are required for the missing healthcheck.sh file.

@tobbenb
Copy link
Member

tobbenb commented May 18, 2020

As aptalca said, we don't have any plans to add it. We don't add health check in our containers.

@aptalca
Copy link
Member

aptalca commented May 18, 2020

I don't know what you mean by Plex in the container (for some reason) starts up with healthcheck command

You need to provide more context. What docker dashboard are you referring to? Errors where?

You can customize all aspects of the containers with the link I provided

@rhee876527
Copy link
Author

rhee876527 commented May 19, 2020

I don't know what you mean by Plex in the container (for some reason) starts up with healthcheck command

You need to provide more context. What docker dashboard are you referring to? Errors where?

You can customize all aspects of the containers with the link I provided

Screenshot_2020-05-19-14-19-19-962_com android chrome

Dashboard in reference is portainer.

More logs;

~ >>> docker inspect --format '{{json .State.Health }}' plex {"Status":"unhealthy","FailingStreak":72,"Log":[{"Start":"2020-05-19T14:24:27.269401975+03:00","End":"2020-05-19T14:24:27.785109883+03:00","ExitCode":1,"Output":"/bin/sh: 1: /healthcheck.sh: not found\n"},{"Start":"2020-05-19T14:24:32.812129971+03:00","End":"2020-05-19T14:24:33.325696413+03:00","ExitCode":1,"Output":"/bin/sh: 1: /healthcheck.sh: not found\n"},{"Start":"2020-05-19T14:24:38.351344477+03:00","End":"2020-05-19T14:24:38.867421788+03:00","ExitCode":1,"Output":"/bin/sh: 1: /healthcheck.sh: not found\n"},{"Start":"2020-05-19T14:24:43.893709593+03:00","End":"2020-05-19T14:24:44.395691641+03:00","ExitCode":1,"Output":"/bin/sh: 1: /healthcheck.sh: not found\n"},{"Start":"2020-05-19T14:24:49.420673934+03:00","End":"2020-05-19T14:24:49.928023724+03:00","ExitCode":1,"Output":"/bin/sh: 1: /healthcheck.sh: not found\n"}]}

@rhee876527
Copy link
Author

Further reference

docker-library/cassandra#76 (comment)

@NetVN
Copy link

NetVN commented Dec 27, 2022

add your compose.yaml

healthcheck: test: curl --connect-timeout 15 --silent --show-error --fail http://localhost:32400/identity interval: 1m00s timeout: 15s retries: 3 start_period: 1m00s

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

4 participants