Skip to content

Ubuntu 15.04 vivid can not start docker 1.7.0 #14035

Closed

Description

root@vagrant-ubuntu-vivid-64:/var/lib/docker/devicemapper# service docker status -l
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2015-06-19 07:31:16 UTC; 12s ago
     Docs: https://docs.docker.com
  Process: 6704 ExecStart=/usr/bin/docker -d -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 6704 (code=exited, status=1/FAILURE)

Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: Started Docker Application Container Engine.
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: Starting Docker Application Container Engine...
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 docker[6704]: time="2015-06-19T07:31:16.596667126Z" level=error msg="Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.doc...age-driver-option"
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 docker[6704]: time="2015-06-19T07:31:16.596752652Z" level=error msg="[graphdriver] prior storage driver \"devicemapper\" failed: driver not supported"
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 docker[6704]: time="2015-06-19T07:31:16.596788016Z" level=fatal msg="Error starting daemon: error initializing graphdriver: driver not supported"
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: Unit docker.service entered failed state.
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

I am using vagrant , with ubuntu 15.04

Activity

  1. andrea-spoldi commented on Jun 19, 2015

    @andrea-spoldi

    Same with 14.04 trusty and 3.13.0-29-generic #53-Ubuntu SMP x86_64

  2. unclejack commented on Jun 19, 2015

    @unclejack
    Contributor

    This is why the Docker 1.7.0 daemon isn't starting up:
    Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/cli/#daemon-storage-driver-option

    You were using devicemapper with a statically linked Docker binary. This is known to cause errors of all kinds because devicemapper ends up using a libdevmapper library which isn't linked to udev.

  3. adamwalach commented on Jun 19, 2015

    @adamwalach

    I have the same problem on ubuntu 14.04.02 LTS (on AWS).
    I am using installation script from https://docs.docker.com/installation/ubuntulinux/ (wget -qO- https://get.docker.com/ | sh). Should I use some other installation method? Is this issue connected with running docker on ec2 instance?

  4. jessfraz commented on Jun 19, 2015

    @jessfraz
    Contributor

    can you apt-get install the Linux-image-extras and use aufs you should not be using a static binary with devmapper the error is desired behavior

  5. icecrime commented on Jun 19, 2015

    @icecrime
    Contributor

    Here's the explanation:

    The end result is that your system favors something else that devicemapper, but because /var/lib/docker/devicemapper/ exists, we are trying to use it nevertheless and fail because the binary is statically link.

    In the end, removing /var/lib/docker/devicemapper/ will fix the issue, but I do think we need to patch that.

    Cc @vbatts.

  6. added this to the 1.7.1 milestone on Jun 19, 2015
  7. icecrime commented on Jun 19, 2015

    @icecrime
    Contributor

    FYI I use Docker with overlay on Ubuntu with --storage-driver=overlay, yet mkdir /var/lib/docker/devicemapper && systemctl restart docker was sufficient to reproduce.

    @jfrazelle has a point here: we should never even consider prior storage driver data when I ask for a specific --storage-driver.

  8. vbatts commented on Jun 19, 2015

    @vbatts
    Contributor

    @icecrime we don't need to patch that. This behavior was due to the storage driver guessing feature. There is a flag to override this devicemapper failure for those that need to migrate images before removing the devicemapper driver or specifying another driver. cc @tianon

  9. icecrime commented on Jun 19, 2015

    @icecrime
    Contributor

    @vbatts If not a patch, we probably need docs. Also, don't you agree that in my case --storage-driver=overlay should bypass the election logic entirely?

  10. vbatts commented on Jun 19, 2015

    @vbatts
    Contributor

    Absolutely. That is intentional.
    On Jun 19, 2015 11:02 AM, "Arnaud Porterie" [email protected]
    wrote:

    @vbatts https://github.com/vbatts If not a patch, we probably need
    docs. Also, don't you agree that in my case --storage-driver=overlay
    should bypass the election logic entirely?

    —
    Reply to this email directly or view it on GitHub
    #14035 (comment).

  11. vbatts commented on Jun 19, 2015

    @vbatts
    Contributor

    For users blocked Udev Suppport: false, that need to start their daemon long enough to save or push images, they need to pass their daemon the flag --storage-opt dm.override_udev_sync_check=true.
    It will still complain, but will actually start.

    If this flag is provided then users will still hit #4036 and other issues.

  12. hacklschorsch commented on Jun 19, 2015

    @hacklschorsch

    The script on my ubuntu VM that auto installs security patches (cron-apt) upgraded lxc-docker from 1.5.0 to 1.7.0 last night and now two containers I rely on won't start. Is it safe to downgrade / version pin to 1.5.0 or what would you recommend me to get my containers running again?

  13. jessfraz commented on Jun 19, 2015

    @jessfraz
    Contributor

    Can we help you debug those containers? Are you seeing errors. Also I think
    this should be a new issue then. And I recommend downgrading to 1.6.2 then
    instead

    On Friday, June 19, 2015, Florian Sesser [email protected] wrote:

    The script on my ubuntu VM that auto installs security patches (cron-apt)
    upgraded lxc-docker from 1.5.0 to 1.7.0 last night and now two containers
    I rely on won't start. Is it safe to downgrade / version pin to 1.5.0 or
    what would you recommend me to get my containers running again?

    —
    Reply to this email directly or view it on GitHub
    #14035 (comment).

  14. hacklschorsch commented on Jun 19, 2015

    @hacklschorsch

    I get pretty much @netroby s output, only my device mapper is version 4.28.0. I'm running Ubuntu 14.04.2 LTS.

  15. 60 remaining items

  16. vagifverdi commented on Jul 2, 2015

    @vagifverdi

    @viranch I used your script and it complied and installed dynamically linked docker.
    But now when i try to start it i get this error:
    Failed to start docker.service: Unit docker.socket failed to load: No such file or directory.

    I checked the docker.service file and it does mention that docker requires docker.socket.
    I restarted vm, still same error on trying to start docker.
    Perhaps i'm missing something?

    I am able though to start docker manually (docker -d) just without -H fd:// part.

  17. viranch commented on Jul 4, 2015

    @viranch

    @vagifverdi apologies, my gist is for ubuntu 14.04, might not work with systemd.

  18. baptistedonaux commented on Jul 8, 2015

    @baptistedonaux

    @vbatts Thanks ! Solution describes works for me !

  19. cu commented on Jul 8, 2015

    @cu

    I installed docker 1.5.0 on debian jessie from the get.docker.com repository via apt-get. Today, I upgraded to docker 1.7.0 via apt-get and I get the error noted above when attempting to start the docker service.

    I appreciate that docker is open source and all but reading through this thread, I get the impression that the docker folks don't really care about breaking people's production servers via what should have been a trivial upgrade. I don't know much about docker internals and didn't know I would be expected to in order to use docker. I don't know what a graphdriver is and I certainly did not chose one over any other when installing docker initially. If the previous configuration was unreliable or broken in some way, why was it ever used in the first place? There was not even so much as a mention of this in the either the release notes or the changelog. Even for an open source project, this is frankly quite unacceptable and speaks of poor QA, release management and leadership.

    I downgraded to 1.6.2 via instructions found above and my configuration is working again. Looking forward to a fix for this in 1.7.1.

  20. caarlos0 commented on Jul 23, 2015

    @caarlos0
    Contributor

    I did mv /var/lib/docker{,old} and this fixed the problem

  21. jchannon commented on Jul 27, 2015

    @jchannon

    Thanks @caarlos0

  22. thaJeztah commented on Jul 27, 2015

    @thaJeztah
    Member

    In case you missed it; For those looking for dynamically linked binaries; official APT/YUM repositories are now live, and docker 1.7.1 can installed from that repository. Instructions and more information can be found in the blog post here: http://blog.docker.com/2015/07/new-apt-and-yum-repos/

  23. pjv commented on Jul 31, 2015

    @pjv

    hey @viranch, have you converted from the compiled 1.7.0 docker you set up in your gist to the new dynamic binary apt repo for 1.7.1? if so, did you happen to note the steps you took to do so?

  24. viranch commented on Aug 1, 2015

    @viranch

    @thaJeztah awesome!

    @pjv I just upgraded to 1.7.1, and a simple curl -sSL https://get.docker.com/ | sh works without any extra effort. By "works" I mean, you don't lose your containers and get the upgraded docker engine to choose devicemapper as the storage driver (because there are containers that use it, I think) as opposed to the default aufs :)

    EDIT: I did all of this on Ubuntu 14.04.

    EDIT 2: Running curl -sSL https://get.docker.com/ | sh will throw a Warning: the "docker" command appears to already exist on this system., simply ignore and let it continue.

  25. thaJeztah commented on Aug 1, 2015

    @thaJeztah
    Member

    @viranch be aware that the default devicemapper configuration is not intended for production use. The default settings are the "just works" configuration, but quite bad from a performance perspective. Tweaking those settings cannot be done automatically, because they depend on your use-case; One of the reasons AUFS is used as the default on Ubuntu (on a clean install)

  26. viranch commented on Aug 1, 2015

    @viranch

    @thaJeztah I'm aware. Thanks for the heads up.

    How feasible would it be to implement the feature of being able to select the storage driver per container in docker engine? That way older systems can move away from devicemapper more easily. Can the docker engine be run with AUFS but fallbacks to legacy storage driver for existing containers that use it and any new containers use AUFS?

  27. thaJeztah commented on Aug 1, 2015

    @thaJeztah
    Member

    @viranch I actually think I saw @rhvgoyal playing with that though on another PR; it may be technically possible, but it's not something with a high priority at the moment (at least, not something that's been actively worked on afaik)

  28. FelikZ commented on Oct 30, 2015

    @FelikZ

    @fjmk thanks, aufs and removing devicemapper helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions