Cannot add new NFS share: function not implemented

Can creating nfs mounts be disabled if the nfs service is not running? Otherwise the user gets this error:

A lower level error occured while refreshing NFS exports: Error running a command. cmd = ['/usr/sbin/exportfs', '-i', '-o', 'rw,no_root_squash', u'192.168.1.10:/export/media']. rc = 1. stdout = ['']. stderr = ['exportfs: 192.168.1.10:/export/media: Function not implemented', ''] 

when they do this:

file sharing> nfs> add nfs export.
shares to export: media
nfs clients: *
admin host: 192.168.1.10
access type: writable
response type: async

Moved to https://github.com/rockstor/rockstor-core/issues/911

Is this consistently reproducible? May be this happens only if nfs service has never been turned on? Ideally, it would be better if don’t tie the service status to exports, but can some one help me understand exactly why this happens and how to reproduce consistently? When I tested this quickly just now, I don’t get the error and nfs service is off.

Yes! It was for a fresh install where the nfs service had never been started.