-
Notifications
You must be signed in to change notification settings - Fork 117
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
4.13.1 (90346) Docker crash when running container with selenium and chrome #6530
Comments
I should also point out that I tried this with both chrome_options.add_argument('--disable-dev-shm-usage') option, which is how I've run for years, as well as without that option and added --shm-size=2g to docker run as well. These are related to memory handling issues and crashes in the past with selenium and chrome but issue occurs with either approach in this case. |
Similar crash over here with a M1 Pro |
same issue |
Same issue. Docker desktop 4.13.0 (89412) crashes: |
equivalent error here, Mac M1 Pro message: |
I'm also experiencing this problem after the latest update to 4.13.0. Tried factory reset many times, but always get the same error after some time of usage. As it was mentioned above, 4.12.0 works fine. I'm also on Macbook Pro M1 Pro, Monterey 12.6.1 |
Same issue with Monterey 12.6.1. |
Same issue here with Monterey 12.6.1, confirmed for three separate developers. |
Exactly the same issue using different images. M1 Pro, Ventura |
I can confirm experiencing the same issue with custom built docker image containing both Chromium and Selenium. Version 4.13.0 (89412) on Mac OSX (Intel and M1). Everything works fine in Docker Desktop v4.12.0. We experience it even after rebuilding the images, fwiw. |
Thank you for giving an advice on what to downgrade :D |
Seems like fixed on Version 4.13.1 |
It would appear so! Issue not happening with 4.13.1 for my original containers either. :) |
Unfortunately, it happened again this morning. ERRO[0115] error waiting for container: invalid character 'c' looking for beginning of value All the same exact code. Appears to still be present, though happens less frequently than before. |
many random crashes, this version is unstable, went back to 4.12 and everything works |
Same. |
I have the same bug! |
Same bug here Mac OS 12.4 / Docker 4.13.1 - it starts and runs for a while, then silently crashes and freezes the app. |
Me too. Mac OS 12.5.1 (Intel) / Docker 4.13.1- crashes after running for less than a day. |
Same issue, OS 13.0 (Intel) |
Similar issue here with 4.13 up to 4.14. This issue does NOT exist on the latest 4.12.x Apple M1 on macOS Ventura 13.0.1 |
Issue still in 4.14 version |
Docker freezing since my last update, randomly. I cannot restart it, the contenerized app (apache and php) stops working (freezes and stops responding to requests) MacOSX Monterrey (M1) |
Issue still in 4.14.1 version |
How could I go back to 4.12.1? |
Still crashing for me every now and then. I have a M1 Pro processor. |
Build is working great @djs55 No longer seeing Docker "going out to lunch". 👍👏 When can we expect this fix in a production release? 🙏 |
@kennethredler I'm hoping to get this fix into 4.16, due in January. It's merged already but I'm on the look out for possible regressions. Speaking of which: @ylor could you describe your setup a little more? Is it TCP or UDP? Are you using the virtualisation.framework (or Intel hyperkit or Apple Silicon qemu)? Virtualization framework with recent macOS versions should be fast. Could you share a benchmark result (e.g. with iperf?) Thanks! |
Hey @djs55 👋, no benchmarks unfortunately -- downgraded back to 4.12. I can try and get some put together but in the meantime, my setup looks like:
|
Thanks for the info and update @djs55 . Regrettably, the real issue I'm seeing may be #6472 ("Docker is Stopping") and this build doesn't seem to resolve that. Will be looking for help over there. |
@djs55, unfortunately I can confirm @ylor's regression. The set up is using docker compose to run a Wireguard VPN container (so all UDP) and funneling network traffic through that. When I do that and test using fast.com in a browser, I get 93 Mbps from fast.com under 4.12 and only 6.8 Mbps under your new 4.16 build. To confirm, I also set up the same VPN connection using a different Wireguard container and ran iperf3 tests — here's what that looks like: Under 4.12:
and under your 4.16 build:
In both 4.12 and 4.16, I'm using the new Virtualization framework and running macOS Ventura 13.1 on an Intel chip. If I can provide any additional details that would be helpful in tracking this down, happy to do what I can. |
I tried the 4.16 test build as well on mac m1. It resolved the issue of docker going down completely when under network load, but now my total throughput from the containers is stuck at about 5MB/s. I've tested this repeatedly by having downloads in both transmission and sabnzbd. They'll each get a part of the 5MB/s and if I pause one, the other gets it's speed. I'm wondering, did you just put a limiter. Is the original issue caused by higher throughput? In any case, anxious to get a fix for this. It's sad my Pi4 is more efficient at this and it has to copy the completed downloads over the network to my media server. |
Thanks for the info on UDP performance. I found a logging problem in that development build -- it was logging once per packet (!) so I've removed that and tidied the network logs generally. If you'd like to try a new M1 build I have one here: https://desktop-stage.docker.com/mac/main/arm64/94771/Docker.dmg This also has a fix for a bug which affected multiple concurrent TCP connections. Could you try it and let me know what happens? For reference the logs are in |
@djs55 if you have an Intel build that fixes the logging issue for UDP performance, I'd be happy to test it and report back iperf numbers again. |
@djs55 I know I jumped in on this, but I wanted to let you know I just tried that latest build you provided. The docker crashing and bandwidth issues I was having both appear to be resolved. You're a lifesaver. I was pulling my hair out trying to figure this out. First time using docker and just needed something better than the Pi4 I was using and couldn't figure out why I was the only one seeming to have issues on such a basic setup. |
@samsawyer I've got an Intel build here: https://desktop-stage.docker.com/mac/main/amd64/94771/Docker.dmg -- let me know what you observe! |
The test build solved this issue on my machine! |
@djs55, nice work. Just tested with the new Intel build, and here are some iperf results:
So back to near-parity with 4.12 in terms of performance; whew. (For the sake of completeness: I also ended up trying colima as a result of all this — and in colima, the same iperf test run with the same docker-compose.yml gives me more than double the performance, clocking in at 222 Mbps.) But in any case, I think you've solved the speed regression from 4.12 to what's due to be merged into 4.16, and you'd already solved the crash-under-network-load issue. So thanks for tackling both of those. |
@djs55 thank you for your work. 4.16 is released. Does this mean all the changes are part of that release? |
@sellersj yes, all those changes should be in 4.16. Let me know if you see anything suspicious! |
Awesome news. Thank you as well for the great follow up and support @djs55! Closing out the issue as resolved. -tomas |
A fix has been released in Docker Desktop 4.16. See the release notes for more details. |
Thank you @samsawyer for following up with numbers and @djs55 for the hard work! |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
Expected behavior
Single run python script executes and uses selenium and chrome to scrape target website then done. Been doing this for almost 3 years daily.
Actual behavior
After upgrading to Docker Desktop for Mac 4.13.0, the docker engine crashes with this message in the terminal that launched the container with docker run command. I thought the issue might have been fixed in 4.13.1 but it is still occurring, though less frequently/reliably than before.
ERRO[0007] error waiting for container: invalid character 'c' looking for beginning of value
The menu bar icon shows the engine stopping...the dashboard shows engine stopped but trying to restart from the docker menu fails with a fatal error. Screenshot attached. You have to exit/quit docker and restart it for the engine to become operational again.
Information
Output of
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
This output is before running the container and causing the crash. If I run this after the crash, of course it generates a bunch of errors about not being able to reach the docker services. I can post that as well but figured you cared more to know that before each run, the base docker installation is healthy.
Starting diagnostics
[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0014: are the backend processes running?
[PASS] DD0007: is the backend responding?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0012: is the VM networking working?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0019: is the com.docker.vmnetd process responding?
[PASS] DD0033: does the host have Internet access?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0032: do Docker networks overlap with host IPs?
No fatal errors detected.
Steps to reproduce the behavior
You should just need to add selenium to a requirements.txt file and/or install it on running container to get the test code to work on top of the base python image. I tried to see if the issue was python, base linux in container and/or selenium version rooted but same result with python 3.8, 3.9 and 3.10, selenium 4.2, 4.3, 4.4, 4.5 and both buster and bullseye distros. Hope this is helpful in fixing for future Docker release.
The text was updated successfully, but these errors were encountered: