NFS Error When Starting the Server

    • NFS Error When Starting the Server

      Hi there,
      So I'm a new guy to OMV and NFS. I am however experiencing a major problem when starting an NFS Share.
      I enable the NFS Service and hit apply, this results in the following error:

      Specs: Raspberry Pi 3, Running Erasmus OMV

      Source Code

      1. Error #0:
      2. exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl enable nfs-common 2>&1' with exit code '1': Synchronizing state of nfs-common.service with SysV service script with /lib/systemd/systemd-sysv-install.
      3. Executing: /lib/systemd/systemd-sysv-install enable nfs-common
      4. insserv: warning: current start runlevel(s) (empty) of script `nfs-common' overrides LSB defaults (S).
      5. insserv: warning: current stop runlevel(s) (0 1 6 S) of script `nfs-common' overrides LSB defaults (0 1 6).
      6. Failed to enable unit: Unit file /lib/systemd/system/nfs-common.service is masked.' in /usr/share/php/openmediavault/system/process.inc:175
      7. Stack trace:
      8. #0 /usr/share/php/openmediavault/system/systemctl.inc(83): OMV\System\Process->execute(Array, 1)
      9. #1 /usr/share/php/openmediavault/system/systemctl.inc(99): OMV\System\SystemCtl->exec('enable', NULL, false)
      10. #2 /usr/share/openmediavault/engined/module/nfs.inc(73): OMV\System\SystemCtl->enable(true)
      11. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleNfs->startService()
      12. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      13. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      14. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      15. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatussy...', '/tmp/bgoutputVe...')
      16. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      17. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      18. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      19. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      20. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      21. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      22. #14 {main}
      Display All




      And

      Source Code

      1. Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl enable nfs-common 2>&1' with exit code '1': Synchronizing state of nfs-common.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable nfs-common insserv: warning: current start runlevel(s) (empty) of script `nfs-common' overrides LSB defaults (S). insserv: warning: current stop runlevel(s) (0 1 6 S) of script `nfs-common' overrides LSB defaults (0 1 6). Failed to enable unit: Unit file /lib/systemd/system/nfs-common.service is masked.



      The other services and shares work successfully, without no issues.
    • subzero79 wrote:

      Try in terminal.

      systemctl unmask nfs-common
      Hi again,
      Done the command using Sudo, all went fine with no errors. I then rebooted to make sure the service was unmasked, applied settings and still got this error:

      Source Code

      1. Error #0:
      2. exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl enable nfs-common 2>&1' with exit code '1': Synchronizing state of nfs-common.service with SysV service script with /lib/systemd/systemd-sysv-install.
      3. Executing: /lib/systemd/systemd-sysv-install enable nfs-common
      4. insserv: warning: current start runlevel(s) (empty) of script `nfs-common' overrides LSB defaults (S).
      5. insserv: warning: current stop runlevel(s) (0 1 6 S) of script `nfs-common' overrides LSB defaults (0 1 6).
      6. Failed to enable unit: Unit file /lib/systemd/system/nfs-common.service is masked.' in /usr/share/php/openmediavault/system/process.inc:175
      7. Stack trace:
      8. #0 /usr/share/php/openmediavault/system/systemctl.inc(83): OMV\System\Process->execute(Array, 1)
      9. #1 /usr/share/php/openmediavault/system/systemctl.inc(99): OMV\System\SystemCtl->exec('enable', NULL, false)
      10. #2 /usr/share/openmediavault/engined/module/nfs.inc(73): OMV\System\SystemCtl->enable(true)
      11. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleNfs->startService()
      12. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      13. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      14. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      15. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusGI...', '/tmp/bgoutputF8...')
      16. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      17. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      18. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      19. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      20. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      21. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      22. #14 {main}
      Display All
    • subzero79 wrote:

      Please post here

      dpkg -l | grep systemd

      systemctl status nfs-kernel-server
      The First Command:

      Source Code

      1. ii libpam-systemd:armhf 232-23 armhf system and service manager - PAM module
      2. ii libsystemd0:armhf 232-23 armhf systemd utility library
      3. ii systemd 232-23 armhf system and service manager
      4. ii systemd-sysv 232-23 armhf system and service manager - SysV links

      Second Command:

      Source Code

      1. ● nfs-server.service - NFS server and services
      2. Loaded: loaded (/lib/systemd/system/nfs-server.service; disabled; vendor preset: enabled)
      3. Active: inactive (dead)