Latest monit update causes config generation problem (nut / UPS)

    • OMV 2.x
    • Resolved
    • Update

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

    • Latest monit update causes config generation problem (nut / UPS)

      Just updated monit and a timezone package. Noticed that the UPS service wasn't running after the update, so flicked the service off & on then applied config (a quick way to restart a service without resorting to this or to SSH login would be handy...)

      Got the following error when I tried to apply the config:

      Failed to execute command 'export LANG=C; monit -g nut monitor 2>&1': Segmentation fault

      Error #4000:exception 'OMVException' with message 'Failed to execute command 'export LANG=C; monit -g nut monitor 2>&1': Segmentation fault' in /usr/share/php/openmediavault/monit.inc:113
      Stack trace:
      #0 /usr/share/php/openmediavault/monit.inc(80): OMVMonit->action('monitor', 'nut', false)
      #1 /usr/share/openmediavault/engined/module/nut.inc(107): OMVMonit->monitor('nut')
      #2 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleNetworkUPSTools->startService()
      #3 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      #4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #5 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      #6 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      #7 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      #8 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #9 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      #10 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      #11 {main}
    • Try rewriting the monit config file with:

      omv-mkconf monit
      systemctl restart monit
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.10
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Restarting monit just made my UPS service appear dead to the OMV dashboard (which is also slightly odd given it was a restart and not a stop...)

      Same problem afterwards - any attempt to change UPS configuration causes that seg fault when config is applied in the GUI. Even a trivial change like altering the UPS's displayed name.

      I tried regenerating both nut & monit config files:

      > omv-mkconf nut
      > omv-mkconf monit
      > service monit restart
      ... all three commands run without complaint, all I see is the wall messages for the UPS becoming unavailable as the service goes down, but the GUI still shows that there's a config change needing to be applied and if I apply it, the same problem repeats.

      I also see that the GUI dashboard shows the status of the UPS service as red throughout this process. It returns to green right away when I revert the config.
      Thankfully, I can apply config changes to other parts of the system; only nut/monit causes trouble.
    • Hi all, I have the same issue. I use OMV 2.2.13, and when I try to same configuration to persistent storage I find the following error:

      Source Code

      1. Errore #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'export LANG=C; monit monitor collectd 2>&1': Segmentation fault' in /usr/share/php/openmediavault/monit.inc:113
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/monit.inc(80): OMVMonit->action('monitor', 'collectd', false)
      5. #1 /usr/share/openmediavault/engined/module/collectd.inc(94): OMVMonit->monitor('collectd')
      6. #2 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleCollectd->startService()
      7. #3 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      8. #4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      10. #6 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      11. #7 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      12. #8 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      13. #9 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      14. #10 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      15. #11 {main}
      Display All

      I tried the two commands above, and nothing changed. Here's an extract from syslog:


      Source Code

      1. Dec 6 19:40:07 rasp rrdcached[1949]: queue_thread_main: rrd_update_r (/var/lib/rrdcached/db/localhost/cpu-3/cpu-steal.rrd) failed with status -1. (/var/lib/rrdcached/db/localhost/cpu-3/cpu-steal.rrd: illegal attempt to update using time 1481049008 when last update time is 1486979956 (minimum one second step))
      2. Dec 6 19:40:17 rasp rrdcached[1949]: queue_thread_main: rrd_update_r (/var/lib/rrdcached/db/localhost/memory/memory-used.rrd) failed with status -1. (/var/lib/rrdcached/db/localhost/memory/memory-used.rrd: illegal attempt to update using time 1481049018 when last update time is 1486979956 (minimum one second step))
      3. Dec 6 19:40:17 rasp rrdcached[1949]: queue_thread_main: rrd_update_r (/var/lib/rrdcached/db/localhost/memory/memory-buffered.rrd) failed with status -1. (/var/lib/rrdcached/db/localhost/memory/memory-buffered.rrd: illegal attempt to update using time 1481049018 when last update time is 1486979956 (minimum one second step))
      4. Dec 6 19:40:17 rasp rrdcached[1949]: queue_thread_main: rrd_update_r (/var/lib/rrdcached/db/localhost/memory/memory-cached.rrd) failed with status -1. (/var/lib/rrdcached/db/localhost/memory/memory-cached.rrd: illegal attempt to update using time 1481049018 when last update time is 1486979956 (minimum one second step))
      5. Dec 6 19:40:17 rasp rrdcached[1949]: queue_thread_main: rrd_update_r (/var/lib/rrdcached/db/localhost/memory/memory-free.rrd) failed with status -1. (/var/lib/rrdcached/db/localhost/memory/memory-free.rrd: illegal attempt to update using time 1481049018 when last update time is 1486979956 (minimum one second step))
      6. Dec 6 19:40:24 rasp monit[22283]: 'fs_media_140AFD9D0AFD7BD4' space usage 87.5% matches resource limit [space usage>80.0%]
      7. Dec 6 19:40:34 rasp collectd[22894]: Exiting normally.
      8. Dec 6 19:40:34 rasp collectd[22894]: collectd: Stopping 5 read threads.
      9. Dec 6 19:40:38 rasp monit: Control file syntax OK
      10. Dec 6 19:40:38 rasp monit[22283]: Awakened by the SIGHUP signal
      11. Dec 6 19:40:38 rasp monit[22283]: Reinitializing monit - Control file '/etc/monit/monitrc'
      12. Dec 6 19:40:38 rasp monit[22283]: Shutting down monit HTTP server
      13. Dec 6 19:40:38 rasp monit[22283]: monit HTTP server stopped
      14. Dec 6 19:40:38 rasp monit[22283]: Starting monit HTTP server at [localhost:2812]
      15. Dec 6 19:40:38 rasp monit[22283]: monit HTTP server started
      16. Dec 6 19:40:38 rasp monit[22283]: 'localhost' Monit reloaded
      17. Dec 6 19:40:38 rasp monit[22283]: 'fs_media_140AFD9D0AFD7BD4' space usage 87.5% matches resource limit [space usage>80.0%]
      18. Dec 6 19:40:38 rasp monit[22283]: 'collectd' process is not running
      19. Dec 6 19:40:38 rasp monit[22283]: 'collectd' trying to restart
      20. Dec 6 19:40:38 rasp monit[22283]: 'collectd' start: /etc/init.d/collectd
      21. Dec 6 19:40:38 rasp collectd[24062]: rrdcached plugin: rrdc_stats_get failed with status 107.
      22. Dec 6 19:40:38 rasp collectd[24062]: read-function of plugin `rrdcached' failed. Will suspend it for 20 seconds.
      23. Dec 6 19:40:38 rasp collectd[24062]: Initialization complete, entering read-loop.
      24. Dec 6 19:41:01 rasp /usr/sbin/cron[2157]: (*system*openmediavault-rrdtoolgraph) RELOAD (/etc/cron.d/openmediavault-rrdtoolgraph)
      25. Dec 6 19:41:09 rasp monit[22283]: 'fs_media_140AFD9D0AFD7BD4' space usage 87.5% matches resource limit [space usage>80.0%]
      26. Dec 6 19:41:09 rasp monit[22283]: 'collectd' process is running with pid 24062
      27. Dec 6 19:41:39 rasp monit[22283]: 'fs_media_140AFD9D0AFD7BD4' space usage 87.5% matches resource limit [space usage>80.0%]
      Display All
    • The monit problem is causing issue for lots of people on OMV 2.x. I will look into it a bit later.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.10
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • GedM wrote:

      This seems to have been fixed with a new monit update.
      Check your update manager and you should see it there.
      It seems to fixed with version 5.4-2+deb7u2. I can no longer replicate the problem.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.10
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • 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 is what I got


      root@OpenMediaVault:~# apt-get update
      Ign file: Release.gpg
      Ign file: Release
      Ign file: Translation-en_GB
      Ign file: Translation-en
      Hit packages.omv-extras.org stoneburner Release.gpg
      Hit mirrordirector.raspbian.org wheezy Release.gpg
      Hit archive.raspberrypi.org wheezy Release.gpg
      Hit packages.omv-extras.org stoneburner-testing Release.gpg
      Hit mirrordirector.raspbian.org wheezy Release
      Hit archive.raspberrypi.org wheezy Release
      Hit packages.omv-extras.org stoneburner Release
      Hit packages.omv-extras.org stoneburner-testing Release
      Hit packages.openmediavault.org stoneburner Release.gpg
      Hit mirrordirector.raspbian.org wheezy/main armhf Packages
      Hit archive.raspberrypi.org wheezy/main armhf Packages
      Hit mirrordirector.raspbian.org wheezy/contrib armhf Packages
      Hit packages.openmediavault.org stoneburner Release
      Hit mirrordirector.raspbian.org wheezy/non-free armhf Packages
      Hit mirrordirector.raspbian.org wheezy/rpi armhf Packages
      Hit packages.omv-extras.org stoneburner/main armhf Packages
      Hit packages.omv-extras.org stoneburner-testing/main armhf Packages
      Ign archive.raspberrypi.org wheezy/main Translation-en_GB
      Ign archive.raspberrypi.org wheezy/main Translation-en
      Hit packages.openmediavault.org stoneburner/main armhf Packages
      Ign packages.omv-extras.org stoneburner/main Translation-en_GB
      Ign packages.omv-extras.org stoneburner/main Translation-en
      Ign packages.omv-extras.org stoneburner-testing/main Translation-en_GB
      Ign packages.omv-extras.org stoneburner-testing/main Translation-en
      Ign mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
      Ign packages.openmediavault.org stoneburner/main Translation-en_GB
      Ign mirrordirector.raspbian.org wheezy/contrib Translation-en
      Ign mirrordirector.raspbian.org wheezy/main Translation-en_GB
      Ign packages.openmediavault.org stoneburner/main Translation-en
      Ign mirrordirector.raspbian.org wheezy/main Translation-en
      Ign mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
      Ign mirrordirector.raspbian.org wheezy/non-free Translation-en
      Ign mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
      Ign mirrordirector.raspbian.org wheezy/rpi Translation-en
      Creating index of upgradeable packages ...
      Creating index of openmediavault plugins ...
      Reading package lists... Done
      root@OpenMediaVault:~# apt-cache policy monit
      monit:
      Installed: 1:5.4-2+deb7u1
      Candidate: 1:5.4-2+deb7u1
      Version table:
      *** 1:5.4-2+deb7u1 0
      500 mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
      100 /var/lib/dpkg/status
      root@OpenMediaVault:~#
    • Latest fault when I try to mount the data drive:

      Failed to execute command 'export LANG=C; monit monitor collectd 2>&1': Segmentation fault
      Error #4000:exception 'OMVException' with message 'Failed to execute command 'export LANG=C; monit monitor collectd 2>&1': Segmentation fault' in /usr/share/php/openmediavault/monit.inc:113Stack trace:#0 /usr/share/php/openmediavault/monit.inc(80): OMVMonit->action('monitor', 'collectd', false)#1 /usr/share/openmediavault/engined/module/collectd.inc(94): OMVMonit->monitor('collectd')#2 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleCollectd->startService()#3 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)#4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)#5 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)#6 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)#7 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)#8 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)#9 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)#10 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)#11 {main}
    • It wants to use 5.4-2+deb7u1 which has the error. You need 5.4-2+deb7u2. Try:

      omv-aptclean
      apt-cache policy monit

      Just post the output of the second command.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.10
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!