-
Notifications
You must be signed in to change notification settings - Fork 86
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
Devicemapper: Can't set cookie dm_task_set_cookie failed #85
Comments
Same issue on few containers |
label: area/storage |
I got the same error on an AWS instance running CentOS 7.3.1611 and docker version 17.06.1-ce. |
Any progress on this front? We ran into same (miss) behavior. |
This PR docker-archive/docker-ce#200 is likely related and is targeted for 17.06.2 |
@Johnnei what is the ETA for 17.06.2? |
@rom-stratoscale I wish I knew |
For a temporary work around until Docker fixes this, there are two ways to fix the issue. If you want to keep using your existing server: Background info:
$ echo 'y' | sudo dmsetup udevcomplete_all
If you have the ability to destroy your server and start anew, you will be able to install Docker 17.06.1 without any problems on a fresh Centos 7 running 3.10.0. The issue only appears when you upgrade an existing server from Docker 13 to Docker 17. If you cannot wipe out your server and start anew, however, upgrading the Kernel fixes the issue. |
There is one more temporary solution - to increase semaphore limits (whatever that really means) by executing this command:
The last number is the limit. I tried first with 100 and docker worked few days fine, increasing number to 300 gave it 1-2 weeks of life. I think it depends on how often you destroy/restart containers. When you get that error again, just do I would put that semaphor limit to 10k, but don't really know how it affects the system except that it temporary solves the issue. |
A slightly better solution that worked for me was to switch to aufs (or overlay) instead of devicemapper (https://docs.docker.com/engine/userguide/storagedriver/selectadriver/#check-and-set-your-current-storage-driver). This is assuming that you're fine with moving away from devicemapper. However, doing this will clear all the images. |
This should be resolved in docker 17.06.2; https://github.com/docker/docker-ce/releases/tag/v17.06.2-ce;
I'm closing this issue because it should be resolved, but feel free to comment if you're still running into this on docker 17.06.2 or above |
I have just hit the same issue on the current version of Docker and I didn't have this problem yesterday. Docker version 18.06.0-ce, build 0ffa825
|
More details can be found in: kubevirt/kubevirt#321
Expected behavior
Containers should start properly.
Actual behavior
Sometimes start tasks fail with the following error:
devmapper: Error activating devmapper device for '0a1bbd565d4619df84af2f06c85fe4dbda24fa0aecb4bd8ee7689f0238113ac2-init': devicemapper: Can't set cookie dm_task_set_cookie failed
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
I'm seeing this issue when attempting to launch a service in docker swarm on CentOS 7 using devicemapper storage driver on Docker CE 17.06.1.
docker service ps tenant1_rabbitmq
Each one of the failed tasks have an error like
devmapper: Error activating devmapper device for '0a1bbd565d4619df84af2f06c85fe4dbda24fa0aecb4bd8ee7689f0238113ac2-init': devicemapper: Can't set cookie dm_task_set_cookie failed
.The text was updated successfully, but these errors were encountered: