Unable to read ntp.service - WebGUI broken

    • OMV 3.x
    • Resolved

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

    • Unable to read ntp.service - WebGUI broken

      Hi all!
      I updated my OMV installation on an rpi3 yesterday through the web GUI. It gave me a few error messages (that is just *** ERROR ***, no info on it). After that, I could no longer access the WebGUI. At first, even the Login Page was blank (just the blue background). After running omv-firstaid and setting the WebGUI port to 80 the login page would load again, but after logging in, the WebGUI displays just a blank page with the OMV logo to the top left.

      OMV itself is running and I can access all my drives through smb, but no WebGUI.

      I tried to reinstall OMV apt-get update && apt-get dist-upgrade && omv-update which ultimately gives me an error upon updating the configuration
      /usr/bin/deb-systemd-helper: error: unable to read ntp.service. Consequently openmediavault fails to configure

      Source Code

      1. /usr/bin/deb-systemd-helper: error: unable to read ntp.service
      2. dpkg: error processing package openmediavault (--configure):
      3. subprocess installed post-installation script returned error exit status 1


      and thus openmediavault-extrasorg, openmediavault-backup, openmediavault-clamav, openmediavault-nginx, openmediavault-resetperms and openmediavault-rsnapshot fails to configure due to unmet dependencies.

      the ntp service is running, restarting it didnt fix the issue.

      So as far as I understand it, the WegGUI doesn't work because nginx isn't configured properly (as is everything else). It seems like using omv-firstaid and resetting the port at least fixed part of the config file, but clearly not everything.

      Any idea how to fix ntp.service?

      Oh and I'm not very good at linux so please be patient. :D

      Thanks!!
    • Same problem here, updated from debian 8.6 to debian 8.8

      OMV is installed in a qemu virtual machine






      apt update

      Shell-Script

      1. garland-omv[0]:~$ apt update
      2. Ign file: InRelease
      3. Ign file: Release.gpg
      4. Ign file: Release
      5. Ign file: Translation-it_IT
      6. Ign file: Translation-it
      7. Ign file: Translation-en
      8. Trovato http://packages.openmediavault.org erasmus InRelease
      9. Trovato http://security.debian.org jessie/updates InRelease
      10. Ign http://ftp.it.debian.org jessie InRelease
      11. Trovato http://packages.openmediavault.org erasmus/main amd64 Packages
      12. Trovato http://security.debian.org jessie/updates/main Sources
      13. Trovato http://ftp.it.debian.org jessie-updates InRelease
      14. Trovato http://security.debian.org jessie/updates/contrib Sources
      15. Trovato http://ftp.it.debian.org jessie-backports InRelease
      16. Trovato https://openmediavault.github.io erasmus InRelease
      17. Trovato http://security.debian.org jessie/updates/non-free Sources
      18. Trovato http://ftp.it.debian.org jessie Release.gpg
      19. Trovato https://openmediavault.github.io erasmus/main amd64 Packages
      20. Trovato http://security.debian.org jessie/updates/main amd64 Packages
      21. Scaricamento di:1 https://openmediavault.github.io erasmus/main Translation-it_IT [9.340 B]
      22. Trovato http://ftp.it.debian.org jessie-updates/main Sources
      23. Trovato http://security.debian.org jessie/updates/contrib amd64 Packages
      24. Scaricamento di:2 https://openmediavault.github.io erasmus/main Translation-it [9.340 B]
      25. Trovato http://ftp.it.debian.org jessie-updates/contrib Sources
      26. Trovato http://security.debian.org jessie/updates/non-free amd64 Packages
      27. Scaricamento di:3 https://openmediavault.github.io erasmus/main Translation-en [9.340 B]
      28. Trovato http://security.debian.org jessie/updates/contrib Translation-en
      29. Trovato http://ftp.it.debian.org jessie-updates/non-free Sources
      30. Trovato http://httpredir.debian.org jessie-backports InRelease
      31. Scaricamento di:4 https://openmediavault.github.io erasmus/main Translation-it_IT [9.340 B]
      32. Trovato http://security.debian.org jessie/updates/main Translation-en
      33. Scaricamento di:5 http://ftp.it.debian.org jessie-updates/main amd64 Packages/DiffIndex [8.392 B]
      34. Scaricamento di:6 https://openmediavault.github.io erasmus/main Translation-it [9.340 B]
      35. Trovato http://security.debian.org jessie/updates/non-free Translation-en
      36. Trovato http://security.debian.org jessie/updates/non-free Translation-en [13/363]
      37. Trovato http://ftp.it.debian.org jessie-updates/contrib amd64 Packages
      38. Scaricamento di:7 https://openmediavault.github.io erasmus/main Translation-en [9.340 B]
      39. Scaricamento di:8 https://openmediavault.github.io erasmus/main Translation-it_IT [9.340 B]
      40. Scaricamento di:9 http://ftp.it.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
      41. Scaricamento di:10 https://openmediavault.github.io erasmus/main Translation-it [9.340 B]
      42. Ign http://packages.openmediavault.org erasmus/main Translation-it_IT
      43. Trovato http://ftp.it.debian.org jessie-updates/contrib Translation-en
      44. Scaricamento di:11 http://httpredir.debian.org jessie-backports/main amd64 Packages/DiffIndex [27,8 kB]
      45. Scaricamento di:12 https://openmediavault.github.io erasmus/main Translation-en [9.340 B]
      46. Ign http://packages.openmediavault.org erasmus/main Translation-it
      47. Scaricamento di:13 http://ftp.it.debian.org jessie-updates/main Translation-en/DiffIndex [3.196 B]
      48. Ign http://packages.openmediavault.org erasmus/main Translation-en
      49. Scaricamento di:14 https://openmediavault.github.io erasmus/main Translation-it_IT [9.340 B]
      50. Scaricamento di:15 http://ftp.it.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
      51. Scaricamento di:16 https://openmediavault.github.io erasmus/main Translation-it [9.340 B]
      52. Scaricamento di:17 http://httpredir.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [25,0 kB]
      53. Scaricamento di:18 http://ftp.it.debian.org jessie-backports/main Sources/DiffIndex [27,8 kB]
      54. Scaricamento di:19 https://openmediavault.github.io erasmus/main Translation-en [9.340 B]
      55. Scaricamento di:20 https://openmediavault.github.io erasmus/main Translation-it_IT [9.340 B]
      56. Ign https://openmediavault.github.io erasmus/main Translation-it_IT
      57. Scaricamento di:21 http://ftp.it.debian.org jessie-backports/contrib Sources/DiffIndex [27,8 kB]
      58. Scaricamento di:22 https://openmediavault.github.io erasmus/main Translation-it [9.340 B]
      59. Ign https://openmediavault.github.io erasmus/main Translation-it
      60. Scaricamento di:23 http://httpredir.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22,4 kB]
      61. Scaricamento di:24 https://openmediavault.github.io erasmus/main Translation-en [9.340 B]
      62. Ign https://openmediavault.github.io erasmus/main Translation-en
      63. Scaricamento di:25 http://ftp.it.debian.org jessie-backports/non-free Sources/DiffIndex [24,0 kB]
      64. Scaricamento di:26 http://ftp.it.debian.org jessie-backports/main amd64 Packages/DiffIndex [27,8 kB]
      65. Scaricamento di:27 http://ftp.it.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [25,0 kB]
      66. Scaricamento di:28 http://httpredir.debian.org jessie-backports/contrib Translation-en/DiffIndex [7.468 B]
      67. Scaricamento di:29 http://ftp.it.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22,4 kB]
      68. Scaricamento di:30 http://ftp.it.debian.org jessie-backports/contrib Translation-en/DiffIndex [7.468 B]
      69. Scaricamento di:31 http://httpredir.debian.org jessie-backports/main Translation-en/DiffIndex [27,8 kB]
      70. Scaricamento di:32 http://ftp.it.debian.org jessie-backports/main Translation-en/DiffIndex [27,8 kB]
      71. Scaricamento di:33 http://ftp.it.debian.org jessie-backports/non-free Translation-en/DiffIndex [16,7 kB]
      72. Scaricamento di:34 http://httpredir.debian.org jessie-backports/non-free Translation-en/DiffIndex [16,7 kB]
      73. Trovato http://ftp.it.debian.org jessie Release
      74. Trovato http://ftp.it.debian.org jessie/main Sources
      75. Trovato http://ftp.it.debian.org jessie/non-free Sources
      76. Trovato http://ftp.it.debian.org jessie/contrib Sources
      77. Trovato http://ftp.it.debian.org jessie/contrib Sources
      78. Trovato http://ftp.it.debian.org jessie/main amd64 Packages
      79. Trovato http://ftp.it.debian.org jessie/non-free amd64 Packages
      80. Trovato http://ftp.it.debian.org jessie/contrib amd64 Packages
      81. Trovato http://ftp.it.debian.org jessie/contrib Translation-en
      82. Trovato http://ftp.it.debian.org jessie/main Translation-it
      83. Trovato http://ftp.it.debian.org jessie/main Translation-en
      84. Trovato http://ftp.it.debian.org jessie/non-free Translation-en
      85. Recuperati 347 kB in 3s (96,2 kB/s)
      86. Lettura elenco dei pacchetti... Fatto
      87. Generazione albero delle dipendenze
      88. Lettura informazioni sullo stato... Fatto
      89. All packages are up to date.
      Display All






      apt upgrade

      Shell-Script

      1. garland-omv[0]:~$ apt -y upgrade
      2. Lettura elenco dei pacchetti... Fatto
      3. Generazione albero delle dipendenze
      4. Lettura informazioni sullo stato... Fatto
      5. Calcolo dell'aggiornamento... Eseguito
      6. 0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
      7. 1 non completamente installati o rimossi.
      8. Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
      9. Configurazione di openmediavault (3.0.84)...
      10. Updating configuration database ...
      11. Running migration conf_3.0.68
      12. Updating configuration ...
      13. /usr/bin/deb-systemd-helper: error: unable to read ntp.service
      14. dpkg: errore nell'elaborare il pacchetto openmediavault (--configure):
      15. il sottoprocesso installato script di post-installation ha restituito lo stato di errore 1
      16. Si sono verificati degli errori nell'elaborazione:
      17. openmediavault
      18. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All


      uname -a

      Shell-Script

      1. garland-omv[0]:~$ uname -a
      2. Linux garland-omv 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.30-2+deb9u2~bpo8+1 (2017-06-27) x86_64 GNU/Linux

      debian_version

      Shell-Script

      1. garland-omv[0]:~$ cat /etc/debian_version
      2. 8.8


      sources.list

      Shell-Script

      1. garland-omv[0]:~$ cat /etc/apt/sources.list
      2. #
      3. # deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 NETINST Binary-1 20160917-14:20]/ jessie main
      4. #deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 NETINST Binary-1 20160917-14:20]/ jessie main
      5. deb http://ftp.it.debian.org/debian/ jessie main non-free contrib
      6. deb-src http://ftp.it.debian.org/debian/ jessie main non-free contrib
      7. deb http://security.debian.org/ jessie/updates main contrib non-free
      8. deb-src http://security.debian.org/ jessie/updates main contrib non-free
      9. # jessie-updates, previously known as 'volatile'
      10. deb http://ftp.it.debian.org/debian/ jessie-updates main contrib non-free
      11. deb-src http://ftp.it.debian.org/debian/ jessie-updates main contrib non-free
      12. # jessie-backports, previously on backports.debian.org
      13. deb http://ftp.it.debian.org/debian/ jessie-backports main contrib non-free
      14. deb-src http://ftp.it.debian.org/debian/ jessie-backports main contrib non-free
      Display All

      openmediavault.list

      Shell-Script

      1. garland-omv[0]:~$ cat /etc/apt/sources.list.d/openmediavault.list
      2. deb http://packages.openmediavault.org/public/ erasmus main
      3. deb https://openmediavault.github.io/packages/ erasmus main
      4. # deb http://downloads.sourceforge.net/project/openmediavault/packages/ erasmus main

      The post was edited 2 times, last by mbaldini ().

    • cpuinfo

      Source Code

      1. garland-omv[0]:~$ cat /proc/cpuinfo
      2. processor : 0
      3. vendor_id : GenuineIntel
      4. cpu family : 6
      5. model : 94
      6. model name : Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
      7. stepping : 3
      8. microcode : 0x1
      9. cpu MHz : 3695.990
      10. cache size : 4096 KB
      11. physical id : 0
      12. siblings : 2
      13. core id : 0
      14. cpu cores : 2
      15. apicid : 0
      16. initial apicid : 0
      17. fpu : yes
      18. fpu_exception : yes
      19. cpuid level : 13
      20. wp : yes
      21. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb r
      22. dtscp lm constant_tsc arch_perfmon rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_de
      23. adline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed ad
      24. x smap clflushopt xsaveopt xsavec xgetbv1 arat
      25. bugs :
      26. bogomips : 7391.98
      27. clflush size : 64
      28. cache_alignment : 64
      29. address sizes : 40 bits physical, 48 bits virtual
      30. power management:
      31. processor : 1
      32. vendor_id : GenuineIntel
      33. cpu family : 6
      34. model : 94
      35. model name : Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
      36. stepping : 3
      37. microcode : 0x1
      38. cpu MHz : 3695.990
      39. cache size : 4096 KB
      40. physical id : 0
      41. siblings : 2
      42. core id : 1
      43. cpu cores : 2
      44. apicid : 1
      45. initial apicid : 1
      46. fpu : yes
      47. fpu_exception : yes
      48. cpuid level : 13
      49. wp : yes
      50. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb r
      51. dtscp lm constant_tsc arch_perfmon rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_de
      52. adline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed ad
      53. x smap clflushopt xsaveopt xsavec xgetbv1 arat
      54. bugs :
      55. bogomips : 7391.98
      56. clflush size : 64
      57. cache_alignment : 64
      58. address sizes : 40 bits physical, 48 bits virtual
      59. power management:
      Display All


      ntp.service

      Shell-Script

      1. garland-omv[0]:~$ systemctl status ntp.service
      2. ● ntp.service - LSB: Start NTP daemon
      3. Loaded: loaded (/etc/init.d/ntp)
      4. Active: active (running) since mer 2017-07-19 10:41:43 CEST; 4s ago
      5. Process: 5434 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
      6. CGroup: /system.slice/ntp.service
      7. └─5441 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 116:123
      8. lug 19 10:41:43 garland-omv ntp[5434]: Starting NTP server: ntpd.
      9. lug 19 10:41:43 garland-omv ntpd[5441]: proto: precision = 0.125 usec
      10. lug 19 10:41:43 garland-omv ntpd[5441]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
      11. lug 19 10:41:43 garland-omv ntpd[5441]: Listen and drop on 1 v6wildcard :: UDP 123
      12. lug 19 10:41:43 garland-omv ntpd[5441]: Listen normally on 2 lo 127.0.0.1 UDP 123
      13. lug 19 10:41:43 garland-omv ntpd[5441]: Listen normally on 3 eth0 192.168.1.185 UDP 123
      14. lug 19 10:41:43 garland-omv ntpd[5441]: Listen normally on 4 lo ::1 UDP 123
      15. lug 19 10:41:43 garland-omv ntpd[5441]: peers refreshed
      16. lug 19 10:41:43 garland-omv ntpd[5441]: Listening on routing socket on fd #21 for interface updates
      17. lug 19 10:41:43 garland-omv systemd[1]: Started LSB: Start NTP daemon.
      Display All
    • Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Uaahhh, looks like a bug in deb-systemd-helper to me. The ntp package does not contain a systemd service unit file, thus it is auto-created by the systemd-sysv scripts. When the ntp.service unit is enabled/disabled, then i assume it will run into the mask/unmusk issue mentioned in bugs.launchpad.net/ubuntu/+sou…stem-helpers/+bug/1439793.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • This can be reproduced via

      Shell-Script

      1. export _DEB_SYSTEMD_HELPER_DEBUG=1;
      2. DPKG_MAINTSCRIPT_PACKAGE=1 deb-systemd-helper enable ntp.service
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • New

      Same here ....

      Source Code

      1. Updating configuration database ...
      2. Running migration conf_3.0.68
      3. Updating configuration ...
      4. /usr/bin/deb-systemd-helper: error: unable to read ntp.service
      5. dpkg: erreur de traitement du paquet openmediavault (--configure)Â :
      6. le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
      7. dpkg: des problèmes de dépendances empêchent la configuration de openmediavault-omvextrasorg :
      8. openmediavault-omvextrasorg dépend de openmediavault (>= 3.0.67) ; cependant :
      9. Le paquet openmediavault n'est pas encore configuré.
    • New

      As a workaround, create a file called /lib/systemd/system/ntp.service and enter the following:

      Source Code

      1. [Unit]
      2. Description=NTP Daemon
      3. After=network-online.target
      4. [Service]
      5. User=
      6. Group=
      7. UMask=000
      8. Type=forking
      9. GuessMainPID=no
      10. [Install]
      11. WantedBy=multi-user.target
      Display All

      Do your update:

      Source Code

      1. sudo apt upgrade

      Then just remove the file again:

      Source Code

      1. sudo rm /lib/systemd/system/ntp.service
    • New

      The issue should be fixed for the NTP package in openmediavault 3.0.85, see github.com/openmediavault/open…41702f2d97ee14750e3dd361e.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • New

      A workaround is to disable the NTP service via WebUI before updating from OMV2 -> OMV3 or for versions < 3.0.67.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • New

      Awesome! Thanks a lot samsquanch - this solved the issue. Update now successful.

      also thanks to everyone else for the help..!

      - set to resolved.

      samsquanch wrote:

      As a workaround, create a file called /lib/systemd/system/ntp.service and enter the following:

      Source Code

      1. [Unit]
      2. Description=NTP Daemon
      3. After=network-online.target
      4. [Service]
      5. User=
      6. Group=
      7. UMask=000
      8. Type=forking
      9. GuessMainPID=no
      10. [Install]
      11. WantedBy=multi-user.target
      Display All
      Do your update:

      Source Code

      1. sudo apt upgrade
      Then just remove the file again:

      Source Code

      1. sudo rm /lib/systemd/system/ntp.service
    • New

      MagicVie wrote:

      Thanks a lot samsquanch - this solved the issue. Update now successful.
      LOL! Can't believe that you're able to write this directly below Volker's description of the problem, his proposed workaround and the announcement that this has been fixed with 3.0.85 anyway.
      'OMV problems' with XU4 and Cloudshell 2? Nope, please read this first. 'OMV problems' with Cloudshell 1? Nope, just Ohm's law.
    • New

      MagicVie wrote:

      Awesome! Thanks a lot samsquanch - this solved the issue. Update now successful.

      also thanks to everyone else for the help..!

      - set to resolved.

      samsquanch wrote:

      As a workaround, create a file called /lib/systemd/system/ntp.service and enter the following:

      Source Code

      1. [Unit]
      2. Description=NTP Daemon
      3. After=network-online.target
      4. [Service]
      5. User=
      6. Group=
      7. UMask=000
      8. Type=forking
      9. GuessMainPID=no
      10. [Install]
      11. WantedBy=multi-user.target
      Display All
      Do your update:

      Source Code

      1. sudo apt upgrade
      Then just remove the file again:

      Source Code

      1. sudo rm /lib/systemd/system/ntp.service

      this is another solution to workaround this Debian bug.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit