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
Error reading X509 key pair (...) crypto/tls: private key does not match public key #14317
Comments
Where did that |
It's a fresh DO droplet created and provisioned by docker-machine. As I believe docker-machine uses the official way to install Docker: |
I would recommend opening a ticket over on the docker machine issue tracker. It is the one responsible for generating those key files. |
Indeed the docker machine is responsible for the initial setup, but the precise problem is the daemon worked for a few days, then logged these error messages, and then worked another handful of days without a notice. Do you still think I need to duplicate this issue to the docker machine issue tracker? |
If you're saying the docker daemon randomly restarts, throws this error a few times when trying to start, and then all of a sudden starts up fine, all without human interaction, then you likely have something running on the box which is causing these problems. Likely this thing that is running (perhaps the docker machine provisioning process) is regenerating the server keys, and every time docker fails to start, it's because it reads the keys in the middle of them being being regenerated. But in any case, I don't think docker is the issue here (the code generating that error is part of the golang standard library. The chances of it being broken are pretty low). I can't say for sure it's docker machine, but it is a possibility. |
Looks like it is possible the certs were re-generated:
Timestamp is indeed changed a week after the droplet was created. Adding an issue to the machine tracker too. Thanks! |
Closing this as it seems to be tracked in Machine, and doesn't indeed point to a Docker Engine issue. Thanks! |
Description of problem:
Weird error log messages from a running Docker daemon.
docker version
:docker info
:uname -a
:Environment details (AWS, VirtualBox, physical, etc.):
A DigitalOcean droplet created and provided by docker-machine v0.2.0 on 22.06.2015
Droplet details: 2GB Ram 30GB SSD Disk Amsterdam 3 Ubuntu 14.04 x64
How reproducible:
Stop docker daemon using Upstart with
stop docker
or wait for the daemon to unexpectedly shutdown itself (a subject to another issue), then check out /var/log/upstart/docker.logSteps to Reproduce:
Actual Results:
Lots of weird errors reported including few of this:
Expected Results:
No errors :)
Additional info:
Full log from
/var/log/upstart/docker.log
: https://gist.github.com/kung-fu-tzu/49cb28698a93064d79cbThe text was updated successfully, but these errors were encountered: