error message: Failed to execute XPath query '/config/services/docker'.

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

    • error message: Failed to execute XPath query '/config/services/docker'.

      after installing docker repo and openmediavault-docker-gui 3.18 and selecing 'docker' in services, I get the error message Failed to execute XPath query '/config/services/docker', which provides the following details

      Source Code

      1. Error #0:
      2. exception 'OMV\Config\DatabaseException' with message 'Failed to execute XPath query '/config/services/docker'.' in /usr/share/php/openmediavault/config/database.inc:78
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/config/database.inc(96): OMV\Config\Database->get('conf.service.do...', NULL)
      5. #1 /usr/share/openmediavault/engined/rpc/docker.inc(1352): OMV\Config\Database->getAssoc('conf.service.do...')
      6. #2 [internal function]: OMVRpcServiceDocker->getDockerRepo(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      8. #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getDockerRepo', Array, Array)
      9. #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'getDockerRepo', Array, Array, 1)
      10. #6 {main}
      also, the docker ce repo would not install so I went with docker

      any advice to fix this is appreciated
    • Hi - thanks for the support

      I'm still getting errors:

      apt-get purge openmediavault-docker-gui

      Source Code

      1. Reading package lists... Done
      2. Building dependency tree
      3. Reading state information... Done
      4. The following packages were automatically installed and are no longer required:
      5. docker-engine imagemagick-common libfftw3-double3 liblcms2-2 liblqr-1-0
      6. libmagickcore-6.q16-2 libmagickwand-6.q16-2 omvextras-common
      7. php-symfony-class-loader php5-curl php5-imagick
      8. Use 'apt-get autoremove' to remove them.
      9. The following packages will be REMOVED:
      10. openmediavault-docker-gui*
      11. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      12. 2 not fully installed or removed.
      13. After this operation, 446 kB disk space will be freed.
      14. Do you want to continue? [Y/n] Y
      15. (Reading database ... 45134 files and directories currently installed.)
      16. Removing openmediavault-docker-gui (3.1.8) ...
      17. Purging configuration files for openmediavault-docker-gui (3.1.8) ...
      18. Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
      19. dpkg: error processing package openmediavault-docker-gui (--purge):
      20. subprocess installed post-removal script returned error exit status 1
      21. Processing triggers for openmediavault (3.0.95) ...
      22. Restarting engine daemon ...
      23. Errors were encountered while processing:
      24. openmediavault-docker-gui
      25. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All

      apt-get install openmediavault-docker-gui :

      Source Code

      1. Reading package lists... Done
      2. Building dependency tree
      3. Reading state information... Done
      4. The following extra packages will be installed:
      5. docker-engine imagemagick-common libfftw3-double3 liblcms2-2 liblqr-1-0
      6. libmagickcore-6.q16-2 libmagickwand-6.q16-2 omvextras-common
      7. php-symfony-class-loader php5-curl php5-imagick
      8. Suggested packages:
      9. libfftw3-bin libfftw3-dev liblcms2-utils libmagickcore-6.q16-2-extra
      10. Recommended packages:
      11. aufs-tools cgroupfs-mount cgroup-lite ghostscript gsfonts ttf-dejavu-core
      12. The following NEW packages will be installed:
      13. docker-engine imagemagick-common libfftw3-double3 liblcms2-2 liblqr-1-0
      14. libmagickcore-6.q16-2 libmagickwand-6.q16-2 omvextras-common
      15. openmediavault-docker-gui php-symfony-class-loader php5-curl php5-imagick
      16. 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
      17. Need to get 0 B/19.4 MB of archives.
      18. After this operation, 91.4 MB of additional disk space will be used.
      19. Do you want to continue? [Y/n] Y
      20. Selecting previously unselected package imagemagick-common.
      21. (Reading database ... 44510 files and directories currently installed.)
      22. Preparing to unpack .../imagemagick-common_8%3a6.8.9.9-5+deb8u11_all.deb ...
      23. Unpacking imagemagick-common (8:6.8.9.9-5+deb8u11) ...
      24. Selecting previously unselected package libfftw3-double3:armhf.
      25. Preparing to unpack .../libfftw3-double3_3.3.4-2_armhf.deb ...
      26. Unpacking libfftw3-double3:armhf (3.3.4-2) ...
      27. Selecting previously unselected package liblcms2-2:armhf.
      28. Preparing to unpack .../liblcms2-2_2.6-3+deb8u1_armhf.deb ...
      29. Unpacking liblcms2-2:armhf (2.6-3+deb8u1) ...
      30. Selecting previously unselected package liblqr-1-0:armhf.
      31. Preparing to unpack .../liblqr-1-0_0.4.2-2_armhf.deb ...
      32. Unpacking liblqr-1-0:armhf (0.4.2-2) ...
      33. Selecting previously unselected package libmagickcore-6.q16-2:armhf.
      34. Preparing to unpack .../libmagickcore-6.q16-2_8%3a6.8.9.9-5+deb8u11_armhf.deb ...
      35. Unpacking libmagickcore-6.q16-2:armhf (8:6.8.9.9-5+deb8u11) ...
      36. Selecting previously unselected package libmagickwand-6.q16-2:armhf.
      37. Preparing to unpack .../libmagickwand-6.q16-2_8%3a6.8.9.9-5+deb8u11_armhf.deb ...
      38. Unpacking libmagickwand-6.q16-2:armhf (8:6.8.9.9-5+deb8u11) ...
      39. Selecting previously unselected package docker-engine.
      40. Preparing to unpack .../docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb ...
      41. Unpacking docker-engine (17.05.0~ce-0~debian-jessie) ...
      42. Selecting previously unselected package php-symfony-class-loader.
      43. Preparing to unpack .../php-symfony-class-loader_2.3.21+dfsg-4+deb8u3_all.deb ...
      44. Unpacking php-symfony-class-loader (2.3.21+dfsg-4+deb8u3) ...
      45. Selecting previously unselected package omvextras-common.
      46. Preparing to unpack .../omvextras-common_3.0.1_all.deb ...
      47. Unpacking omvextras-common (3.0.1) ...
      48. Selecting previously unselected package php5-curl.
      49. Preparing to unpack .../php5-curl_5.6.30+dfsg-0+deb8u1_armhf.deb ...
      50. Unpacking php5-curl (5.6.30+dfsg-0+deb8u1) ...
      51. Selecting previously unselected package php5-imagick.
      52. Preparing to unpack .../php5-imagick_3.2.0~rc1-1_armhf.deb ...
      53. Unpacking php5-imagick (3.2.0~rc1-1) ...
      54. Selecting previously unselected package openmediavault-docker-gui.
      55. Preparing to unpack .../openmediavault-docker-gui_3.1.8_armhf.deb ...
      56. Unpacking openmediavault-docker-gui (3.1.8) ...
      57. Processing triggers for systemd (215-17+deb8u7) ...
      58. Processing triggers for man-db (2.7.0.2-5) ...
      59. Processing triggers for openmediavault (3.0.95) ...
      60. Restarting engine daemon ...
      61. Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...
      62. Setting up imagemagick-common (8:6.8.9.9-5+deb8u11) ...
      63. Setting up libfftw3-double3:armhf (3.3.4-2) ...
      64. Setting up liblcms2-2:armhf (2.6-3+deb8u1) ...
      65. Setting up liblqr-1-0:armhf (0.4.2-2) ...
      66. Setting up libmagickcore-6.q16-2:armhf (8:6.8.9.9-5+deb8u11) ...
      67. Setting up libmagickwand-6.q16-2:armhf (8:6.8.9.9-5+deb8u11) ...
      68. Setting up docker-engine (17.05.0~ce-0~debian-jessie) ...
      69. Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
      70. invoke-rc.d: initscript docker, action "start" failed.
      71. dpkg: error processing package docker-engine (--configure):
      72. subprocess installed post-installation script returned error exit status 1
      73. Setting up php-symfony-class-loader (2.3.21+dfsg-4+deb8u3) ...
      74. Setting up omvextras-common (3.0.1) ...
      75. Setting up php5-curl (5.6.30+dfsg-0+deb8u1) ...
      76. php5_invoke: Enable module curl for cgi SAPI
      77. php5_invoke: Enable module curl for fpm SAPI
      78. php5_invoke: Enable module curl for cli SAPI
      79. Setting up php5-imagick (3.2.0~rc1-1) ...
      80. php5_invoke: Enable module imagick for cgi SAPI
      81. php5_invoke: Enable module imagick for fpm SAPI
      82. php5_invoke: Enable module imagick for cli SAPI
      83. dpkg: dependency problems prevent configuration of openmediavault-docker-gui:
      84. openmediavault-docker-gui depends on docker-engine (>= 1.10); however:
      85. Package docker-engine is not configured yet.
      86. dpkg: error processing package openmediavault-docker-gui (--configure):
      87. dependency problems - leaving unconfigured
      88. Processing triggers for libc-bin (2.19-18+deb8u10) ...
      89. Processing triggers for openmediavault (3.0.95) ...
      90. Updating file permissions ...
      91. Purging internal cache ...
      92. Restarting engine daemon ...
      93. Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...
      94. Errors were encountered while processing:
      95. docker-engine
      96. openmediavault-docker-gui
      97. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
      following the advice "Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details."


      Source Code

      1. â docker.service - Docker Application Container Engine
      2. Loaded: loaded (/lib/systemd/system/docker.service; enabled)
      3. Active: failed (Result: start-limit) since Mon 2018-01-01 05:26:25 CST; 1min 31s ago
      4. Docs: https://docs.docker.com
      5. Process: 1819 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      6. Main PID: 1819 (code=exited, status=1/FAILURE)
      7. Jan 01 05:26:25 raspi-docker systemd[1]: Failed to start Docker Application Container Engine.
      8. Jan 01 05:26:25 raspi-docker systemd[1]: Unit docker.service entered failed state.
      9. Jan 01 05:26:25 raspi-docker systemd[1]: docker.service holdoff time over, scheduling restart.
      10. Jan 01 05:26:25 raspi-docker systemd[1]: Stopping Docker Application Container Engine...
      11. Jan 01 05:26:25 raspi-docker systemd[1]: Starting Docker Application Container Engine...
      12. Jan 01 05:26:25 raspi-docker systemd[1]: docker.service start request repeated too quickly, refusing to start.
      13. Jan 01 05:26:25 raspi-docker systemd[1]: Failed to start Docker Application Container Engine.
      14. Jan 01 05:26:25 raspi-docker systemd[1]: Unit docker.service entered failed state.
      15. $ sudo journalctl -xn
      16. -- Logs begin at Sun 2017-12-31 04:59:50 CST, end at Mon 2018-01-01 05:30:24 CST. --
      17. Jan 01 05:29:01 raspi-docker cron[1077]: Authentication token is no longer valid; new one required
      18. Jan 01 05:29:01 raspi-docker CRON[2038]: Authentication token is no longer valid; new one required
      19. Jan 01 05:30:01 raspi-docker CRON[2060]: pam_unix(cron:account): expired password for user root (root enforced)
      20. Jan 01 05:30:01 raspi-docker cron[1077]: Authentication token is no longer valid; new one required
      21. Jan 01 05:30:01 raspi-docker CRON[2060]: Authentication token is no longer valid; new one required
      22. Jan 01 05:30:01 raspi-docker CRON[2061]: pam_unix(cron:account): expired password for user root (root enforced)
      23. Jan 01 05:30:01 raspi-docker cron[1077]: Authentication token is no longer valid; new one required
      24. Jan 01 05:30:01 raspi-docker CRON[2061]: Authentication token is no longer valid; new one required
      25. Jan 01 05:30:24 raspi-docker sudo[2073]: xuser : TTY=pts/0 ; PWD=/home/xuser ; USER=root ; COMMAND=/bin/journalctl
      26. Jan 01 05:30:24 raspi-docker sudo[2073]: pam_unix(sudo:session): session opened for user root by xuser(uid=0)
      27. $
      Display All
      again, your help is appreciated
    • Is this a new install ? If so can you please then test omv4. Is failing at postrm and postinst because docker daemon is unable to start. My guess is trying to use aufs driver which is no longer available in the kernel. I don’t have time to test this in a rpi atm.

      Can you please check kernel version

      uname -r
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • correct, I couldn't install v4 so did a fresh install of v3, this time paying better attention to the instructions found here forum.openmediavault.org/index.php/Thread/18991

      happy to report that docker works, was able to install and execute the helloworld container so we should consider this thread solved.

      want to use the docker feature to install a SAP HANA express edition container store.docker.com/images/sap-hana-express-edition

      it installed ok from the cli, but would not execute, exiting with: standard_init_linux.go:178: exec user process caused "exec format error"

      Which seems to indicate that it won't run on this processor
    • Subzero,
      I had same original message 'Failed to execute XPath query '/config/services/docker'.' I downloaded omv v4 latest for HC1 and HC2 Odroid. about a week ago.

      when I log into server it gives me pop up messages continuously.
      when I access from laptop, 1/2 the time it takes the password. 1/2 the time it doesn't. I use same password as I typed it onto Notepad immediately after creating it when setting up A User.

      I have qty 2 hc1s running. only 1st one giving trouble. odd I was able to copy data to 1st one giving trouble one time from laptop last week. Also it loses connectkon with a red X.
      that is when it doesn't accept password right off. but eventually after a couple trys. it stays connected for about 2 days.

      I am a total NEWBIE. so if there are any commands, I need to learn where to load them in OMV and steps afterwards.

      humbly ,

      Alton