-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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.service Failed with result 'start-limit-hit'. #33931
Comments
Please upgrade to machine 0.12.1 to work with 17.06. You can verify this by tailing the docker logs |
Closing, because this is an issue with docker machine, not docker itself, and should be resolved. Feel free to continue the conversation after I closed |
docker-machine is not installed on my computer, I'm using ubuntu 17.04 and have the same problem after upgrade from docker-ce:amd64 17.05.0 |
@AmplifyDamage check your systemd unit-file; it should have |
@thaJeztah
In a row |
@AmplifyDamage what error message do you get? If you get the same error message, be sure to check you don't have a drop-in / override file somewhere |
@thaJeztah thx a lot. Success. Drop-in file (/etc/systemd/system/docker.service.d/docker.conf) should have |
@thaJeztah I updated my docker-machine as recommended, and I still have this issue. My server is new without prior usage. lsb_release -a
Is it possible docker installation is wrong for Ubuntu? Update confirmed |
@thaJeztah & @cpuguy83 I think we should re-open this. I don't think it is related to docker-machine, but to Docker (17.06.00-ce) installation of Ubuntu. |
@rommik did you manually install or through docker machine? these are the only |
@thaJeztah I did it through docker machine and DigitalOcean Provider. I used the latest version of DM as per @cpuguy83 comment. |
Interesting that on Ubuntu 17.04 the error in the logs is a bit different.
no more start-limit-hit error |
I apologize, it was my fault. I made a typo
and inside it the line is
and it should be
@thaJeztah should this issue be referenced on docker-machine forums? What's the best way to communicate here? |
@rommik yes, please open an issue in the docker-machine issue tracker (https://github.com/docker/machine/issues) if there's no issue yet. It's not something that can be fixed in this repository, so should be tracked there |
I'm experiencing the same issue on
/cc @thaJeztah |
@rogaha anything in the logs? |
@thaJeztah there is nothing there:
|
is |
In case it could be helpful, I faced a similar behavior ( |
I had the same error message once because of an empty |
I got this error with a |
ditto ^ |
FYI, after upgrading packages on one of our Ubuntu16.04 nodes, we also experienced this behavior ... our ExecStart command within /lib/systemd/system/docker.service looked like this:
but Docker refused to start, throwing this error:
Found removing the -H fd:// parameter allowed Docker to start ...
|
Same issue as #33931 (comment) and same fix (removing -H fd:// ). |
What was the fix for this? Experiencing this on a recent build on Xenial. |
@debragail Likely fixing your systemd service config, but check the logs to see whats up... e.g. |
for me it does not work, it started to give problem with last update, to docker 19.03
writing this:
... I am seeing this |
Looks like you have used both devicemapper and overlay2 in the past, and the daemon therefore won't know which storage-driver if should select; that's not a bug, but to prevent it picks the wrong one |
@thaJeztah sorry, I was editing docker.json and not daemon.json, I am really embarassed about it. |
I had the same error because of conflict between
removing the option in one of the files fixed the problem |
Solved. This problem came out after I modified daemon.json. I just removed daemon.json and reboot machine, then docker auto started. |
have the same issue after upgrade systemd from 219-30 to systemd-219-67.el7_7.1.x86_64(reboot machine). the docker start error log:
systemctl status docker
docker version: 18.06.0-ce after comment the value in /usr/lib/systemd/system/docker.service ,the docker can start success. why? |
I met the same issue to moby-engine-18.09.8-2.ce.git0dd43dd.fc31.x86_64 |
Thanks this helped . i was struggling since 2 days. actually i was trying test connection in jenkins but was giving error Connection refused: /IP:2375 i changed from ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock to Incase anybody faces same issues . this might help |
Be really really careful when using |
I had extra comma at the end of json, causing problem. Its working now. |
i have but get thus error |
I just updated docker to the new version In the docker.service file, the socket file is pointed to
Another output of journald command after the (re)-start of docker service:
|
Apparently there was some conflicts of old containers that were running and were stopped/removed... my solution was to do a clean install by removing |
@sereysethy unfortunately the command that systemd suggest to get details (
and/or
( |
Ah, sorry, typical race condition; my comment crossed your comment |
Thank you @thaJeztah for your comment, I am not so sure what was the exact reason, but maybe as you said, a race condition. But how it happened? A race condition of what? |
Oh, ha! Sorry for the confusion; with "race condition" I meant that we posted a comment at the same time 😁 Unfortunately, I can't tell what the reason was for the daemon not starting (without the logs from the time when it failed initially) |
docker.service - Docker Application Container Engine Feb 23 08:10:45 vacker360 systemd[1]: docker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT |
I am getting this error and I tried the above mentioned solutions but those did not work |
@umallik133 Did you check if the logs provide anything useful? See #33931 (comment) |
journalctl -n 500 -xu containerd.service shows this: Feb 23 09:16:52 vacker360 containerd[13557]: time="2021-02-23T09:16:52.907938992Z" level=info msg="starting containerd" revision=894b81a4b802e4eb2a91d1ce216b8817763c29fb version=1.2.6 |
and journalctl -n 500 -xu docker.service gives this: |
Hi, my advise is to try to remove old containers which were corrupted when docker was updated. That was what I did when I encountered that problem. Hope this will help you. |
|
you saved data in containers? you should use volume or saved it in a mounted folder. |
my bad, it is in stored in volume. Just to make it clear, I can simply remove the old containers and use the new one instead right? Thank you for the reply @sereysethy |
Yes you can safely remove stopped containers. In my case I have to actually remove folders of containers in order to get ride of them. |
For BTRFS host flesystem, you might need a kernel update. |
omg so thk u, it worked for me, first time in years of docker that i met that issue... |
If you're adding
|
Provisioning a new node with docker-machine on Digital Ocean.
New node created OK
Docker installed OK
Starting Docker FAILED.
Docker-machine error output:
Docker-machine v
0.10.0, build 76ed2a6
Docker installed on the node version
Docker version 17.06.0-ce, build 02c1d87
systemctl status docker.service log
journalctl -xe log
I have previously installed
v17.03.0-ce
v17.03.1-ce
v17.04.0-ce
v17.05.0-ce
using the same method. This is the first time I install 17.06.0-ce, and first time encounter this issue.
Installation script
UPDATE: July 3, 2017 Downgrading to 17.05.0
ce-0ubuntu-yakkety allows me to restart docker.The text was updated successfully, but these errors were encountered: