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}

  • 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:



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



  • The monit problem is causing issue for lots of people on OMV 2.x. I will look into it a bit later.

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


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

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


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

  • I am still having the problem, I checked for new updates but didn't see any.
    Raspberrypi 1 OMV version 2.2.13 (stoneburner).
    Did not see a monit update
    I am using a early version of Raspberrypi 1 256 mem.
    I will try a later (512 meg) Raspberrypi 1 and see if there is a difference.

  • 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 http://packages.omv-extras.org stoneburner Release.gpg
    Hit http://mirrordirector.raspbian.org wheezy Release.gpg
    Hit http://archive.raspberrypi.org wheezy Release.gpg
    Hit http://packages.omv-extras.org stoneburner-testing Release.gpg
    Hit http://mirrordirector.raspbian.org wheezy Release
    Hit http://archive.raspberrypi.org wheezy Release
    Hit http://packages.omv-extras.org stoneburner Release
    Hit http://packages.omv-extras.org stoneburner-testing Release
    Hit http://packages.openmediavault.org stoneburner Release.gpg
    Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
    Hit http://archive.raspberrypi.org wheezy/main armhf Packages
    Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
    Hit http://packages.openmediavault.org stoneburner Release
    Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
    Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
    Hit http://packages.omv-extras.org stoneburner/main armhf Packages
    Hit http://packages.omv-extras.org stoneburner-testing/main armhf Packages
    Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
    Ign http://archive.raspberrypi.org wheezy/main Translation-en
    Hit http://packages.openmediavault.org stoneburner/main armhf Packages
    Ign http://packages.omv-extras.org stoneburner/main Translation-en_GB
    Ign http://packages.omv-extras.org stoneburner/main Translation-en
    Ign http://packages.omv-extras.org stoneburner-testing/main Translation-en_GB
    Ign http://packages.omv-extras.org stoneburner-testing/main Translation-en
    Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
    Ign http://packages.openmediavault.org stoneburner/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
    Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
    Ign http://packages.openmediavault.org stoneburner/main Translation-en
    Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
    Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
    Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
    Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
    Ign http://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 http://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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!