Stack logging in Docker prevents container recreation #72702
Labels
>bug
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
Team:Delivery
Meta label for Delivery team
When deploying Elasticsearch in Docker with
ES_LOG_STYLE=file
to use stack logging (#65778), the container may end with theCrashLoopBackOff
status if the container isrestartedrecreated.Step to reproduction with ECK on k8s:
> k get es,pods NAME HEALTH NODES VERSION PHASE AGE elasticsearch.elasticsearch.k8s.elastic.co/ananas green 1 7.12.0 Ready 39s NAME READY STATUS RESTARTS AGE pod/ananas-es-default-0 1/1 Running 0 42s
The container status then oscillates between
Error
andCrashLoopBackOff
What's going on?
The ES log reveals that
docker-entrypoint.sh
fails becauselog4j2.file.properties
has already been moved.Here is the culprit:
elasticsearch/distribution/docker/src/docker/bin/docker-entrypoint.sh
Line 67 in cbb2ca2
Could we just replace the
mv
by acp -f
?The text was updated successfully, but these errors were encountered: