OMV Rpi old images / OMV docker installation fails

    • OMV 4.x
    • Resolved
    • OMV Rpi old images / OMV docker installation fails

      Hi,

      (Sorry for duplicating thread but i think i posted in the wrong section)

      i installed the new rpi omv image but i keep getting errors duringinstallation. every time i setup docker the installation gives out anerror and i keep getting this notification:


      Failed to execute XPath query '/config/services/docker'.


      Before i got my installation got currupted i had OMV 3.x and everything worked right. I found an image but evertime i flash the system updates itself to 4.x before i can do anything! What am i doing wrong?
      I flash with Etcher.


      Thanks for the support
    • OMV3 is End Of Life (EOL). OMV4 works on the RPi.

      Make sure to follow the hints here: New approach for Raspberry Pi OMV images
      and on the download page of the image.

      Do you get this error when installing docker gui or when starting a container?
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:
    • Which docker repo did you enable in omv-extras? Has to be the docker ce repo.

      Edit: docker ce seems to be the only docker repo; used to be different
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:

      The post was edited 1 time, last by macom ().

    • Installing i get this errors after some unpacking

      Source Code

      1. Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /lib/systemd/system/docker.service.
      2. Created symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.
      3. Job for docker.service failed because the control process exited with error code.
      4. See "systemctl status docker.service" and "journalctl -xe" for details.
      5. invoke-rc.d: initscript docker, action "start" failed.
      6. * docker.service - Docker Application Container Engine
      7. Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      8. Active: activating (auto-restart) (Result: exit-code) since Sun 2018-10-28 16:29:30 UTC; 30ms ago
      9. Docs: https://docs.docker.com
      10. Process: 15786 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      11. Main PID: 15786 (code=exited, status=1/FAILURE)
      12. CPU: 666ms
      13. Oct 28 16:29:30 raspberrypi systemd[1]: docker.service: Unit entered failed …te.
      14. Oct 28 16:29:30 raspberrypi systemd[1]: docker.service: Failed with result '…e'.
      15. Hint: Some lines were ellipsized, use -l to show in full.
      16. dpkg: error processing package docker-ce (--configure):
      17. subprocess installed post-installation script returned error exit status 1
      18. dpkg: dependency problems prevent configuration of openmediavault-docker-gui:
      19. openmediavault-docker-gui depends on docker-ce; however:
      20. Package docker-ce is not configured yet.
      21. dpkg: error processing package openmediavault-docker-gui (--configure):
      22. dependency problems - leaving unconfigured
      23. Setting up libopenjp2-7:armhf (2.1.2-1.1+deb9u2) ...
      24. Setting up liblcms2-2:armhf (2.8-4+deb9u1) ...
      25. Setting up php7.0-curl (7.0.30-0+deb9u1) ...
      26. Creating config file /etc/php/7.0/mods-available/curl.ini with new version
      27. Setting up libfftw3-double3:armhf (3.3.5-3) ...
      28. Processing triggers for php7.0-fpm (7.0.30-0+deb9u1) ...
      29. >>> *************** Error ***************
      30. Bad Gateway
      31. <<< *************************************
      32. Setting up liblqr-1-0:armhf (0.4.2-2+b2) ...
      33. Processing triggers for libc-bin (2.24-11+deb9u3) ...
      34. Setting up php-symfony-polyfill-apcu (1.2.0-1) ...
      35. Processing triggers for systemd (232-25+deb9u4) ...
      36. Processing triggers for man-db (2.7.6.1-2) ...
      37. Processing triggers for openmediavault (4.1.12) ...
      38. Restarting engine daemon ...
      39. Setting up libmagickcore-6.q16-3:armhf (8:6.9.7.4+dfsg-11+deb9u6) ...
      40. Setting up php-curl (1:7.0+49) ...
      41. Setting up php-symfony-class-loader (2.8.7+dfsg-1.3+deb9u1) ...
      42. Setting up libmagickwand-6.q16-3:armhf (8:6.9.7.4+dfsg-11+deb9u6) ...
      43. Setting up omvextras-common (4.0.1) ...
      44. Setting up php-imagick (3.4.3~rc2-2) ...
      45. Processing triggers for libc-bin (2.24-11+deb9u3) ...
      46. Processing triggers for openmediavault (4.1.12) ...
      47. Updating file permissions ...
      48. Purging internal cache ...
      49. Restarting engine daemon ...
      50. Errors were encountered while processing:
      51. docker-ce
      52. openmediavault-docker-gui
      Display All

      Then i get the error mentioned above. I installed from Docker CE like you said
    • Output of uname -a
      Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/
      Linux

      Output of dpkg -l | grep openmedia
      ii openmediavault 4.1.12 all openmediavault - The open network attached storage solution
      iU openmediavault-docker-gui 4.0.1 all OpenMediaVault plugin for Docker
      ii openmediavault-flashmemory 4.1 all folder2ram plugin for OpenMediaVault
      ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      ii openmediavault-netatalk 4.0.7-1 all OpenMediaVault netatalk (AppleTalk Protocol Suite) plugin
      ii openmediavault-omvextrasorg 4.1.11 all OMV-Extras.org Package Repositories for OpenMediaVault

      (thanks for the help btw)
    • this is what i get from apt-get install -f

      Source Code

      1. Reading package lists... Done
      2. Building dependency tree
      3. Reading state information... Done
      4. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      5. 2 not fully installed or removed.
      6. After this operation, 0 B of additional disk space will be used.
      7. Setting up docker-ce (18.06.1~ce~3-0~debian) ...
      8. Job for docker.service failed because the control process exited with error code.
      9. See "systemctl status docker.service" and "journalctl -xe" for details.
      10. invoke-rc.d: initscript docker, action "start" failed.
      11. ● docker.service - Docker Application Container Engine
      12. Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      13. Active: activating (auto-restart) (Result: exit-code) since Sun 2018-10-28 16:56:42 UTC; 28ms ago
      14. Docs: https://docs.docker.com
      15. Process: 19206 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      16. Main PID: 19206 (code=exited, status=1/FAILURE)
      17. CPU: 650ms
      18. Oct 28 16:56:42 raspberrypi systemd[1]: docker.service: Unit entered failed state.
      19. Oct 28 16:56:42 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
      20. dpkg: error processing package docker-ce (--configure):
      21. subprocess installed post-installation script returned error exit status 1
      22. dpkg: dependency problems prevent configuration of openmediavault-docker-gui:
      23. openmediavault-docker-gui depends on docker-ce; however:
      24. Package docker-ce is not configured yet.
      25. dpkg: error processing package openmediavault-docker-gui (--configure):
      26. dependency problems - leaving unconfigured
      27. Errors were encountered while processing:
      28. docker-ce
      29. openmediavault-docker-gui
      30. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
    • I can add also that the error i got in the first post does show this details:

      Source Code

      1. Errore #0:
      2. OMV\Config\DatabaseException: Failed to execute XPath query '/config/services/docker'. in /usr/share/php/openmediavault/config/database.inc:78
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/module/docker.inc(45): OMV\Config\Database->get('conf.service.do...')
      5. #1 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModuleDocker->getStatus()
      6. #2 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      8. #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      9. #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      10. #6 {main}
      I already tried reflashing and trying again a couple times and i get stuck in this exact point every time
    • i already tried that and it gives me an error. i tried now again after retaking all the steps and this is what i get from purge:

      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-ce imagemagick-6-common libfftw3-double3 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 omvextras-common php-curl php-imagick
      6. php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl
      7. Use 'apt autoremove' to remove them.
      8. The following packages will be REMOVED:
      9. openmediavault-docker-gui*
      10. 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
      11. 2 not fully installed or removed.
      12. After this operation, 571 kB disk space will be freed.
      13. Do you want to continue? [Y/n] y
      14. (Reading database ... 52059 files and directories currently installed.)
      15. Removing openmediavault-docker-gui (4.0.1) ...
      16. Setting up docker-ce (18.06.1~ce~3-0~debian) ...
      17. Job for docker.service failed because the control process exited with error code.
      18. See "systemctl status docker.service" and "journalctl -xe" for details.
      19. invoke-rc.d: initscript docker, action "start" failed.
      20. ● docker.service - Docker Application Container Engine
      21. Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      22. Active: activating (auto-restart) (Result: exit-code) since Sun 2018-10-28 17:07:47 UTC; 31ms ago
      23. Docs: https://docs.docker.com
      24. Process: 20195 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      25. Main PID: 20195 (code=exited, status=1/FAILURE)
      26. CPU: 667ms
      27. Oct 28 17:07:47 raspberrypi systemd[1]: Failed to start Docker Application Container Engine.
      28. Oct 28 17:07:47 raspberrypi systemd[1]: docker.service: Unit entered failed state.
      29. Oct 28 17:07:47 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
      30. dpkg: error processing package docker-ce (--configure):
      31. subprocess installed post-installation script returned error exit status 1
      32. Processing triggers for openmediavault (4.1.12) ...
      33. Restarting engine daemon ...
      34. Errors were encountered while processing:
      35. docker-ce
      36. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All

      I can try to install the package via ssh if it is a better way to do it. Edit: tried and i still got

      Source Code

      1. Building dependency tree
      2. Reading state information... Done
      3. The following NEW packages will be installed:
      4. openmediavault-docker-gui
      5. 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
      6. 1 not fully installed or removed.
      7. Need to get 0 B/58.4 kB of archives.
      8. After this operation, 571 kB of additional disk space will be used.
      9. (Reading database ... 51982 files and directories currently installed.)
      10. Preparing to unpack .../openmediavault-docker-gui_4.0.1_all.deb ...
      11. Unpacking openmediavault-docker-gui (4.0.1) ...
      12. Setting up docker-ce (18.06.1~ce~3-0~debian) ...
      13. Job for docker.service failed because the control process exited with error code.
      14. See "systemctl status docker.service" and "journalctl -xe" for details.
      15. invoke-rc.d: initscript docker, action "start" failed.
      16. ● docker.service - Docker Application Container Engine
      17. Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      18. Active: activating (auto-restart) (Result: exit-code) since Sun 2018-10-28 17:10:45 UTC; 33ms ago
      19. Docs: https://docs.docker.com
      20. Process: 20800 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      21. Main PID: 20800 (code=exited, status=1/FAILURE)
      22. CPU: 621ms
      23. CGroup: /system.slice/docker.service
      24. Oct 28 17:10:45 raspberrypi systemd[1]: docker.service: Unit entered failed state.
      25. Oct 28 17:10:45 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
      26. dpkg: error processing package docker-ce (--configure):
      27. subprocess installed post-installation script returned error exit status 1
      28. dpkg: dependency problems prevent configuration of openmediavault-docker-gui:
      29. openmediavault-docker-gui depends on docker-ce; however:
      30. Package docker-ce is not configured yet.
      31. dpkg: error processing package openmediavault-docker-gui (--configure):
      32. dependency problems - leaving unconfigured
      33. Processing triggers for openmediavault (4.1.12) ...
      34. Restarting engine daemon ...
      35. Errors were encountered while processing:
      36. docker-ce
      37. openmediavault-docker-gui
      Display All