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

Docker keeps restarting #1228

Closed
007pig opened this issue Jan 26, 2017 · 10 comments
Closed

Docker keeps restarting #1228

007pig opened this issue Jan 26, 2017 · 10 comments

Comments

@007pig
Copy link

007pig commented Jan 26, 2017

Expected behavior

Docker runs without restarting

Actual behavior

Docker restarts itself after a short time

Information

Docker for Mac: version: 1.13.0-beta39 (5e9e408b0)
macOS: version 10.12.3 (build: 16D32)
logs: /tmp/C1DBA13F-4677-4F7C-B3D5-B4CD14A07BBB/20170127-015500.tar.gz
[OK] vmnetd
[OK] dns
[OK] driver.amd64-linux
[OK] virtualization VT-X
[OK] app
[OK] moby
[OK] system
[OK] moby-syslog
[OK] db
[OK] env
[OK] virtualization kern.hv_support
[OK] slirp
[OK] osxfs
[OK] moby-console
[OK] logs
[OK] docker-cli
[OK] menubar
[OK] disk

My containers runs resilio sync (similar to Bittorrent) with many share folders. I have several similar containers. After upgrading to beta39, Docker vm keeps restarting after running for a short time.

Something I found in the log:

Jan 27 01:52:44 iMac Docker[33501]: Socket.TCPv4.write tcp:116.30.245.38:46599: caught broken pipe returning Eof
Jan 27 01:52:46 iMac com.apple.xpc.launchd[1] (com.apple.quicklook[36381]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
Jan 27 01:52:47 iMac Docker[33501]: Socket.TCPv4.write tcp:121.238.243.55:59974: caught broken pipe returning Eof
Jan 27 01:52:53 iMac com.apple.xpc.launchd[1] (com.apple.nowplayingtouchui): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Jan 27 01:52:53 iMac Docker[33502]: Assertion failed: (remaining == 0 || i < n), function vmn_read, file src/lib/pci_virtio_net_vpnkit.c, line 564.
Jan 27 01:52:53 iMac Docker[33502]: virtio-net-vpnkit: initialising, opts="uuid=87f1398b-297f-4501-bced-83c927dafbe7,path=/Users/xiaoyu/Library/Containers/com.docker.docker/Data/s50,macfile=/Users/xiaoyu/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/mac.0"
Jan 27 01:52:53 iMac Docker[33502]: Interface will have uuid 87f1398b-297f-4501-bced-83c927dafbe7
Jan 27 01:52:53 iMac Docker[33502]: Connection established with MAC=c0:ff:ee:c0:ff:ee and MTU 8000
Jan 27 01:52:53 iMac Docker[33502]: virtio-9p: initialising path=/Users/xiaoyu/Library/Containers/com.docker.docker/Data/s40,tag=db
Jan 27 01:52:53 iMac Docker[33502]: virtio-9p: initialising path=/Users/xiaoyu/Library/Containers/com.docker.docker/Data/s51,tag=port
Jan 27 01:52:53 iMac Docker[33502]: linkname /Users/xiaoyu/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Jan 27 01:52:53 iMac Docker[33502]: COM1 connected to /dev/ttys017
Jan 27 01:52:53 iMac Docker[33502]: COM1 linked to /Users/xiaoyu/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Jan 27 01:52:53 iMac Docker[33500]: Fatal unexpected exception: Socket.Closed
Jan 27 01:52:53 iMac Docker[33502]: Hypervisor subprocess has shutdown
@007pig
Copy link
Author

007pig commented Jan 26, 2017

BTW I switched back to stable and it works normally.

@djs55
Copy link
Contributor

djs55 commented Jan 27, 2017

Thanks for your report. The assertion is here which looks like it's caused by the incoming ethernet frame being too big for the buffer. I suspect this is because of a miscommunication about the MTU on the link. I've escalated this to our networking team.

@sra
Copy link

sra commented Mar 4, 2017

Exact problem here, this version is useless for anything network intensive. Could you please provide links to previous installers? #1120 [Update: I found a 1.12.x installer from a while back and it works ok for now. Thanks!]

@bgrieder
Copy link

bgrieder commented Mar 6, 2017

@sra The proposed workaround in #1378 (comment) may or may not work for you.....

@Palid
Copy link

Palid commented Mar 9, 2017

While this isn't fixed I advise using this version: https://download.docker.com/mac/stable/1.12.6.14937/Docker.dmg

It's older one, but at least it doesn't randomly crash.

MagnusS added a commit to MagnusS/for-mac that referenced this issue Mar 13, 2017
- Out of disk space when writing to qcow2 (docker#1365)
- Hyperkit MTU assertion (docker#1228)
- Too many connections in Vpnkit (docker#1009)

Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
@avsm
Copy link

avsm commented Mar 28, 2017

This has now shipped in the beta channel, so any version since 17.03.0-ce-mac2 should have the fix in. If you do see this again in an newer version, we'd appreciate a fresh issue with diagnostic logs so we can continue to track it down. Our fix sets the MTU to a firm 1500 rather than autonegotiating it, so we are fairly confident it should not re-occur. Thanks for the help with tracking it down!

@avsm avsm closed this as completed Mar 28, 2017
@kingbuzzman
Copy link

kingbuzzman commented Jul 6, 2017

This looks like its happening again on:

Version 17.06.0-ce-mac18 (18433)
Channel: stable
d9b66511e0

@djs55
Copy link
Contributor

djs55 commented Jul 6, 2017

Without diagnostic logs I can't tell for sure but this could be another instance of #1789. Try setting: Whale menu -> Preferences... -> Proxies -> No proxy and see if it fixes it. If so the fix will be in the upcoming 17.06.1 release, due this week.

@chadoh
Copy link

chadoh commented Sep 3, 2019

Happening for me with Docker Desktop 2.1.0.1 (stable)

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests