Job for nfs-server.service canceled NFS already running?

  • I've been struggling with nfsv4 since i upgraded to omv7. I tried to reboot or change different settings in my shares (anongid=100 but no result).

    betty@betty-pc:/# showmount --exports betty-pc

    clnt_create: RPC: Program not registered

    I tried several solutions like this one (i had the problem before updating to 6.5.7 even if I think it's nfs v4 related... and omv7 related).


    Thank you for any advice!

  • KM0201

    Hat das Thema freigeschaltet.
  • There's your problem, tcp is set to no in that file, it should be yes. NFSv4 needs tcp which is what the final few journalctl error messages you posted shows. In any case, all the NFSV4 options appear to be off. So is there a mismatch between what our WebUI indicates and the content of your "99-openmediavault.conf" file?


    Here's the file content from a working NFSv4 config:


    I don't know if this thread points to a similar error: No NFS mount possible


    What's the output of omv-salt deploy run nfs ?

  • When i try to enable NFSv3 in WebUI, here is the result:

  • Krisbee

    Sorry for the late answer

    Yes there are mismatches. I can't enable any nfs version in my webui. When i try to enable nfsv3 (and only v3) to match real settings, I have this error

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color nfs 2>&1' with exit code '1': debian:

    ----------

    ID: configure_nfs_conf

    Function: file.managed

    Name: /etc/nfs.conf.d/99-openmediavault.conf

    Result: True

    Comment: File /etc/nfs.conf.d/99-openmediavault.conf is in the correct state

    Started: 23:31:49.721465

    Duration: 63.224 ms

    Changes:

    ----------

    ID: configure_idmapd_conf

    Function: file.managed

    Name: /etc/idmapd.conf

    Result: True

    Comment: File /etc/idmapd.conf is in the correct state

    Started: 23:31:49.784756

    Duration: 53.586 ms

    Changes:

    ----------

    ID: divert_idmapd_conf

    Function: omv_dpkg.divert_add

    Name: /etc/idmapd.conf

    Result: True

    Comment: Leaving 'local diversion of /etc/idmapd.conf to /etc/idmapd.conf.distrib'

    Started: 23:31:49.838600

    Duration: 8.8 ms

    Changes:

    ----------

    ID: configure_nfs_exports

    Function: file.managed

    Name: /etc/exports

    Result: True

    Comment: File /etc/exports is in the correct state

    Started: 23:31:49.847472

    Duration: 213.905 ms

    Changes:

    ----------

    ID: divert_nfs_exports

    Function: omv_dpkg.divert_add

    Name: /etc/exports

    Result: True

    Comment: Leaving 'local diversion of /etc/exports to /etc/exports.distrib'

    Started: 23:31:50.061444

    Duration: 8.773 ms

    Changes:

    ----------

    ID: stop_nfs_blkmap_service

    Function: service.dead

    Name: nfs-blkmap

    Result: True

    Comment: The service nfs-blkmap is already dead

    Started: 23:31:50.615556

    Duration: 13.434 ms

    Changes:

    ----------

    ID: mask_nfs_blkmap_service

    Function: service.masked

    Name: nfs-blkmap

    Result: True

    Comment: Service nfs-blkmap is already masked

    Started: 23:31:50.629060

    Duration: 0.349 ms

    Changes:

    ----------

    ID: start_nfs_server_service

    Function: service.running

    Name: nfs-server

    Result: False

    Comment: Job for nfs-server.service canceled.

    Started: 23:31:50.629658

    Duration: 181.133 ms

    Changes:

    ----------

    ID: restart_nfs_utils_service

    Function: service.running

    Name: nfs-utils

    Result: True

    Comment: Started service nfs-utils

    Started: 23:31:50.810933

    Duration: 34.287 ms

    Changes:

    ----------

    nfs-utils:

    True

    Summary for debian

    ------------

    Succeeded: 8 (changed=1)

    Failed: 1

    ------------

    Total states run: 9

    Total run time: 577.491 ms

    [ERROR ] Command '/bin/systemd-run' failed with return code: 1

    [ERROR ] stderr: Running scope as unit: run-r10a0fbeec73f4eb4b67189efba55065c.scope

    Job for nfs-server.service canceled.

    [ERROR ] retcode: 1

    [ERROR ] Job for nfs-server.service canceled.

    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color nfs 2>&1' with exit code '1': debian:

    ----------

    ID: configure_nfs_conf

    Function: file.managed

    Name: /etc/nfs.conf.d/99-openmediavault.conf

    Result: True

    Comment: File /etc/nfs.conf.d/99-openmediavault.conf is in the correct state

    Started: 23:31:49.721465

    Duration: 63.224 ms

    Changes:

    ----------

    ID: configure_idmapd_conf

    Function: file.managed

    Name: /etc/idmapd.conf

    Result: True

    Comment: File /etc/idmapd.conf is in the correct state

    Started: 23:31:49.784756

    Duration: 53.586 ms

    Changes:

    ----------

    ID: divert_idmapd_conf

    Function: omv_dpkg.divert_add

    Name: /etc/idmapd.conf

    Result: True

    Comment: Leaving 'local diversion of /etc/idmapd.conf to /etc/idmapd.conf.distrib'

    Started: 23:31:49.838600

    Duration: 8.8 ms

    Changes:

    ----------

    ID: configure_nfs_exports

    Function: file.managed

    Name: /etc/exports

    Result: True

    Comment: File /etc/exports is in the correct state

    Started: 23:31:49.847472

    Duration: 213.905 ms

    Changes:

    ----------

    ID: divert_nfs_exports

    Function: omv_dpkg.divert_add

    Name: /etc/exports

    Result: True

    Comment: Leaving 'local diversion of /etc/exports to /etc/exports.distrib'

    Started: 23:31:50.061444

    Duration: 8.773 ms

    Changes:

    ----------

    ID: stop_nfs_blkmap_service

    Function: service.dead

    Name: nfs-blkmap

    Result: True

    Comment: The service nfs-blkmap is already dead

    Started: 23:31:50.615556

    Duration: 13.434 ms

    Changes:

    ----------

    ID: mask_nfs_blkmap_service

    Function: service.masked

    Name: nfs-blkmap

    Result: True

    Comment: Service nfs-blkmap is already masked

    Started: 23:31:50.629060

    Duration: 0.349 ms

    Changes:

    ----------

    ID: start_nfs_server_service

    Function: service.running

    Name: nfs-server

    Result: False

    Comment: Job for nfs-server.service canceled.

    Started: 23:31:50.629658

    Duration: 181.133 ms

    Changes:

    ----------

    ID: restart_nfs_utils_service

    Function: service.running

    Name: nfs-utils

    Result: True

    Comment: Started service nfs-utils

    Started: 23:31:50.810933

    Duration: 34.287 ms

    Changes:

    ----------

    nfs-utils:

    True

    Summary for debian

    ------------

    Succeeded: 8 (changed=1)

    Failed: 1

    ------------

    Total states run: 9

    Total run time: 577.491 ms

    [ERROR ] Command '/bin/systemd-run' failed with return code: 1

    [ERROR ] stderr: Running scope as unit: run-r10a0fbeec73f4eb4b67189efba55065c.scope

    Job for nfs-server.service canceled.

    [ERROR ] retcode: 1

    [ERROR ] Job for nfs-server.service canceled. in /usr/share/php/openmediavault/system/process.inc:247

    Stack trace:

    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()

    #1 /usr/share/openmediavault/engined/rpc/config.inc(186): OMV\Engine\Module\ServiceAbstract->deploy()

    #2 [internal function]: Engined\Rpc\Config->applyChanges()

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod()

    #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}()

    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(146): OMV\Rpc\ServiceAbstract->execBgProc()

    #7 /usr/share/openmediavault/engined/rpc/config.inc(207): OMV\Rpc\ServiceAbstract->callMethodBg()

    #8 [internal function]: Engined\Rpc\Config->applyChangesBg()

    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #11 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()

    #12 {main}

  • Edit: I used to have a usb device plugged in and savagely unplugged

    I edited /etc/openmediavault/config.xml to remove any trace of it and now, when i deploy nfs,


    I relaunched omv-salt deploy run nfs and then:

    sudo omv-salt deploy run nfs

    Getting closer but nfs-blkmap is still dead!

  • I've been struggling with nfsv4 since i upgraded to omv7. I tried to reboot or change different settings in my shares (anongid=100 but no result).

    betty@betty-pc:/# showmount --exports betty-pc

    clnt_create: RPC: Program not registered

    I tried several solutions like this one (i had the problem before updating to 6.5.7 even if I think it's nfs v4 related... and omv7 related).

    You do realise that "showmount -e" only works with NFsV3. There's no harm in having NFSv3 and all versions of NFSv4 selected in the OMV NFS server settings. If a client fails to connect via NFSv4 it will fall back to NFSv3. A lot of Linux desktop file managers will only connect via NFSv3.


    You say you had this error prior to 6.5.7, did you see see this thread and take any necessary action at the time? NFS down with Omv 6.5.7 update


    Editing the config.xml and other underlying NFS config files could leave your OMV in an inconsistent state.


    If you can disable the NFS server via the WebUI without error after a save & apply, then run omv-salt deploy run nfs again as it might complete successfully.

  • [ERROR ] Command '/usr/bin/systemd-run' failed with return code: 1 [ERROR ] stderr: Running scope as unit: run-r8f544769d019459a9da4b046eb6d4091.scope Job for nfs-server.service canceled

    This is the error.


    Did you removed any drive from OMV?

  • gretaM

    Hat das Label gelöst hinzugefügt.
  • Zitat

    You do realise that "showmount -e" only works with NFsV3

    Krisbee No I didn't. I was following the thread you mentioned without thinking.

    Soma Yes I removed a dead usb device (so I edited config.xml)


    Solution :

    Code
    betty@betty-pc:/# lsof -i :2049
    COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    ganesha.n 2842 root   11u  IPv6  12135      0t0  UDP *:nfs
    ganesha.n 2842 root   12u  IPv6  12136      0t0  TCP *:nfs (LISTEN)

    sudo apt-get remove nfs-ganesha


    I didn't even remember I installed it.


    It works now. Sorry for that

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!