After upgrade no changes are permitted

    • OMV 4.x
    • Resolved
    • Upgrade 3.x -> 4.x
    • After upgrade no changes are permitted

      Hi everybody,
      after the upgrade from 3.0 to 4.0 i have some errors when i try to apply changes to the system, or just browsing the webgui
      For example this is when i try to configure nut:

      Source Code

      1. Errore #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; monit -g nut monitor 2>&1' with exit code '1': Cannot create socket to [localhost]:2812 -- Connection refused in /usr/share/php/openmediavault/system/process.inc:175
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/monit.inc(115): OMV\System\Process->execute()
      5. #1 /usr/share/php/openmediavault/system/monit.inc(82): OMV\System\Monit->action('monitor', false)
      6. #2 /usr/share/openmediavault/engined/module/nut.inc(101): OMV\System\Monit->monitor()
      7. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleNetworkUPSTools->startService()
      8. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus8i...', '/tmp/bgoutputqO...')
      12. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      13. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      14. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      15. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      16. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      17. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      18. #14 {main}
      Display All


      This when i try to access the services tab in the webgui:

      Source Code

      1. Errore #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; monit -B summary 2>&1' with exit code '1': Cannot create socket to [localhost]:2812 -- Connection refused in /usr/share/php/openmediavault/system/process.inc:175
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/monit.inc(142): OMV\System\Process->execute(Array)
      5. #1 /usr/share/php/openmediavault/system/monit.inc(171): OMV\System\Monit->status()
      6. #2 /usr/share/openmediavault/engined/module/nut.inc(115): OMV\System\Monit->isRunning()
      7. #3 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModuleNetworkUPSTools->getStatus()
      8. #4 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      11. #7 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      12. #8 {main}
      Display All

      I tried to remove nut and reinstall it, but no luck.

      Thanks in advance for your help.
      ;)
    • It seems monit does not work, maybe updating the config files will help.

      Shell-Script

      1. # omv-mkconf monit
      2. # systemctl restart monit
      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
    • Hi Volker, thanks for your answer.
      I tried your workaround, but no luck.
      I still have the same error:

      Source Code

      1. Errore #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; monit -B summary 2>&1' with exit code '1': Cannot create socket to [localhost]:2812 -- Connection refused in /usr/share/php/openmediavault/system/process.inc:175
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/monit.inc(142): OMV\System\Process->execute(Array)
      5. #1 /usr/share/php/openmediavault/system/monit.inc(171): OMV\System\Monit->status()
      6. #2 /usr/share/openmediavault/engined/module/nut.inc(115): OMV\System\Monit->isRunning()
      7. #3 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModuleNetworkUPSTools->getStatus()
      8. #4 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      11. #7 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      12. #8 {main}
      Display All
      It loops after i log in the webgui.
      ;)
    • What is the output of

      Shell-Script

      1. # systemctl status monit
      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
    • Here's the output :

      Source Code

      1. â monit.service - LSB: service and resource monitoring daemon
      2. Loaded: loaded (/etc/init.d/monit; generated; vendor preset: enabled)
      3. Active: active (running) since Fri 2018-02-09 18:41:00 CET; 3 days ago
      4. Docs: man:systemd-sysv-generator(8)
      5. CPU: 1min 8.118s
      6. CGroup: /system.slice/monit.service
      7. ââ1210 /usr/bin/monit -c /etc/monit/monitrc
      8. feb 09 18:14:12 lucnas systemd[1]: monit.service: Failed to set invocation ID on control group /system.slice/monit
      9. .service, ignoring: Operation not supported
      10. feb 09 18:14:12 lucnas systemd[1]: Reloading LSB: service and resource monitoring daemon.
      11. feb 09 18:14:15 lucnas monit[34295]: Reloading daemon monitor configuration: monit.
      12. feb 09 18:14:15 lucnas systemd[1]: Reloaded LSB: service and resource monitoring daemon.
      13. feb 09 18:14:16 lucnas systemd[1]: monit.service: Failed to set invocation ID on control group /system.slice/monit
      14. .service, ignoring: Operation not supported
      15. feb 09 18:14:25 lucnas systemd[1]: monit.service: Failed to set invocation ID on control group /system.slice/monit
      16. .service, ignoring: Operation not supported
      17. feb 09 18:14:32 lucnas systemd[1]: monit.service: Failed to set invocation ID on control group /system.slice/monit
      18. .service, ignoring: Operation not supported
      19. feb 09 18:41:33 lucnas monit[1210]: 'lucnas' Monit 5.20.0 started
      20. feb 09 18:42:03 lucnas monit[1210]: Awakened by the SIGHUP signal
      21. Reinitializing Monit - Control file '/etc/monit/monitrc'
      22. feb 09 18:42:04 lucnas monit[1210]: 'lucnas' Monit reloaded
      Display All

      ;)
    • Hmm, seems to be ok. And what is the output of

      Shell-Script

      1. # export LANG=C; monit -B summary 2>&1
      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
    • maxluc wrote:

      This when i try to access the services tab in the webgui:


      Errore #0:
      OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; monit -B summary 2>&1' with exit code '1': Cannot create socket to [localhost]:2812 -- Connection refused in /usr/share/php/openmediavault/system/process.inc:175
      Stack trace:
      #0 /usr/share/php/openmediavault/system/monit.inc(142): OMV\System\Process->execute(Array)
      #1 /usr/share/php/openmediavault/system/monit.inc(171): OMV\System\Monit->status()
      #2 /usr/share/openmediavault/engined/module/nut.inc(115): OMV\System\Monit->isRunning()
      #3 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModuleNetworkUPSTools->getStatus()
      #4 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      #6 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      #7 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      #8 {main}
      I tried to remove nut and reinstall it, but no luck.
      This has been fixed in openmediavault-nut 4.0.10, see github.com/openmediavault/open…b31465efab74d3bdf53b2f8d8.
      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
    • Package openmediavault-nut not openmediavault
      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