Coder Social home page Coder Social logo

Comments (9)

quarkus-bot avatar quarkus-bot commented on July 18, 2024

You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip

This message is automatically generated by a bot.

from quarkus.

quarkus-bot avatar quarkus-bot commented on July 18, 2024

/cc @geoand (devservices), @gsmet (elasticsearch), @loicmathieu (elasticsearch), @stuartwdouglas (devservices), @yrodiere (elasticsearch)

from quarkus.

yrodiere avatar yrodiere commented on July 18, 2024

Thanks for reporting, and for the reproducer!

Unfortunately, with your reproducer, and if I remove my ~/.testcontainers.properties file, the Elasticsearch container does get stopped after a run.

I even get that in logs:

2024-02-09 12:20:54,500 WARN  [tc.doc.io/.9.1] (build-11) Reuse was requested but the environment does not support the reuse of containers
To enable reuse of containers, you must set 'testcontainers.reuse.enable=true' in a file located at /home/yrodiere/.testcontainers.properties

(Note I did encounter a bug, #38706, but that's not the same thing)

So... I'm afraid I'll need more context.

How do you run the reproducer?

What logs do you see when you execute your reproducer?

What does your .testcontainers.properties file look like?

What's your OS?

What version of podman or docker do you have installed?

from quarkus.

m-stramel avatar m-stramel commented on July 18, 2024

I only experienced this behavior when running the tests as you explained in #38706

from quarkus.

yrodiere avatar yrodiere commented on July 18, 2024

Ok, then I can't reproduce this.

So:

What logs do you see when you execute your reproducer?

What does your .testcontainers.properties file look like?

What's your OS?

What version of podman or docker do you have installed?

from quarkus.

m-stramel avatar m-stramel commented on July 18, 2024

Within my IDE i am right clicking the class name -> run test

What logs do you see when you execute your reproducer?

2024-02-21 10:42:33,634 INFO  [org.tes.doc.DockerClientProviderStrategy] (build-58) Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
2024-02-21 10:42:34,267 INFO  [org.tes.doc.DockerClientProviderStrategy] (build-58) Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
2024-02-21 10:42:34,271 INFO  [org.tes.DockerClientFactory] (build-58) Docker host IP address is localhost
2024-02-21 10:42:34,307 INFO  [org.tes.DockerClientFactory] (build-58) Connected to docker: 
  Server Version: 20.10.12
  API Version: 1.41
  Operating System: Docker Desktop
  Total Memory: 7836 MB
2024-02-21 10:42:34,318 INFO  [org.tes.ima.PullPolicy] (build-58) Image pull policy will be performed by: DefaultPullPolicy()
2024-02-21 10:42:34,319 INFO  [org.tes.uti.ImageNameSubstitutor] (build-58) Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
2024-02-21 10:42:34,324 INFO  [org.tes.DockerClientFactory] (build-58) Checking the system...
2024-02-21 10:42:34,325 INFO  [org.tes.DockerClientFactory] (build-58) ✔︎ Docker server version should be at least 1.6.0
2024-02-21 10:42:34,456 INFO  [tc.doc.io/.9.1] (build-58) Creating container for image: docker.io/elastic/elasticsearch:8.9.1
2024-02-21 10:42:35,310 INFO  [org.tes.uti.RegistryAuthLocator] (build-58) Credential helper/store (docker-credential-desktop) does not have credentials for docker.io
2024-02-21 10:42:35,321 INFO  [tc.tes.6.0] (build-58) Creating container for image: testcontainers/ryuk:0.6.0
2024-02-21 10:42:35,349 INFO  [org.tes.uti.RegistryAuthLocator] (build-58) Credential helper/store (docker-credential-desktop) does not have credentials for https://index.docker.io/v1/
2024-02-21 10:42:35,910 INFO  [tc.tes.6.0] (build-58) Container testcontainers/ryuk:0.6.0 is starting: 16d5f44100301f4ff0c88bd640b4b60d930aabc4ca8b7f2527ccb4c08fb09fba
2024-02-21 10:42:37,250 INFO  [tc.tes.6.0] (build-58) Container testcontainers/ryuk:0.6.0 started in PT1.928744S
2024-02-21 10:42:38,033 INFO  [tc.doc.io/.9.1] (build-58) Container docker.io/elastic/elasticsearch:8.9.1 is starting: e1e4d7705897df5a709258f0958c010fa5c2cca9bafbd6318816efd5c35f9bc5
2024-02-21 10:42:50,040 INFO  [tc.doc.io/.9.1] (build-58) Container docker.io/elastic/elasticsearch:8.9.1 started in PT15.573875S
2024-02-21 10:42:50,087 WARN  [org.tes.ela.ElasticsearchContainer] (build-58) CA cert under /usr/share/elasticsearch/config/certs/http_ca.crt not found.
2024-02-21 10:42:50,095 INFO  [io.qua.ela.res.com.dep.DevServicesElasticsearchProcessor] (build-58) Dev Services for Elasticsearch started. Other Quarkus applications in dev mode will find the server automatically. For Quarkus applications in production mode, you can connect to this by configuring your application to use localhost:49770
2024-02-21 10:42:51,100 INFO  [io.quarkus] (main) elasticsearch-container-reproducer 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.7.2) started in 20.209s. 
2024-02-21 10:42:51,118 INFO  [io.quarkus] (main) Profile test activated. 
2024-02-21 10:42:51,119 INFO  [io.quarkus] (main) Installed features: [cdi, elasticsearch-java-client, elasticsearch-rest-client]
2024-02-21 10:42:51,624 INFO  [io.quarkus] (main) elasticsearch-container-reproducer stopped in 0.018s

What does your .testcontainers.properties file look like?
I don't believe I have one. where would it be located at?

What's your OS?
macOS Monterey

What version of podman or docker do you have installed?
Docker version 20.10.12, build e91ed57

from quarkus.

yrodiere avatar yrodiere commented on July 18, 2024

Is that the whole log? I don't see the warning I mentioned earlier about reuse needing to be enabled explicitly, that's suspicious.

Also:

2024-02-21 10:42:33,634 INFO [org.tes.doc.DockerClientProviderStrategy] (build-58) Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first

This looks like you do have a ~/.testcontainers.properties file.

where would it be located at?

See the docs: https://java.testcontainers.org/features/configuration/#configuration-locations

from quarkus.

yrodiere avatar yrodiere commented on July 18, 2024

Hello @m-stramel , kind reminder that we don't have enough information to investigate this problem (can't reproduce it, seemingly incomplete logs).

from quarkus.

geoand avatar geoand commented on July 18, 2024

Closing for lack of feedback

from quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.