Apply change error: monit monitor collectd with exit code 1: Error receiving data -- Resource temporarily unavailable

    • Apply change error: monit monitor collectd with exit code 1: Error receiving data -- Resource temporarily unavailable

      Hi all,
      I have OMV installed on a Debian 9 server.

      It's been very smooth and I had very few issues, much less than expected considering is not the full image.

      Since the start I had randomly this issue with monit error at Apply config but I was able to recover restarting the monit service.
      Once or twice I had to restart the whole server but I always postponed to investigate being so sporadic.

      Now it's permanent and while the config is properly applied and saved, it's quite annoying to have the banner at all times.

      Source Code

      1. Error #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 monitor collectd 2>&1' with exit code '1': Error receiving data -- Resource temporarily unavailable in /usr/share/php/openmediavault/system/process.inc:182
      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/collectd.inc(81): OMV\System\Monit->monitor()
      7. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleCollectd->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(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusdn...', '/tmp/bgoutputC8...')
      12. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): 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



      Could be that I've updated monit at some point and it doesn't work well with OMV 4.1.12.
      Not entirely sure but I suspect it became permanent once I recently upgraded OMV from 4.1.9 to 4.1.12.

      This is the monit version:
      monit/stable,stable,now 1:5.20.0-6 amd64 [installed,automatic]

      The server is using Proxmox kernel:
      Linux server 4.15.18-7-pve #1 SMP PVE 4.15.18-26 (Thu, 04 Oct 2018 11:03:06 +0200) x86_64 GNU/Linux

      Any help would be appreciated :D

      Cheers