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

com.docker.osx.hyperkit failed to start #1475

Closed
jpetazzo opened this issue Mar 27, 2017 · 8 comments
Closed

com.docker.osx.hyperkit failed to start #1475

jpetazzo opened this issue Mar 27, 2017 · 8 comments

Comments

@jpetazzo
Copy link

Expected behavior

D4M starts.

(This is just after resetting D4M to factory defaults; see #1474)

Actual behavior

I see an error dialog saying "com.docker.osx.hyperkit failed to start"

Information

  • Diagnostic ID: E51882D1-961C-499B-96BA-59AFA70EF932

Steps to reproduce the behavior

  • This is reproducible on my machine (i.e. I get that error each time I start D4M)
@avsm
Copy link

avsm commented Mar 27, 2017

Thanks for the bug report! I've looked through the logs and there appears to be a migration issue in the database. The docker-system.log reports:

Docker[com.docker.driver.amd64-linux][42125] <Critical>: Failed to create transaction for field-level upgrade: p9p.MessageRerror{Ename:"No such file or directory"}
Docker[com.docker.osx.hyperkit.linux][42090] <Notice>: Reap com.docker.driver.amd64-linux (pid 42125): exit status 1
Docker[com.docker.osx.hyperkit.linux][42095] <Error>: Failed to watch the com.docker.driver.amd64-linux/state/ directory in the database: 9p: (Invalid_argument
	  "Irmin_git.read: 47084c951695fb85c0858b3a9bf14f2ce0718572 not found")
Docker[com.docker.osxfs][42128] <Error>: Fatal unexpected failure: Database transaction start failed: (Invalid_argument
	  "Irmin_git.read: 47084c951695fb85c0858b3a9bf14f2ce0718572 not found")

I'm investigating where this error came from...

@avsm
Copy link

avsm commented Mar 28, 2017

@jpetazzo We don't have quite enough information in the diagnostics tarball to track down the issue that caused this. If you reset to factory defaults again, does it happen?

We are trying to distinguish between a one-off startup race, and it happening deterministically on every app startup. The latter would be very odd, since the factory reset erases the internal database entirely.

@jpetazzo
Copy link
Author

@avsm unfortunately, I can't reset to factory defaults again: when I try to start D4M, after a few seconds, I get the com.docker.osx.hyperkit.linux failed to start error box, preventing me from going to the preference panel to do a factory reset.

I tried to be very fast, and go immediately to the preference panel while D4M is still starting; the pref panel shows up, but immediately after, I get the following error panel:

image

Error

Failed to retrieve settings values.

failed to get memory setting

It seems to be a modal dialog, preventing me from interacting with the preferences panel.

And a few seconds later, the other error comes back:

image

Let me know if you'd like me to try anything else.

@avsm
Copy link

avsm commented Mar 28, 2017

This definitely sounds like a corrupted database. Could you:

  • Shut down Docker for Mac
  • cd ~/Library/Containers/com.docker.docker/Data
  • mv database database.old
  • cd database.old
  • git log

This will show us what's in the DataKit database. If you restart any time after moving the database directory out of the way, D4Mac should construct fresh state and restart from scratch, hopefully without an error.

@jpetazzo
Copy link
Author

Ayaye!

$ git log
fatal: bad object HEAD

If it's safe (i.e. if that database doesn't contain secrets) I can attach it here; or otherwise send it to you through another channel.

Meanwhile, moving the database out of the way did indeed allow me to restart D4M. Victory! Thanks!

@avsm
Copy link

avsm commented Mar 28, 2017

@jpetazzo great! It seems that it's a one-off startup race since your machine recovered. We can hopefully create a CI test that resets/starts in a tight loop to try to recreate the bug.

The database could potentially contain private information -- I'll send you an out-of-band location to upload it to. Thanks very much for helping track this down, and I'll close this issue for now as there is an active internal issue and this is probably a pretty rare issue.

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

ismith commented Apr 6, 2017

I just had the same problem, same workaround allowed D4M to start.

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