Skip to content

Instantly share code, notes, and snippets.

@rtyley
Created April 26, 2021 11:58
Show Gist options
  • Save rtyley/a3b4c85edbd57066594ddbf11664bbc7 to your computer and use it in GitHub Desktop.
Save rtyley/a3b4c85edbd57066594ddbf11664bbc7 to your computer and use it in GitHub Desktop.
roberto@kind:~/development/scaladex/scaladex$ docker -v
Docker version 20.10.6, build 370c289
roberto@kind:~/development/scaladex/scaladex$ docker-machine -v
docker-machine version 0.16.0, build 702c267f
roberto@kind:~/development/scaladex/scaladex$ sbt
[info] welcome to sbt 1.4.6 (Ubuntu Java 11.0.10)
[info] loading global plugins from /home/roberto/.sbt/1.0/plugins
[info] loading settings for project scaladex-build from plugins.sbt ...
[info] loading project definition from /home/roberto/development/scaladex/scaladex/project
[info] compiling 2 Scala sources to /home/roberto/development/scaladex/scaladex/project/target/scala-2.12/sbt-1.0/classes ...
[info] loading settings for project scaladex from build.sbt ...
[info] set current project to scaladex (in build file:/home/roberto/development/scaladex/scaladex/)
[info] sbt server started at local:///home/roberto/.sbt/1.0/server/4b568074cec0f2c21d37/sock
[info] started sbt server
sbt:scaladex> data/reStart elastic
[info] Application data not yet started
[info] Starting application data in the background ...
data Starting ch.epfl.scala.index.data.Main.main(elastic)
[success] Total time: 2 s, completed 26 Apr 2021, 12:55:48
data 12:55:49.011 [main] INFO ch.epfl.scala.index.data.Main$ - input: List(elastic)
data 12:55:49.434 [default-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
data 12:55:49.933 [main] INFO ch.epfl.scala.index.data.DataPaths$ - DataPaths args: List()
data 12:55:49.935 [main] INFO ch.epfl.scala.index.data.DataPaths - contrib folder: /home/roberto/development/scaladex/scaladex-contrib
data 12:55:49.936 [main] INFO ch.epfl.scala.index.data.DataPaths - index folder: /home/roberto/development/scaladex/scaladex-small-index
data 12:55:49.936 [main] INFO ch.epfl.scala.index.data.DataPaths - credentials folder: /home/roberto/development/scaladex/scaladex-credentials
data 12:55:49.946 [main] INFO ch.epfl.scala.index.data.Main$ - Executing steps
data 12:55:49.947 [main] INFO ch.epfl.scala.index.data.Main$ - Starting elastic
data 12:55:50.052 [main] INFO c.e.s.index.search.DataRepository$ - elasticsearch local scaladex-dev
data 12:55:50.119 [main] WARN o.t.u.TestcontainersConfiguration - Attempted to read Testcontainers configuration file at file:/home/roberto/.testcontainers.properties but the file was not found. Exception message: FileNotFoundException: /home/roberto/.testcontainers.properties (No such file or directory)
data 12:55:50.126 [main] INFO o.t.utility.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
data 12:56:20.729 [main] INFO o.t.d.DockerMachineClientProviderStrategy - Found docker-machine, and will use machine named
data 12:56:20.752 [main] ERROR o.t.d.DockerClientProviderStrategy - Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
data 12:56:20.753 [main] ERROR o.t.d.DockerClientProviderStrategy - UnixSocketClientProviderStrategy: failed with exception TimeoutException (Timeout waiting for result with exception). Root cause IOException (native connect() failed : Permission denied)
data 12:56:20.753 [main] ERROR o.t.d.DockerClientProviderStrategy - DockerMachineClientProviderStrategy: failed with exception ShellCommandException (Exception when executing docker-machine status ). Root cause InvalidExitValueException (Unexpected exit value: 1, allowed exit values: [0], executed command [docker-machine, status, ], output was 122 bytes:
data Docker machine "" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.)
data 12:56:20.753 [main] ERROR o.t.d.DockerClientProviderStrategy - As no valid configuration was found, execution cannot continue
data 12:56:20.757 [main] ERROR ch.epfl.scala.index.data.Main$ - fatal error
data org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2, imagePullPolicy=DefaultPullPolicy())
data at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1286)
data at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:615)
data at org.testcontainers.elasticsearch.ElasticsearchContainer.<init>(ElasticsearchContainer.java:73)
data at ch.epfl.scala.index.search.DataRepository$.open(DataRepository.scala:602)
data at ch.epfl.scala.index.data.elastic.SeedElasticSearch$.run(SeedElasticSearch.scala:80)
data at ch.epfl.scala.index.data.Main$.$anonfun$run$7(Main.scala:97)
data at ch.epfl.scala.index.data.Main$Step.run(Main.scala:153)
data at ch.epfl.scala.index.data.Main$.$anonfun$run$16(Main.scala:144)
data at ch.epfl.scala.index.data.Main$.$anonfun$run$16$adapted(Main.scala:144)
data at scala.collection.immutable.List.foreach(List.scala:333)
data at ch.epfl.scala.index.data.Main$.run(Main.scala:144)
data at ch.epfl.scala.index.data.Main$.main(Main.scala:29)
data at ch.epfl.scala.index.data.Main.main(Main.scala)
data Caused by: java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
data at org.testcontainers.dockerclient.DockerClientProviderStrategy.lambda$getFirstValidStrategy$7(DockerClientProviderStrategy.java:215)
data at java.base/java.util.Optional.orElseThrow(Optional.java:408)
data at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:207)
data at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:136)
data at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:178)
data at org.testcontainers.LazyDockerClient.getDockerClient(LazyDockerClient.java:14)
data at org.testcontainers.LazyDockerClient.listImagesCmd(LazyDockerClient.java:12)
data at org.testcontainers.images.LocalImagesCache.maybeInitCache(LocalImagesCache.java:68)
data at org.testcontainers.images.LocalImagesCache.get(LocalImagesCache.java:32)
data at org.testcontainers.images.AbstractImagePullPolicy.shouldPull(AbstractImagePullPolicy.java:18)
data at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:66)
data at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:27)
data at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:17)
data at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:39)
data at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1284)
data ... 12 common frames omitted
data ... finished with exit code 1
sbt:scaladex>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment