question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ElasticsearchContainer` in 1.17.x does not handle `latest` tags correctly

See original GitHub issue

We’re currently trying to leverage testcontainers-java with the elasticsearch module and noticed that the most recent version 1.17.1 breaks our use of the elasticsearch module. I think it’s due to this commit https://github.com/testcontainers/testcontainers-java/commit/c7449edda49ff780921067c4a03014ce68b2aa41

We’re currently trying to leverage elasticsearch version 7.4.2 but our containers fail to start with the error

org.testcontainers.containers.ContainerLaunchException: Container startup failed
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
Caused by: com.github.dockerjava.api.exception.NotFoundException: 
Status 404: {"message":"Could not find the file /usr/share/elasticsearch/config/certs/http_ca.crt in container df2a5216dc041fb543e4d156a05ec268f1db4cadb5efef170200b841d712b2a9"}

Please advise?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
spinscalecommented, Apr 13, 2022

This seems indeed the culprit as new ComparableVersion("latest").isGreaterThanOrEqualTo("8.0.0") returns true.

It might make sense to just log a warning, if the CA cert file is not available instead of throwing a hard exception, as the version can be anything with custom images. I’ll open a PR.

0reactions
brentryancommented, Apr 13, 2022

is there a better way to load custom plugins and use custom images like this?

It seems like I’d want ElasticsearchContainer to have a constructor that takes a type ImageFromDockerfile and does the right thing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Elasticsearch container - Testcontainers for Java
This module helps running elasticsearch using Testcontainers. Note that it's based on the official Docker image provided by elastic. Usage example. You can...
Read more >
Logging OpenShift Container Platform 4.11
Garbage collection is the process of cleaning up cluster resources, such as terminated containers and images that are not referenced by any running...
Read more >
Sysdig On-Premises Release Notes
0 does not yet support Kubernetes 1.22. Upgrade Process. **Supported Upgrades From: **4.0.x. For the full supportability matrix, ...
Read more >
ONAP on Kubernetes
I am new to kubernetes installation of ONAP and have problems cloning onap ... we can use 1.17.x - but it is a...
Read more >
openshift-ansible-3.10.35-1.git.0.e5b821e | Build Info
(mbruzek@gmail.com) - Default CFME nodeselector should be a list of str ... has no tags (pschiffe@redhat.com) - No code in openshift-ansible ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found