Raspberry 4 Docker installation

    • OMV 4.x
    • Resolved

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

    • Raspberry 4 Docker installation

      Hi all,

      please, I need help. I beg you.

      I own a Raspberrypi 4 with 4GB of RAM and I successfully installed OMV following the Techno Dad Life tutorial.
      Everything worked fine until i decided to do a fresh install again with balenaEtcher since I bought a new 4 TB HDD.

      and oh god... nothing worked anymore.

      1. After I booted the Raspberrypi I can't access GUI no more -> after searching I solved with omv-firstaid, 2 option
      (Why did this happen?! Now I've notice that every time I flash the microSD I have to do this, I can't no longer access the GUI without this step. Is it normal behaviour? Am I missing something? )

      2. I can't install Docker plugin no more -> (last rows)

      Source Code

      1. Cannot create socket to [localhost]:2812 -- Connection refused
      2. Errors were encountered while processing:
      3. docker-ce
      4. openmediavault-docker-gui
      5. >>> *************** Error ***************
      6. <<< *************************************


      [Blocked Image: https://imgur.com/a/IGh0v3g]


      3. I can't use option 1 in omv-firstaid ->

      Source Code

      1. ERROR: dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:
      2. Error: Expected at least 5 tokens for --menu, have 4.

      I read all day long post on how to solve this but didn't find a working solution for me
      (
      I know that there's an issue with DNS but didn't understood well enough and I don't know how to change it
      I tried multiples fresh install but all have the same issue of above
      I tried with commands found on this forum but still didn't solve
      )

      This are my info, can someone please help me?! I am desperate and I don't know what to try anymore...

      [Blocked Image: https://imgur.com/a/zimXS2E]
    • Lightblur wrote:

      3. I can't use option 1 in omv-firstaid ->


      ERROR: dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:

      Error: Expected at least 5 tokens for --menu, have 4.

      I´m receiving the same error with my RasPi 4 and OMV5. Gonna create a Github Issue.
      OMV 4.x| HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV 4.x| Odroid XU4 | 5TB Data drive | 500GB Backup drive
      OMV 5.x| Raspberry Pi 4 | 6TB Data drive | 500GB SSD drive
    • Lightblur wrote:

      is there a bug in OMV?
      could be.


      Lightblur wrote:

      is there an OMV 5 iso for Raspberry 4?
      Not yet. I´m currently testing it.


      Lightblur wrote:

      Or at least give me some insights of why point 1 happens, if you know.
      So what is the real problem when you just need to do that ONCE when you have flashed your SD Card?
      OMV 4.x| HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV 4.x| Odroid XU4 | 5TB Data drive | 500GB Backup drive
      OMV 5.x| Raspberry Pi 4 | 6TB Data drive | 500GB SSD drive
    • WastlJ wrote:

      So what is the real problem when you just need to do that ONCE when you have flashed your SD Card?
      Sorry I am not sure I understood the question.

      I don't know why I have to do this step since on the first install everything worked fine. After I've burned the iso to do a fresh install to attach my new 4 TB HDD everytime I burn the iso I must do this passage to be able to get in the Web GUI, but I don't get why if the first time everything worked fine, what has changed?

      But the real problem for me is that Docker doesn't work, the point 1 was just for curiosity.
    • Oh, you need to do Option 2 EVERYTIME you want to login?

      Regarding your Docker problem - have you tried the mentioned "solution":

      forum.openmediavault.org/index…-2812-Connection-refused/
      OMV 4.x| HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV 4.x| Odroid XU4 | 5TB Data drive | 500GB Backup drive
      OMV 5.x| Raspberry Pi 4 | 6TB Data drive | 500GB SSD drive
    • WastlJ wrote:

      Oh, you need to do Option 2 EVERYTIME you want to login?
      No, i have to do option 2 for every new install. Once I done that I can log in everytime for that installation.
      I am wondering now why the first time I've install OMV I didn't have to do this...

      Thank for referencing me a solution, but I don't know how to apply it (I am very noob).
      If you have time can you kindly help me getting it through please?
    • How often do you new install? If that is only once - where is the problem?

      please give me the output of cat /etc/monit/monitrc
      OMV 4.x| HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV 4.x| Odroid XU4 | 5TB Data drive | 500GB Backup drive
      OMV 5.x| Raspberry Pi 4 | 6TB Data drive | 500GB SSD drive
    • WastlJ wrote:

      How often do you new install? If that is only once - where is the problem?
      No problem at all. I was just curios of why on the first installation ever I did not have to do this.


      WastlJ wrote:

      please give me the output of cat /etc/monit/monitrc
      Here:

      Source Code

      1. set daemon 30 with start delay 5
      2. set logfile syslog facility log_daemon
      3. set idfile /var/lib/monit/id
      4. set statefile /var/lib/monit/state
      5. set httpd port 2812 and
      6. use address localhost # only accept connection from localhost
      7. allow localhost # allow localhost to connect to the server and
      8. # allow admin:monit # require user 'admin' with password 'monit'
      9. set eventqueue
      10. basedir /var/lib/monit/events
      11. slots 100
      12. include /etc/monit/conf.d/*
      Display All
    • WastlJ wrote:

      please again the output of cat /etc/monit/monitrc

      Source Code

      1. set daemon 30 with start delay 5
      2. set logfile syslog facility log_daemon
      3. set idfile /var/lib/monit/id
      4. set statefile /var/lib/monit/state
      5. set httpd port 2812 and
      6. use address localhost # only accept connection from localhost
      7. allow localhost # allow localhost to connect to the server and
      8. # allow admin:monit # require user 'admin' with password 'monit'
      9. set eventqueue
      10. basedir /var/lib/monit/events
      11. slots 100
      12. include /etc/monit/conf.d/*
      Display All
    • ah, sorry. wrong parameter. Again:


      sed -i "s/delay 5/delay 30/" /etc/monit/monitrc

      then

      cat /etc/monit/monitrc
      OMV 4.x| HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV 4.x| Odroid XU4 | 5TB Data drive | 500GB Backup drive
      OMV 5.x| Raspberry Pi 4 | 6TB Data drive | 500GB SSD drive
    • WastlJ wrote:

      then

      cat /etc/monit/monitrc
      Here:

      Source Code

      1. set daemon 30 with start delay 30
      2. set logfile syslog facility log_daemon
      3. set idfile /var/lib/monit/id
      4. set statefile /var/lib/monit/state
      5. set httpd port 2812 and
      6. use address localhost # only accept connection from localhost
      7. allow localhost # allow localhost to connect to the server and
      8. # allow admin:monit # require user 'admin' with password 'monit'
      9. set eventqueue
      10. basedir /var/lib/monit/events
      11. slots 100
      12. include /etc/monit/conf.d/*
      Display All
    • It gives me this error:

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

      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(31): 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(537): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      10. #6 {main}
      ps. Docker-ce and Docker gui were installed during the comands you told me.
      Should I remove and then reinstall them?
    • I have not given you any commands to install Docker at all...?

      Yes you could try to just reinstall docker completely.
      OMV 4.x| HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV 4.x| Odroid XU4 | 5TB Data drive | 500GB Backup drive
      OMV 5.x| Raspberry Pi 4 | 6TB Data drive | 500GB SSD drive
    • I've try to reinstall the docker plugin and I got this error while installing:

      Source Code

      1. Reading package lists...
      2. Building dependency tree...
      3. Reading state information...
      4. The following additional packages will be installed:
      5. containerd.io docker-ce docker-ce-cli imagemagick-6-common libfftw3-double3
      6. liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3
      7. libopenjp2-7 omvextras-common php-curl php-imagick php-symfony-class-loader
      8. php-symfony-polyfill-apcu php7.0-curl
      9. Suggested packages:
      10. libfftw3-bin libfftw3-dev liblcms2-utils libmagickcore-6.q16-3-extra
      11. Recommended packages:
      12. aufs-tools cgroupfs-mount | cgroup-lite pigz ghostscript gsfonts
      13. ttf-dejavu-core
      14. The following NEW packages will be installed:
      15. containerd.io docker-ce docker-ce-cli imagemagick-6-common libfftw3-double3
      16. liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3
      17. libopenjp2-7 omvextras-common openmediavault-docker-gui php-curl php-imagick
      18. php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl
      19. 0 upgraded, 17 newly installed, 0 to remove and 1 not upgraded.
      20. Need to get 60.5 MB of archives.
      21. After this operation, 264 MB of additional disk space will be used.
      22. Get:1 http://security.debian.org stretch/updates/main armhf imagemagick-6-common all 8:6.9.7.4+dfsg-11+deb9u7 [184 kB]
      23. Get:2 http://security.debian.org stretch/updates/main armhf libmagickcore-6.q16-3 armhf 8:6.9.7.4+dfsg-11+deb9u7 [1608 kB]
      24. Get:3 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch/main armhf omvextras-common all 4.0.1 [6582 B]
      25. Get:4 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-docker stretch/main armhf openmediavault-docker-gui all 4.1.5 [62.8 kB]
      26. Get:5 http://security.debian.org stretch/updates/main armhf libmagickwand-6.q16-3 armhf 8:6.9.7.4+dfsg-11+deb9u7 [416 kB]
      27. Get:7 http://security.debian.org stretch/updates/main armhf php-symfony-class-loader all 2.8.7+dfsg-1.3+deb9u2 [24.9 kB]
      28. Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main armhf liblqr-1-0 armhf 0.4.2-2+b2 [21.6 kB]
      29. Get:15 https://download.docker.com/linux/debian stretch/stable armhf containerd.io armhf 1.2.6-3 [13.0 MB]
      30. Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main armhf libfftw3-double3 armhf 3.3.5-3 [435 kB]
      31. Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main armhf liblcms2-2 armhf 2.8-4+deb9u1 [120 kB]
      32. Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main armhf libopenjp2-7 armhf 2.1.2-1.1+deb9u3 [111 kB]
      33. Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main armhf php-symfony-polyfill-apcu all 1.2.0-1 [4544 B]
      34. Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main armhf php7.0-curl armhf 7.0.33-0+deb9u3 [24.6 kB]
      35. Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main armhf php-curl all 1:7.0+49 [5048 B]
      36. Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main armhf php-imagick armhf 3.4.3~rc2-2 [82.6 kB]
      37. Get:16 https://download.docker.com/linux/debian stretch/stable armhf docker-ce-cli armhf 5:19.03.1~3-0~debian-stretch [29.5 MB]
      38. Get:17 https://download.docker.com/linux/debian stretch/stable armhf docker-ce armhf 5:19.03.1~3-0~debian-stretch [14.9 MB]
      39. Fetched 60.5 MB in 6s (9051 kB/s)
      40. Selecting previously unselected package liblqr-1-0:armhf.
      41. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 47502 files and directories currently installed.)
      42. Preparing to unpack .../00-liblqr-1-0_0.4.2-2+b2_armhf.deb ...
      43. Unpacking liblqr-1-0:armhf (0.4.2-2+b2) ...
      44. Selecting previously unselected package libfftw3-double3:armhf.
      45. Preparing to unpack .../01-libfftw3-double3_3.3.5-3_armhf.deb ...
      46. Unpacking libfftw3-double3:armhf (3.3.5-3) ...
      47. Selecting previously unselected package liblcms2-2:armhf.
      48. Preparing to unpack .../02-liblcms2-2_2.8-4+deb9u1_armhf.deb ...
      49. Unpacking liblcms2-2:armhf (2.8-4+deb9u1) ...
      50. Selecting previously unselected package libopenjp2-7:armhf.
      51. Preparing to unpack .../03-libopenjp2-7_2.1.2-1.1+deb9u3_armhf.deb ...
      52. Unpacking libopenjp2-7:armhf (2.1.2-1.1+deb9u3) ...
      53. Preparing to unpack .../04-imagemagick-6-common_8%3a6.9.7.4+dfsg-11+deb9u7_all.deb ...
      54. Unpacking imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u7) ...
      55. Selecting previously unselected package libmagickcore-6.q16-3:armhf.
      56. Preparing to unpack .../05-libmagickcore-6.q16-3_8%3a6.9.7.4+dfsg-11+deb9u7_armhf.deb ...
      57. Unpacking libmagickcore-6.q16-3:armhf (8:6.9.7.4+dfsg-11+deb9u7) ...
      58. Selecting previously unselected package libmagickwand-6.q16-3:armhf.
      59. Preparing to unpack .../06-libmagickwand-6.q16-3_8%3a6.9.7.4+dfsg-11+deb9u7_armhf.deb ...
      60. Unpacking libmagickwand-6.q16-3:armhf (8:6.9.7.4+dfsg-11+deb9u7) ...
      61. Selecting previously unselected package containerd.io.
      62. Preparing to unpack .../07-containerd.io_1.2.6-3_armhf.deb ...
      63. Unpacking containerd.io (1.2.6-3) ...
      64. Selecting previously unselected package docker-ce-cli.
      65. Preparing to unpack .../08-docker-ce-cli_5%3a19.03.1~3-0~debian-stretch_armhf.deb ...
      66. Unpacking docker-ce-cli (5:19.03.1~3-0~debian-stretch) ...
      67. Selecting previously unselected package docker-ce.
      68. Preparing to unpack .../09-docker-ce_5%3a19.03.1~3-0~debian-stretch_armhf.deb ...
      69. Unpacking docker-ce (5:19.03.1~3-0~debian-stretch) ...
      70. Selecting previously unselected package php-symfony-polyfill-apcu.
      71. Preparing to unpack .../10-php-symfony-polyfill-apcu_1.2.0-1_all.deb ...
      72. Unpacking php-symfony-polyfill-apcu (1.2.0-1) ...
      73. Selecting previously unselected package php-symfony-class-loader.
      74. Preparing to unpack .../11-php-symfony-class-loader_2.8.7+dfsg-1.3+deb9u2_all.deb ...
      75. Unpacking php-symfony-class-loader (2.8.7+dfsg-1.3+deb9u2) ...
      76. Selecting previously unselected package omvextras-common.
      77. Preparing to unpack .../12-omvextras-common_4.0.1_all.deb ...
      78. Unpacking omvextras-common (4.0.1) ...
      79. Preparing to unpack .../13-php7.0-curl_7.0.33-0+deb9u3_armhf.deb ...
      80. Unpacking php7.0-curl (7.0.33-0+deb9u3) ...
      81. Selecting previously unselected package php-curl.
      82. Preparing to unpack .../14-php-curl_1%3a7.0+49_all.deb ...
      83. Unpacking php-curl (1:7.0+49) ...
      84. Preparing to unpack .../15-php-imagick_3.4.3~rc2-2_armhf.deb ...
      85. Unpacking php-imagick (3.4.3~rc2-2) ...
      86. Preparing to unpack .../16-openmediavault-docker-gui_4.1.5_all.deb ...
      87. Unpacking openmediavault-docker-gui (4.1.5) ...
      88. Setting up imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u7) ...
      89. Setting up libopenjp2-7:armhf (2.1.2-1.1+deb9u3) ...
      90. Setting up containerd.io (1.2.6-3) ...
      91. Setting up liblcms2-2:armhf (2.8-4+deb9u1) ...
      92. Setting up php7.0-curl (7.0.33-0+deb9u3) ...
      93. >>> *************** Error ***************
      94. Bad Gateway
      95. <<< *************************************
      96. Setting up libfftw3-double3:armhf (3.3.5-3) ...
      97. Processing triggers for php7.0-fpm (7.0.33-0+deb9u3) ...
      98. Setting up liblqr-1-0:armhf (0.4.2-2+b2) ...
      99. Processing triggers for libc-bin (2.24-11+deb9u4) ...
      100. Setting up php-symfony-polyfill-apcu (1.2.0-1) ...
      101. Processing triggers for systemd (232-25+deb9u11) ...
      102. Processing triggers for man-db (2.7.6.1-2) ...
      103. Processing triggers for openmediavault (4.1.23-1) ...
      104. Restarting engine daemon ...
      105. Setting up docker-ce-cli (5:19.03.1~3-0~debian-stretch) ...
      106. Setting up docker-ce (5:19.03.1~3-0~debian-stretch) ...
      107. Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
      108. Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
      109. Job for docker.service failed because the control process exited with error code.
      110. See "systemctl status docker.service" and "journalctl -xe" for details.
      111. invoke-rc.d: initscript docker, action "start" failed.
      112. ● docker.service - Docker Application Container Engine
      113. Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      114. Active: activating (auto-restart) (Result: exit-code) since Sat 2019-08-17 16:20:49 CEST; 19ms ago
      115. Docs: https://docs.docker.com
      116. Process: 7299 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
      117. Main PID: 7299 (code=exited, status=1/FAILURE)
      118. CPU: 540ms
      119. Aug 17 16:20:49 raspberrypi systemd[1]: docker.service: Unit entered failed …te.
      120. Aug 17 16:20:49 raspberrypi systemd[1]: docker.service: Failed with result '…e'.
      121. Hint: Some lines were ellipsized, use -l to show in full.
      122. dpkg: error processing package docker-ce (--configure):
      123. subprocess installed post-installation script returned error exit status 1
      124. dpkg: dependency problems prevent configuration of openmediavault-docker-gui:
      125. openmediavault-docker-gui depends on docker-ce (>= 5:19.03); however:
      126. Package docker-ce is not configured yet.
      127. openmediavault-docker-gui depends on docker-ce (<< 5:19.04); however:
      128. Package docker-ce is not configured yet.
      129. dpkg: error processing package openmediavault-docker-gui (--configure):
      130. dependency problems - leaving unconfigured
      131. Setting up libmagickcore-6.q16-3:armhf (8:6.9.7.4+dfsg-11+deb9u7) ...
      132. Setting up php-curl (1:7.0+49) ...
      133. Setting up php-symfony-class-loader (2.8.7+dfsg-1.3+deb9u2) ...
      134. Setting up libmagickwand-6.q16-3:armhf (8:6.9.7.4+dfsg-11+deb9u7) ...
      135. Setting up omvextras-common (4.0.1) ...
      136. Setting up php-imagick (3.4.3~rc2-2) ...
      137. Processing triggers for systemd (232-25+deb9u11) ...
      138. Processing triggers for libc-bin (2.24-11+deb9u4) ...
      139. Processing triggers for openmediavault (4.1.23-1) ...
      140. Updating file permissions ...
      141. Purging internal cache ...
      142. Restarting engine daemon ...
      143. Errors were encountered while processing:
      144. docker-ce
      145. openmediavault-docker-gui
      146. >>> *************** Error ***************
      147. <<< *************************************
      Display All