Closed distributev closed 12 months ago
It seems that the zammad-init
container is not able to create a test connection to the Elasticsearch service, and therefore does not finish. This blocks subsequents containers.
I am not sure what could cause this, maybe resource or other environment issues? Please head over to https://community.zammad.org/ to ask for help with your set-up.
I'll close the current issue for now, as it is not about a (reproducible) issue in the Zammad software/stack. Please feel free to provide more information in future.
I believe the container logs could be improved in this situation - nowhere in the container logs I could see a good hint like ERROR or FATAL with details - zammad-init container even finished without giving an error code (I have it configured to restart if error and it did not) instead of showing 100 times 'waiting for init container to finish install or update...' without checking that init container already finished (without success) maybe after it says 5 or 10 times times 'waiting for init container to finish install or update...' it could say (after 10 iterations) ERROR and it is probably because .... and solutions could be 1. possible solution 1 if that 2. possible solution 2 if the other, etc.
I checked the elasticsearch logs line by line and besides, the last line which gives a hint that there could be an issue, there is not other line which suggests anything related with a problem but it doesn't say also anything like success - so no information.
Last few lines from elasticsearch suggest something is not well but it says about shards etc - not related with memory or resources.
[2023-11-02T12:57:28,216][INFO ][o.e.h.n.s.HealthNodeTaskExecutor] [460a33c6da9c] Node [{460a33c6da9c}{QWoVUbnvTuy6zR92bysbgQ}] is selected as the current health node.
[2023-11-02T12:57:29,296][INFO ][o.e.c.r.a.AllocationService] [460a33c6da9c] current.health="YELLOW" message="**_Cluster health status changed from [RED] to [YELLOW]_** (reason: [shards started [[zammad_production_cti_log][0], [zammad_production_chat_session][0]]])." previous.health="RED" reason="shards started [[zammad_production_cti_log][0], [zammad_production_chat_session][0]]"
Thanks for the updates. I agree that the logs can be improved in future. However, there is still no reproducible error in the Zammad stack at the moment, and therefore I'll close this issue for now. Please feel free to provide more information.
zammad-init finished and shut down itself since 10 minutes, zammad-init logs show that it did work and zammad-init logs say nothing about any possible issue however zammad-railsserver and other containers keep displaying in an infinite loop "waiting for init container to finish install or update..." + the app is not accessible and there are no other logs which indicate any possible issue.
Is this the expected behavior?
I believe this is a bug, I'm playing all day long with lots of docker applications. I'm going to try chatwood hoping that their docker setup is going to be straightforward.
Please consult the community as requested several times.
I already did and found some entries related with resources which could apply, tried few things and nothing worked - could not get past the infinite loop "waiting for init container to finish install or update..." - nevertheless the docker container logs could be improved to be (much) more specific and this is the reason I believe this is a bug.
Thank you for your efforts to build an open source support software.
When I tried v5 I was able to get it working using docker-compose, I'm not sure what changed in v6 that suddenly I'm not able to get it working. I even tried to inspire from the v5 docker-compose setup and to adapt it to v6, unfortunately without any luck.
Sorry this is not helping anyone. I'm limitting this issue due to off topic and repeated messages to topics that should belong in our community forum.
6.0 is outdated, use 6.1.
@distributev if you have any pointers to technical for us, please let us know. The init container writes a Zammad-ready file that the other containers look for to determine that the init container finished. You may want to check if that file is present.
Infos
Docker version 24.0.6, build ed223bc
Docker Compose version v2.11.1
Debian 11
Expected behavior
Zammad should work when correct configuration is provided.
Actual behavior
Zammad is not accesible, the command docker logs zammad-railsserver keeps saying
waiting for init container to finish install or update...
zammad-ngix seems to have finished since it does not appears anymore in the output of docker ps
Most likely connection configuration is fine since all the other containers are listed in the docker ps including zammad-nginx, zammad-railserver,etc and they are not restarted (no errors)
I checked the logs for each container individually and I do not see any error like Could not connect to database or similar.
the command docker ps shows
docker logs zammad-elasticsearch shows
docker logs zammad-nginx shows
docker logs zammad-init shows
docker logs zammad-railsserver shows
Steps to reproduce the behavior
*