I've 2 instances of graylog, one with version 3.1.4-1 and second with 4.0.5-1. Both are installed as docker container and have the same problem. I'm using HTTPS protocol, with certificate signed with our company CA. Certificates are imported to JKS.
Graylog web and api works, but docker shows unhealthy status.
Those line are executed (tested by echo inside loops):
if [[ -z "${check_url}" ]]
then
echo "Not possible to get Graylog listen URI - abort"
exit 1
fi
if curl --silent --fail "${check_url}"/api
then
exit 0
fi
from
if curl --silent --fail "${check_url}"/api
to:
if curl --fail "${check_url}"/api
I got this error:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
But as --silent options is there, error is not present, and container is unhealty. Changing this:
from
if curl --silent --fail "${check_url}"/api
to:
if curl --silent --insecure --fail "${check_url}"/api
and executing this script give me output, and container changed status to healthy.
Hi,
I've 2 instances of graylog, one with version 3.1.4-1 and second with 4.0.5-1. Both are installed as docker container and have the same problem. I'm using HTTPS protocol, with certificate signed with our company CA. Certificates are imported to JKS. Graylog web and api works, but docker shows unhealthy status.
In my opinion problem is with this case in health_check.sh. Output from this command executed inside container is empty:
Those line are executed (tested by echo inside loops):
my check_url is: https://myserver.domain.my:10000/ If I modified this line:
I got this error:
But as --silent options is there, error is not present, and container is unhealty. Changing this:
and executing this script give me output, and container changed status to healthy.
Regards, Peter