testcontainers / testcontainers/testcontainers-java

richnorth/vnc-recorder: Could not start container and seg fault

未关闭
#706 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

resolution/acknowledged type/bug
主要语言
Java
星标
8.7k
派生
1.9k
平均合并
2 天 17 小时
30 天内合并 PR
9

描述

Hi!

I am trying to use testcontainers in my project (1.7.2) and I am getting some issues related with the containers. Just to be sure it was not any issue related with my project, I downloaded your testcontainers-java-examples project and try to execute the selenium-container example, getting the same issue.

These are the logs I got:

18:52:30.663 [main] INFO  🐳 [richnorth/vnc-recorder:latest] - Container richnorth/vnc-recorder:latest is starting: ae1406ceff13e785e93f1cafb8f78d6a41ae95770bb39474c5dbefe43c9b2082
18:53:30.690 [main] ERROR 🐳 [richnorth/vnc-recorder:latest] - Could not start container
org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output
	at org.testcontainers.containers.VncRecordingContainer$1.waitUntilReady(VncRecordingContainer.java:91) ~[testcontainers--1.7.3-g0aeaec3-2.jar:na]
	at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:32) ~[testcontainers--1.7.3-g0aeaec3-2.jar:na]
	at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:531) [testcontainers--1.7.3-g0aeaec3-2.jar:na]
	at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:258) [testcontainers--1.7.3-g0aeaec3-2.jar:na]
	at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:209) [testcontainers--1.7.3-g0aeaec3-2.jar:na]
	at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76) ~[duct-tape-1.0.7.jar:na]
	at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:207) [testcontainers--1.7.3-g0aeaec3-2.jar:na]
	at org.testcontainers.containers.BrowserWebDriverContainer.containerIsStarted(BrowserWebDriverContainer.java:189) ~[selenium--SNAPSHOT.jar:na]
18:53:30.703 [main] ERROR 🐳 [richnorth/vnc-recorder:latest] - Container log output (if any) will follow:
18:53:30.708 [testcontainers-netty-1-1] INFO  🐳 [richnorth/vnc-recorder:latest] - STDERR: Segmentation fault (core dumped)
18:53:30.714 [main] ERROR 🐳 [selenium/standalone-chrome-debug:2.45.0] - Could not start container

I attached the complete maven logs if you need them:
logs.txt

Thanks a lot for your support,

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 selenium-container 示例和附带的 Maven 日志开始,然后检查 VncRecordingContainer.java 中第 91 行附近报告的等待策略,以及 BrowserWebDriverContainer 的启动路径。重现 timeout 和 segmentation fault,并且只有在记录了原因和一种经过验证的启动容器方式后,才认为 issue 已完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, java
领域
devops, testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。