Connection reset by peer #1325
Replies: 2 comments 5 replies
-
It looks like there is an issue reading from the stream. I remember we had a similar exception in Docker.DotNet before: dotnet/Docker.DotNet#629. Maybe you can try to recreate the issue using Docker.DotNet. If it is related to reading from the stream, this should not be too difficult. Perhaps this test might help. Be aware that this test writes to the stream, but reading from it works in the same way. Also, note that there is a fork of Docker.DotNet that contains recent fixes and updates (you should use the forked version). Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointers. As I mentioned, I doubt it's an issue with Testcontainers itself, but it's great to get some input from someone more familiar with Docker.DotNet. I've had a go at replicating what I think Testcontainers is doing using Docker.DotNet, but was unfortunately unable to reproduce the issue. Here's the code I was using: https://gist.github.com/SapiensAnatis/1562fb87dfeef4bac0de3d9b3e7a71cc I put together a console app which uses Testcontainers and that Docker.DotNet code:
Maybe I misunderstood something from the samples about how to use Docker.DotNet, but I am getting the output I would expect from my exec code, so it seems to do what I imagine the PostgreSqlContainer is doing. Maybe I'll have a closer look at how that's implemented in the Testcontainers side and see if there are any major differences. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm running Testcontainers in an unusual environment, which is inside an OpenSUSE distrobox and using Podman. I appreciate this is not exactly supported, but it was working beautifully until it abruptly stopped today without any configuration changes on my part.
I use this
~/.testcontainers/properties
:and now whenever I run a test, it fails at
container.StartAsync()
withWhat's weird is, if I use a debugger to break on the exception, the containers start correctly:
The last log line from Testcontainers before the exception looks something like
except, sometimes this appears multiple times, indicating the command was issued, and sometimes the test even runs to completion, maybe about 10% of the time it passes.
I get this is probably too low-level to have anything to do with Testcontainers, but I was wondering if anyone had seen anything similar?
Beta Was this translation helpful? Give feedback.
All reactions