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 fails to start after reboot #2531

Closed
marnen opened this issue Jan 29, 2018 · 20 comments
Closed

Docker fails to start after reboot #2531

marnen opened this issue Jan 29, 2018 · 20 comments

Comments

@marnen
Copy link

marnen commented Jan 29, 2018

Expected behavior

Docker starts normally.

Actual behavior

I get the error "com.docker.supervisor failed to start".

Information

Diagnostic output:

Docker for Mac: version: 17.12.0-ce-mac49 (d1778b704353fa5b79142a2055a2c11c8b48a653)
macOS: version 10.12.6 (build: 16G1114)
logs: /tmp/EE9AF3CF-30A8-4913-9CDF-C8C63C0B9763/20180129-124022.tar.gz
failure: com.docker.vpnkit is not running
[OK]     db.git
[OK]     vmnetd
[OK]     dns
[OK]     driver.amd64-linux
[OK]     virtualization VT-X
[OK]     app
[OK]     moby
[OK]     system
[OK]     moby-syslog
[OK]     kubernetes
[OK]     env
[OK]     virtualization kern.hv_support
[ERROR]  slirp
         Unexpected error ((Failure
  "Error connecting socket to 9p endpoint unix:/Users/marnen/Library/Containers/com.docker.docker/Data/s51: Unix.Unix_error(Unix.ECONNREFUSED, \"connect\", \"\")")) connecting to /Users/marnen/Library/Containers/com.docker.docker/Data/s51
         com.docker.vpnkit is not running
         slirp check failed with: Unix.Unix_error(Unix.ECONNREFUSED, "connect", "")
[ERROR]  osxfs
         com.docker.osxfs is not running
[OK]     moby-console
[ERROR]  logs
         logs check failed with: (Failure
  "exec: /usr/bin/log show --style syslog --last 1d | grep -i docker > \"/tmp/EE9AF3CF-30A8-4913-9CDF-C8C63C0B9763/20180129-124022/docker-system-os.log\": exit 1")
[ERROR]  docker-cli
         Connection refused (ECONNREFUSED) connecting to /var/run/docker.sock: check if service is running
         Connection refused (ECONNREFUSED) connecting to /Users/marnen/Library/Containers/com.docker.docker/Data/s60: check if service is running
         docker ps failed
[OK]     menubar
[OK]     disk

Steps to reproduce the behavior

  1. Shut down machine abnormally (i.e. hold down power button to turn off).
  2. Reboot and log in.
  3. Attempt to launch Docker app.
    It fails nearly every time under these circumstances.
@akimd
Copy link
Contributor

akimd commented Jan 30, 2018

Docker tried hard to launch, but to no avail. The logs are almost empty!

have you tried to uninstall and try again?

@akimd akimd self-assigned this Jan 30, 2018
@marnen
Copy link
Author

marnen commented Jan 30, 2018

@akimd I could try reinstalling, but this is a brand new Docker installation: I never had Docker on this computer till last week. Also, once Docker fails, it prompts to reset to factory defaults, and in the course of that, it appears to do at least some reinstallation; at least, it asks me for an admin password and claims to be reinstalling some stuff...

@akimd
Copy link
Contributor

akimd commented Jan 30, 2018

Gee... We'll have to spend more time on your logs then...

Maybe you could try to generate logs again? Those ones really say nothing (al least to me...).

@akimd akimd changed the title Docker fails to start after reboot (diagnostic ID: EE9AF3CF-30A8-4913-9CDF-C8C63C0B9763) Docker fails to start after reboot Jan 30, 2018
@akimd
Copy link
Contributor

akimd commented Jan 30, 2018

So we agree Docker never ever worked correctly on this machine?

@marnen
Copy link
Author

marnen commented Jan 30, 2018

@akimd No, Docker works beautifully on this machine—right up to the point where I have to do an abnormal reboot, as described above.

@marnen
Copy link
Author

marnen commented Jan 30, 2018

(The abnormal reboots were due to an unrelated issue, not Docker's fault, AFAIK)

@marnen
Copy link
Author

marnen commented Jan 30, 2018

So let me restate the problem differently. Docker works nicely on my computer until I have to reboot it as described above. Once I reboot, I have to go through the cycle of "failed to start"/"reset to defaults". If I do that, it again works beautifully...till the next time I need to do an abnormal reboot.

@marnen
Copy link
Author

marnen commented Jan 30, 2018

One other piece of possibly useful info: when I start the Docker app successfully, it takes a very long time before it switches from "Docker is starting" to "Docker is running". Is there a log I can watch during that time so I can see what it's doing?

@marnen
Copy link
Author

marnen commented Jan 30, 2018

You know, that makes me think I should try a reinstallation. But why should I need one after only a week? Is the fact that I'm using Docker from a non-admin account giving it problems?

@marnen
Copy link
Author

marnen commented Jan 30, 2018

Following the instructions to uninstall. Will reinstall and see what happens.

@marnen
Copy link
Author

marnen commented Jan 31, 2018

OK, I reinstalled Docker. I haven't yet had occasion to do an abnormal reboot, but I did find something:

  1. Launch newly reinstalled Docker. Use it for a couple of hours with no problems (except for docker-compose starting very slowly).
  2. Quit Docker.
  3. Reopen Docker.

I'd have expected it to launch without much problem (or immediately give an error), but after 10 minutes or so of "Docker is starting…", I gave up.

There's clearly something that Docker doesn't like about my configuration, but how would I go about finding out what it is?

@marnen
Copy link
Author

marnen commented Jan 31, 2018

This part of it looks like a similar issue to #119.

@akimd
Copy link
Contributor

akimd commented Jan 31, 2018

Hi @marnen. Please, do "Report and diagnose" a second time to see what going on.

If you want to see logs, run the "Console" application, in the search field type "docker" and turn it into "Process" filtering. Then maybe the logs might show something.

But that's roughly what "Diagnose and report" will do.

@marnen
Copy link
Author

marnen commented Jan 31, 2018

@akimd:

Please, do "Report and diagnose" a second time to see what going on.

OK, I'll do that when I'm back at my computer.

If you want to see logs, run the "Console" application, in the search field type "docker" and turn it into "Process" filtering

Would that do anything different than syslog -k Sender Docker (the method recommended in the docs), which gives nothing?

@marnen
Copy link
Author

marnen commented Jan 31, 2018

Of course, by Murphy's Law, the next time I started the Docker application, it loaded quickly. :P I'll post logs when this problem recurs.

@akimd
Copy link
Contributor

akimd commented Feb 1, 2018

I believe that syslog is phased out by macOS. Besides, I find Console quite convenient (once you started using it :).

@akimd
Copy link
Contributor

akimd commented Feb 1, 2018

I'll close this issue. Feel free to reopen if you manage to reproduce.

@akimd akimd closed this as completed Feb 1, 2018
@marnen
Copy link
Author

marnen commented Feb 1, 2018

That's fine. I was about to do the same thing myself. :)

@marnen
Copy link
Author

marnen commented Feb 1, 2018

@akimd:

I believe that syslog is phased out by macOS.

I suspect you're right, but that's what the Docker documentation still recommends for viewing logs.

Besides, I find Console quite convenient (once you started using it :)

I agree with you. My question about whether it would do anything different was simply because I had already run syslog and didn't want to do the same thing twice.

@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 27, 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

4 participants