After upgrading to UCS 4.3-3 NFS Server does not start

Hi,
After upgrading to UCS 4.3-3 NFS Server and services does not start.

root @ democrates: ~ # systemctl status nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2018-12-11 11:45:44 -02; 2 hours ago
  Process: 5803 ExecStartPre = / usr / sbin / exportfs -r (code = exited, status = 1 / FAILURE)
      CPU: 2ms

Dec 11 11:45:44 democrates systemd [1]: Starting NFS server and services ...
Dec 11 11:45:44 democrates exportfs [5803]: exportfs: duplicated export entries:
Dec 11 11:45:44 democrates exportfs [5803]: exportfs: *: / var / lib / opsi / depot
Dec 11 11:45:44 democrates exportfs [5803]: exportfs: *: / var / lib / opsi / depot
Dec 11 11:45:44 democrates systemd [1]: nfs-server.service: Control process exited, code = exited status = 1
Dec 11 11:45:44 democrates systemd [1]: Failed to start NFS server and services.
Dec 11 11:45:44 democrates systemd [1]: nfs-server.service: Unit entered failed state.
Dec 11 11:45:44 democrates systemd [1]: nfs-server.service: Failed with result 'exit-code'.

Can you guide me what I should do?

Best regards,
Michael Voigt

To fix this, you have to remove the duplicates. I assume this at least.

If you post the output of

cat /etc/exports

we maybe can evaluate what caused this unsupported state.

root@democrates:/etc# cat exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
"/var/lib/opsi/depot" -rw,root_squash,sync,subtree_check * # LDAP:cn=opsi_depot_rw,cn=democrates.vost.lan,cn=shares,dc=vost,dc=lan
"/var/lib/opsi/depot" -rw,root_squash,sync,subtree_check * # LDAP:cn=opsi_depot,cn=democrates.vost.lan,cn=shares,dc=vost,dc=lan
"/var/lib/opsi/workbench" -rw,root_squash,sync,subtree_check * # LDAP:cn=opsi_workbench,cn=democrates.vost.lan,cn=shares,dc=vost,dc=lan
"/var/lib/opsi/ntfs-images" -rw,root_squash,sync,subtree_check * # LDAP:cn=opsi_images,cn=democrates.vost.lan,cn=shares,dc=vost,dc=lan
root@democrates:/etc#

This really duplicates, but which of the two should I remove?

Hi @mcvoigt,

it doesn’t really matters because both are same - only the comment is slightly different but in the end both lines are ‘opsi_depot_rw’. :wink:

Kind regards

Ok, I did it here and it worked.

Thank you,

Best Regards,
Michael Voigt

In the I I recommend not to modify the file directly. Instead you should disable NFS for this LDAP object:

Hi, what is the command for me to do this change in LDAP?

Kind regards

You can do this via the UMC.

I found via UMC, thanks for your help.

Kind regards

Michael Voigt