Closed lilotter45 closed 1 year ago
Thanks for the thorough report. This was already reported in #126 and fixed in #127 but the snikket/snikket-web-portal:beta
image with id 997b1633a7ad
is older than that. You could try with the snikket/snikket-web-portal:dev
image with id 882d055ca3e0
, it has netcat in it.
Thanks for the info. Sorry about the duplicate issue, I guess I didn't include closed issues in my search.
Description
netcat
does not appear to be available in thesnikket-portal
container for the docker health check, despite being included in the dockerfile. Manually installingnetcat
in the container allows the command to run and the health state returns to "healthy."My
snikket-portal
container was reporting an "unhealthy" state. While troubleshooting the issue, manually running the health check command (docker exec -it snikket-portal nc -zv 127.0.0.1 5280
) returned the errorOCI runtime exec failed: exec failed: unable to start container process: exec: "nc": executable file not found in $PATH: unknown
.Opening a shell in the container (
docker exec -it snikket-portal sh
) and running the same command (nc -zv 127.0.0.1 5280
) resulted in the messagesh: 1: nc: not found
.Running
apt-get update && apt-get install netcat
followed by the health check command,nc -zv 127.0.0.1 5280
results in the (presumably) expected resultConnection to 127.0.0.1 5280 port [tcp/*] succeeded!
.To reproduce
Follow the instructions in the quick-start guide:
docker-compose.yml
fromhttps://snikket.org/service/resources/docker-compose.beta.yml
snikket.conf
in the same directory and update the domain name and admin email.SNIKKET_RETENTION_DAYS=28
,SNIKKET_UPLOAD_STORAGE_GB=20
, andSNIKKET_SITE_NAME=MySiteName
docker compose up -d
docker container list
The following is returned:
Manually install
netcat
:docker exec -it sh
apt-get update && apt-get install netcat
docker exec -it sh
to return:Install details