Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The exec call hangs #868

Open
polRk opened this issue Nov 15, 2024 · 5 comments
Open

The exec call hangs #868

polRk opened this issue Nov 15, 2024 · 5 comments
Labels
triage Investigation required

Comments

@polRk
Copy link

polRk commented Nov 15, 2024

Expected Behaviour
Immediately return result like docker exec containerId

Actual Behaviour
It gets stuck

Testcontainer Logs

  testcontainers [INFO] [52c1ac77bd17] Container is ready +0ms
  testcontainers [DEBUG] [52c1ac77bd17] Getting container by ID... +1ms
  testcontainers [DEBUG] [52c1ac77bd17] Got container by ID +0ms
  testcontainers [DEBUG] [52c1ac77bd17] Execing container with command "/opt/ydb/bin/ydbd -s grpc://127.0.0.1:2135 admin blobstorage config init --yaml-file /opt/ydb/cfg/config.yaml"... +0ms

Steps to Reproduce
This promise will never come to an end

Image

Environment Information

  • Operating System: macOS
  • Docker Version: Orbstack 1.8.1
  • Node version: bun 1.1.32
  • Testcontainers version: 10.14.0
@cristianrgreco
Copy link
Collaborator

cristianrgreco commented Nov 19, 2024

The command that's hanging is "/opt/ydb/bin/ydbd -s grpc://127.0.0.1:2135 admin blobstorage config init --yaml-file /opt/ydb/cfg/config.yaml". Do you think the command itself could be hanging instead of Testcontainers?

I would try with a simple command like docker.exec("echo hello world");, and if that doesn't hang, look into why the ydbd command is hanging.

@cristianrgreco cristianrgreco added the triage Investigation required label Nov 19, 2024
@polRk
Copy link
Author

polRk commented Nov 21, 2024

look into why the ydbd command is hanging.

No, this is not the case, if you run the command directly through docker exec, they do not hang and are executed instantly

@cristianrgreco
Copy link
Collaborator

Could you try with NodeJS instead of Bun, and Docker instead of Orbstack, and LMK if the issue persists?

@polRk
Copy link
Author

polRk commented Nov 26, 2024

Could you try with NodeJS instead of Bun, and Docker instead of Orbstack, and LMK if the issue persists?

Nodejs I can, docker desktop - no

@damms005
Copy link

@cristianrgreco I can confirm it only happens in Bun. Works fine when I switched back to using Node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Investigation required
Projects
None yet
Development

No branches or pull requests

3 participants