Skip to content

Issue #63 - Don't restart KTD container on startup error

joubu requested to merge joubu/koha-sandboxes-docker:issue-63 into master

This patch prevent the KTD container to restart if something wrong happened during startup.

I've tested it with KOHA_ELASTICSEARCH="1" and ELASTIC_SEARCH="wrong_ip:port"

The behaviours with this patch are:

  • Provision log is showing: fatal: [localhost]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p "echo ~/.ansible/tmp"&& mkdir "echo ~/.ansible/tmp/ansible-tmp-1641980508.15624-25635-53488584073290" && echo ansible-tmp-1641980508.15624-25635-53488584073290="echo ~/.ansible/tmp/ansible-tmp-1641980508.15624-25635-53488584073290" ), exited with result 1", "unreachable": true} This is the typical error when the container is not reachable. The same error appears without this patch

  • Docker log (from the UI) is showing, last line: 2022-01-12T09:40:25.959527382Z [1055] Checking state of biblios index

  • Docker log using the docker logs command, last line: [NoNodes] ** No nodes are available: [http://212.47.228.85:920], called from sub Search::Elasticsearch::Role::Client::Direct::ANON at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/Indexer.pm line 415.

Too bad that it's missing from the UI!

Merge request reports