Re: V2.3.0 Docker image (amd64) : Healthcheck
"John P. Rouillard" <[email protected]> Tue, 17 Oct 2023 12:05:38 -0400
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
In message <DU2PR01MB85579FEA05583DF60DD1E57AE8D6A@DU2PR01MB8557.eurprd01.prod.
exchangelabs.com>,
SCHLEMMER Norbert writes:
>~ $ sh -xv roundup_healthcheck
>#! /bin/sh
>
># if there are multiple trackers, d=demo t=tracker ...
># returns last one for testing that server is up. Does not test
># each tracker.
>tracker=$(ps -ef | sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p')
>+ ps -ef
>+ sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p'
>+ tracker='issues
>issues'
>wget -q -O /dev/null --no-verbose http://localhost:8080/${tracker:-demo}/
>+ wget -q -O /dev/null --no-verbose http://localhost:8080/issues issues/
^^^^^^^^^^^^^
Hmm, the path /issues issues/ is wrong. It looks like the ps output is
broken. I can't even craft input to that sed command that produces
"issue issue".
>wget: server returned error: HTTP/1.1 503 Service Unavailable
That's odd as well I would expect a 404 not found.
What does:
ps -ef | grep roundup-server
output? The last arguments to roundup-server should look like
<tracker_name>=<relative_directory_path>.
>~ $ wget -q -O /dev/null --no-verbose http://tvmtmcsdebiansrv.my.domain.com:8917/issues/
You didn't provide the exit status of the command (the $? variable),
but the command isn't supposed to produce any output. It's run just
for its exit status. So what you reported doesn't look wrong.
You should be able to run:
wget -q -O /dev/null --no-verbose http://localhost:8080/issues/
echo $?
from inside the docker container (docker exec -it ....) as well and
'echo $?' should be 0.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.