Docker/ Docker-CE error on fresh install

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Docker/ Docker-CE error on enabling and setting Base path

      I installed docker plugin on a fresh OMV 4.x install, when i go to enable it,or do anything else in the plugin I get this message:
      Display Spoiler
      Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'docker' 2>&1' with exit code '1': Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.

      Error #0:exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'docker' 2>&1' with exit code '1': Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.' in /usr/share/php/openmediavault/system/process.inc:175Stack trace:#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)#1 /usr/share/php/openmediavault/system/systemctl.inc(146): OMV\System\SystemCtl->exec('start', NULL, false)#2 /usr/share/omvdocker/Utils.php(108): OMV\System\SystemCtl->start()#3 /usr/share/omvdocker/Utils.php(645): OMVModuleDockerUtil::startDockerService()#4 /usr/share/openmediavault/engined/rpc/docker.inc(1205): OMVModuleDockerUtil::changeDockerSettings(Array, 42005, '/srv/cb0a70e8-4...')#5 [internal function]: OMVRpcServiceDocker->setSettings(Array, Array)#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setSettings', Array, Array)#8 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'setSettings', Array, Array, 1)#9 {main}


      Running 'systemctl status docker.service' gives this output:

      Display Spoiler
      root@nas:~# systemctl status docker.service
      ● docker.service - Docker Application Container Engine
      Loaded: loaded (/lib/systemd/system/docker.service; enabled)
      Drop-In: /etc/systemd/system/docker.service.d
      └─openmediavault.conf
      Active: failed (Result: start-limit) since Sat 2018-03-17 23:42:19 EDT; 24s ago
      Docs: docs.docker.com
      Process: 7942 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS $OMVDOCKER_API $OMVDOCKER_IMAGE_PATH (code=exited, status=1/FAILURE)
      Main PID: 7942 (code=exited, status=1/FAILURE)

      Mar 17 23:42:19 nas systemd[1]: Failed to start Docker Application Container Engine.
      Mar 17 23:42:19 nas systemd[1]: Unit docker.service entered failed state.
      Mar 17 23:42:19 nas systemd[1]: docker.service holdoff time over, scheduling restart.
      Mar 17 23:42:19 nas systemd[1]: Stopping Docker Application Container Engine...
      Mar 17 23:42:19 nas systemd[1]: Starting Docker Application Container Engine...
      Mar 17 23:42:19 nas systemd[1]: docker.service start request repeated too quickly, refusing to start.
      Mar 17 23:42:19 nas systemd[1]: Failed to start Docker Application Container Engine.
      Mar 17 23:42:19 nas systemd[1]: Unit docker.service entered failed state.
      root@nas:~#



      Relevant portions of SYSlog:
      Display Spoiler
      Mar 18 15:48:44 nas systemd[1]: Starting Docker Socket for the API.
      Mar 18 15:48:44 nas systemd[1]: Listening on Docker Socket for the API.
      Mar 18 15:48:44 nas systemd[1]: Starting Docker Application Container Engine...
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="The \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44.339665787-04:00" level=warning msg="[!] DON'T BIND ON ANY IP ADDRESS WITHOUT setting --tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING [!]"
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44.340789680-04:00" level=info msg="libcontainerd: started new docker-containerd process" pid=5048
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="starting containerd" module=containerd revision=9b55aab90508bd389d7654c4baf173a981477d55 version=v1.0.1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.content.v1.content"..." module=containerd type=io.containerd.content.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." module=containerd type=io.containerd.snapshotter.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/docker/openmediavault/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="could not use snapshotter btrfs in metadata plugin" error="path /var/lib/docker/openmediavault/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module="containerd/io.containerd.metadata.v1.bolt"
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="failed to load plugin io.containerd.metadata.v1.bolt" error="no such device" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." module=containerd type=io.containerd.differ.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="failed to load plugin io.containerd.differ.v1.walking" error="no such device" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." module=containerd type=io.containerd.gc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="failed to load plugin io.containerd.gc.v1.scheduler" error="no such device" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." module=containerd type=io.containerd.grpc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="failed to load plugin io.containerd.grpc.v1.diff" error="could not load required differ due plugin init error: walking: no such device" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." module=containerd type=io.containerd.grpc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." module=containerd type=io.containerd.grpc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." module=containerd type=io.containerd.grpc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=warning msg="failed to load plugin io.containerd.grpc.v1.images" error="no such device" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." module=containerd type=io.containerd.grpc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." module=containerd type=io.containerd.grpc.v1
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd-debug.sock" module="containerd/debug"
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd.sock" module="containerd/grpc"
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44-04:00" level=info msg="containerd successfully booted in 0.010345s" module=containerd
      Mar 18 15:48:44 nas dockerd[5041]: time="2018-03-18T15:48:44.392514704-04:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
      Mar 18 15:48:44 nas dockerd[5041]: Error starting daemon: error while opening volume store metadata database: no such device
      Mar 18 15:48:44 nas systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
      Mar 18 15:48:44 nas systemd[1]: Failed to start Docker Application Container Engine.
      Mar 18 15:48:44 nas systemd[1]: docker.service: Unit entered failed state.
      Mar 18 15:48:44 nas systemd[1]: docker.service: Failed with result 'exit-code'.
      Mar 18 15:48:44 nas systemd[1]: docker.service: Service hold-off time over, scheduling restart.
      Mar 18 15:48:44 nas systemd[1]: Stopped Docker Application Container Engine.
      Mar 18 15:48:44 nas systemd[1]: Closed Docker Socket for the API.
      Mar 18 15:48:44 nas systemd[1]: Stopping Docker Socket for the API.




      I think this line may be the most informative:

      Mar 18 15:48:44 nas dockerd[5041]: Error starting daemon: error while opening volume store metadata database: no such device

      Not sure where that path is set though...
      Ive also tried the docker-ce plugin as well and gotten the same error :(. Any help would be greatly appreciated!



      Ive also gotten the exact same result on a fresh OMV 3.x install...

      The post was edited 3 times, last by mike390: Tried a 4.x install, same result ().