quirrel
quirrel copied to clipboard
Docker container failing/exiting
My quirrel docker container failed after 37 hours. The redis container is still running.
docker-compose -v
docker-compose version 1.29.2, build 5becea4c
docker-compose ps
Name Command State Ports
----------------------------------------------------------------------
default_quirrel_1 docker-entrypoint.sh /bin/ ... Exit 2
default_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
docker-compose logs last line reads
quirrel_1 | Received SIGTERM - terminating server app ...
uname -a
Linux quirrel 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
docker-compose images
Container Repository Tag Image Id Size
----------------------------------------------------------------------------------
default_quirrel_1 ghcr.io/quirrel-dev/quirrel latest ccf91592650d 256.3 MB
Hi @stevenmunro! Received SIGTERM
likely corresponds to this line (although it doesn't include "server app"):
https://github.com/quirrel-dev/quirrel/blob/56d39c65fb6be443b693a7b000920cbf3cae9e9d/src/shared/cliWithConfig.ts#L32
That makes me think it was terminated from the outside.
Could be!
But your console.log outputs nothing between the word “terminating” and the three dots.
Unless, the image I’m using is older and the words “server app” have since been removed?
Spot on! Did some digging through the history, here's the exact wording:
https://github.com/quirrel-dev/quirrel/blob/db836ae1fe771ecf7629e644d5c55da4e5e2204e/quirrel/src/api/main.ts#L39
You can try out this image, which is built off the current main
branch: https://github.com/quirrel-dev/quirrel/pkgs/container/quirrel/8424894?tag=main