Closed jonesbusy closed 5 months ago
Possible related to https://github.com/testcontainers/testcontainers-node/pull/729
I think there are other issue related to https://github.com/testcontainers/testcontainers-node/pull/712 on the 10.7.0 release
Because If I remove the TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX
Containers are also preventing to start
[11:33:21.885+02:00] - 2024-04-03T09:33:20.978Z testcontainers [DEBUG] [283b40bf8ce7] Fetched container logs
[11:33:21.885+02:00] - 2024-04-03T09:33:20.978Z testcontainers [DEBUG] [283b40bf8ce7] Waiting for container to be ready...
[11:33:21.885+02:00] - 2024-04-03T09:33:20.979Z testcontainers [DEBUG] [283b40bf8ce7] Waiting for log message "/.+ Started!/"...
[11:33:21.885+02:00] - 2024-04-03T09:33:20.979Z testcontainers [DEBUG] [283b40bf8ce7] Fetching container logs...
[11:33:21.885+02:00] - 2024-04-03T09:33:20.982Z testcontainers [DEBUG] [283b40bf8ce7] Demuxing stream...
[11:33:21.885+02:00] - 2024-04-03T09:33:20.982Z testcontainers [DEBUG] [283b40bf8ce7] Demuxed stream
[11:33:21.885+02:00] - 2024-04-03T09:33:20.982Z testcontainers [DEBUG] [283b40bf8ce7] Fetched container logs
[11:33:21.886+02:00] - 2024-04-03T09:33:21.058Z testcontainers [ERROR] [283b40bf8ce7] Log stream ended and message "/.+ Started!/" was not received
[11:33:21.886+02:00] - 2024-04-03T09:33:21.059Z testcontainers [ERROR] [283b40bf8ce7] Container failed to be ready: Error: Log stream ended and message "/.+ Started!/" was not received
[11:33:21.886+02:00] - 2024-04-03T09:33:21.059Z testcontainers [DEBUG] [283b40bf8ce7] Stopping container...
[11:33:21.886+02:00] - 2024-04-03T09:33:21.202Z testcontainers [DEBUG] [283b40bf8ce7] Stopped container
[11:33:21.886+02:00] - 2024-04-03T09:33:21.202Z testcontainers [DEBUG] [283b40bf8ce7] Removing container...
[11:33:21.886+02:00] - 2024-04-03T09:33:21.205Z testcontainers [DEBUG] [283b40bf8ce7] Removed container
[11:33:21.886+02:00] - 2024-04-03T09:33:21.205Z testcontainers [DEBUG] Releasing lock file "/tmp/testcontainers-node.lock"...
[11:33:21.886+02:00] - 2024-04-03T09:33:21.206Z testcontainers [DEBUG] Released lock file "/tmp/testcontainers-node.lock"
[11:33:21.886+02:00] - ❯ src/ts/api.test.ts (5 tests) 12039ms
[11:33:21.886+02:00] -
[11:33:21.886+02:00] - ⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯
[11:33:21.886+02:00] -
[11:33:21.886+02:00] - FAIL src/ts/api.test.ts > api
[11:33:21.886+02:00] - Error: Log stream ended and message "/.+ Started!/" was not received
With the TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX environment set, testcontainers-node tries to lock itself twice. Since it had locked itself already, the second lock attempt fails (and the timeout occurs). Not sure, why this scenario is happening.
It fails because of this constant: https://github.com/testcontainers/testcontainers-node/blob/v10.8.1/packages/testcontainers/src/reaper/reaper.ts#L9
Being compared with a rewritten image: https://github.com/testcontainers/testcontainers-node/blob/v10.8.1/packages/testcontainers/src/generic-container/generic-container.ts#L70
This is a bug in testcontainers-node. Workarounds are:
(edited)
Hi,
I'm not sure if it's something wrong on kubedock or a regression on testcontainer node.
I'm using kubedock 0.16.0 but I also try to downgrade it to 0.15.5 withtout success
I would like to upgrade from testcontainer node 10.6.0 to 10.8.1 but I'm not able to make it work with kubedock.
Basically no container is created, not even ryuk. It's like nothing happen
I can only see on kubedock logs.
Then it "hang" here
If I check the logs using testcontainer node
10.6.0
The only 2 difference I see is the GET requests
On testcontainer node 10.6.1
On testcontainer node 10.8.1
The seconds contains my environment variable
Using logs
This get stucks on Acquiring lock file