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.

OracleContainer waiting for the wrong regular expression

See original GitHub issue

The Code used looks like this

` private void preconfigure() { this.waitStrategy = new LogMessageWaitStrategy() .withRegEx(“.DATABASE IS READY TO USE!.\s”) .withTimes(1) .withStartupTimeout(Duration.of(DEFAULT_STARTUP_TIMEOUT_SECONDS, SECONDS));

    withConnectTimeoutSeconds(DEFAULT_CONNECT_TIMEOUT_SECONDS);
    addExposedPorts(ORACLE_PORT, APEX_HTTP_PORT);
}`

But what I see is

`Remove password info Docker DB configuration is complete ! configDB.sh is done at 31 sec

Done ! The database is ready for use .

===========================================================================

== Add below entries to your tnsnames.ora to access this database server ==

====================== from external host ================================= `

Can it be that

.withRegEx(“.DATABASE IS READY TO USE!.\s”)

does not match

Done ! The database is ready for use .

and because of that an oracle image always runs into the timeout?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
eddumelendezcommented, May 24, 2022

Tests are using the same image as you can see here

Can you share a sample project that reproduces the issue, please?

0reactions
carstenarturcommented, May 25, 2022

Yes, it is

store/oracle/database-enterprise:12.2.0.1-slim

The log created is: 13:33:35,773 INFO  [main] org.testcontainers.DockerClientFactory org.testcontainers.DockerClientFactory.check(DockerClientFactory.java:234) - ✔︎ Docker server version should be at least 1.6.0 13:33:35,773 WARN  [main] org.testcontainers.utility.ConfigurationFileImageNameSubstitutor org.testcontainers.utility.ConfigurationFileImageNameSubstitutor.apply(ConfigurationFileImageNameSubstitutor.java:31) - Image name gvenzl/oracle-xe:18.4.0-slim was substituted by configuration to store/oracle/database-enterprise:12.2.0.1-slim. This approach is deprecated and will be removed in the future 13:33:35,774 INFO  [main] org.testcontainers.utility.ImageNameSubstitutor org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor.apply(ImageNameSubstitutor.java:94) - Using store/oracle/database-enterprise:12.2.0.1-slim as a substitute image for gvenzl/oracle-xe:18.4.0-slim (using image substitutor: DefaultImageNameSubstitutor (composite of ‘ConfigurationFileImageNameSubstitutor’ and ‘PrefixingImageNameSubstitutor’)) 13:33:35,775 INFO  [main] 🐳 [store/oracle/database-enterprise:12.2.0.1-slim] org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:372) - Creating container for image: store/oracle/database-enterprise:12.2.0.1-slim 13:33:35,849 INFO  [main] 🐳 [store/oracle/database-enterprise:12.2.0.1-slim] org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:436) - Container store/oracle/database-enterprise:12.2.0.1-slim is starting: 7d327333e364492add8034307be7de1b1f65c669e7794ae148f4d42b537a1486 13:37:36,789 ERROR [main] 🐳 [store/oracle/database-enterprise:12.2.0.1-slim] org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:524) - Could not start container org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching ‘.DATABASE IS READY TO USE!.\s’ at org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy.waitUntilReady(LogMessageWaitStrategy.java:49) ~[testcontainers-1.17.2.jar:?]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known issues - ADM Help Centers
Oracle: Oracle Container DB mode is not supported. ... When installing ALM on an unsupported database, a license validation error occurs.
Read more >
Customize pipeline configuration - GitLab Docs
Set up a coverage regular expression for all jobs you want to include in the overall coverage value. Go to your project and...
Read more >
Monitoring WebLogic Server for Oracle Container Engine for ...
In this article, I'll show you how to use two open source tools—Grafana and Prometheus—to monitor an Oracle WebLogic domain deployed in Oracle ......
Read more >
org.testcontainers.utility.TestcontainersConfiguration
waitingFor(Wait. ... doReturn(false).when(TestcontainersConfiguration. ... + "containing `oracle.container.image=IMAGE`, where IMAGE is a suitable image ...
Read more >
Chapter 6. Debezium Connector for Oracle (Developer Preview)
Create the Debezium Oracle container for Kafka Connect: ... An optional, comma-separated list of regular expressions that match names of schemas for which ......
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