KTD start up fails when attempting to use Open Search (both --os1 and --os2)
KTD start up with either --os1 or os2 fails. (--es7 and --es8 work as expected.)
Here are the relevant sections from the start up log:
es-1 | Enabling OpenSearch Security Plugin
es-1 | Enabling execution of install_demo_configuration.sh for OpenSearch Security Plugin
es-1 | OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that requires an initial password for 'admin' user.
es-1 | Please define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string.
es-1 | If a password is not provided, the setup will quit.
es-1 | For more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/
es-1 | ### OpenSearch Security Demo Installer
es-1 | ### ** Warning: Do not use on production or public reachable systems **
es-1 | OpenSearch install type: rpm/deb on Linux 6.5.0-28-generic amd64
es-1 | OpenSearch config dir: /usr/share/opensearch/config/
es-1 | OpenSearch config file: /usr/share/opensearch/config/opensearch.yml
es-1 | OpenSearch bin dir: /usr/share/opensearch/bin/
es-1 | OpenSearch plugins dir: /usr/share/opensearch/plugins/
es-1 | OpenSearch lib dir: /usr/share/opensearch/lib/
es-1 | Detected OpenSearch Version: 2.12.0
es-1 | Detected OpenSearch Security Version: 2.12.0.0
db-1 | 2024-05-02 03:03:02+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db-1 | 2024-05-02 03:03:02+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+maria~ubu2004 started.
db-1 | 2024-05-02 03:03:03+00:00 [Note] [Entrypoint]: Initializing database files
es-1 | No custom admin password found. Please provide a password via the environment variable OPENSEARCH_INITIAL_ADMIN_PASSWORD.
....
es-1 exited with code 1
....
koha-1 | Running [sudo koha-shell kohadev -p -c 'PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib:/kohadevbox/qa-test-tools perl /kohadevbox/koha/misc/search_tools/rebuild_elasticsearch.pl -v']...
koha-1 | [1169] Checking state of biblios index
db-1 | 2024-05-02 3:03:44 14 [Warning] Aborted connection 14 to db: 'koha_kohadev' user: 'koha_kohadev' host: '172.21.0.5' (Got an error reading communication packets)
db-1 | 2024-05-02 3:03:44 15 [Warning] Aborted connection 15 to db: 'koha_kohadev' user: 'koha_kohadev' host: '172.21.0.5' (Got an error reading communication packets)
koha-1 | [NoNodes] ** No nodes are available: [http://es:9200], called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/Indexer.pm line 437.
koha-1 exited with code 1