OracleContainer waiting for the wrong regular expression
See original GitHub issueThe 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:
- Created a year ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tests are using the same image as you can see here
Can you share a sample project that reproduces the issue, please?
Yes, it is
store/oracle/database-enterprise:12.2.0.1-slim
The log created is: 13:33:35,773 [32mINFO [m [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 [33mWARN [m [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 [32mINFO [m [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 [32mINFO [m [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 [32mINFO [m [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 [1;31mERROR[m [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:?]