Can't create a NFS share

    • Can't create a NFS share

      Hi, I'm trying to create a NFS share from the GUI, but I can't. It fails for this reason:

      Source Code

      1. Error #0:
      2. OMV\Json\SchemaValidationException: fsname: Failed to match exactly one schema. in /usr/share/php/openmediavault/json/schema.inc:691
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/json/schema.inc(375): OMV\Json\Schema->checkOneOf('/srv/dev-disk-b...', Array, 'fsname')
      5. #1 /usr/share/php/openmediavault/json/schema.inc(297): OMV\Json\Schema->validateString('/srv/dev-disk-b...', Array, 'fsname')
      6. #2 /usr/share/php/openmediavault/json/schema.inc(257): OMV\Json\Schema->validateType('/srv/dev-disk-b...', Array, 'fsname')
      7. #3 /usr/share/php/openmediavault/config/datamodel.inc(155): OMV\Json\Schema->validate('/srv/dev-disk-b...', 'fsname')
      8. #4 /usr/share/php/openmediavault/config/configobject.inc(189): OMV\Config\DataModel->validateProperty('fsname', '/srv/dev-disk-b...')
      9. #5 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('fsname', '/srv/dev-disk-b...', true)
      10. #6 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, true, false)
      11. #7 /usr/share/openmediavault/engined/rpc/nfs.inc(192): OMV\Config\ConfigObject->setAssoc(Array)
      12. #8 [internal function]: OMVRpcServiceNfs->setShare(Array, Array)
      13. #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      14. #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setShare', Array, Array)
      15. #11 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('NFS', 'setShare', Array, Array, 1)
      16. #12 {main}
      Display All
      The NFS share I'm trying to create is:

      prnt.sc/l2hc4a

      I tried creating a new shared folder, but I have the same problem. I saw a simmilar error on the forum for OMV3, but the issue there was spaces in shared folder name. I don't have any spaces or special characters.

      I'm using OMV4 on Armbian.

      Andy ideas?
    • What filesystem is the shared folder on? What board is it and did you use a pre-built OMV image?
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      Hi, I seem to have the same or similar problem after upgrading to OMV 4.1.13 just now.

      I did a clean installation and added my drives as in the previous version. After creating the shared folder I wanted to add these to NFS shares and get the following.


      Source Code

      1. Fehler #0:
      2. OMV\Json\SchemaValidationException: fsname: Failed to match exactly one schema. in /usr/share/php/openmediavault/json/schema.inc:691
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/json/schema.inc(375): OMV\Json\Schema->checkOneOf('/srv/dev-disk-b...', Array, 'fsname')
      5. #1 /usr/share/php/openmediavault/json/schema.inc(297): OMV\Json\Schema->validateString('/srv/dev-disk-b...', Array, 'fsname')
      6. #2 /usr/share/php/openmediavault/json/schema.inc(257): OMV\Json\Schema->validateType('/srv/dev-disk-b...', Array, 'fsname')
      7. #3 /usr/share/php/openmediavault/config/datamodel.inc(155): OMV\Json\Schema->validate('/srv/dev-disk-b...', 'fsname')
      8. #4 /usr/share/php/openmediavault/config/configobject.inc(189): OMV\Config\DataModel->validateProperty('fsname', '/srv/dev-disk-b...')
      9. #5 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('fsname', '/srv/dev-disk-b...', true)
      10. #6 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, true, false)
      11. #7 /usr/share/openmediavault/engined/rpc/nfs.inc(192): OMV\Config\ConfigObject->setAssoc(Array)
      12. #8 [internal function]: OMVRpcServiceNfs->setShare(Array, Array)
      13. #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      14. #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setShare', Array, Array)
      15. #11 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('NFS', 'setShare', Array, Array, 1)
      16. #12 {main}
      Display All
      The foldername is " Movies_(0_-_Den) [on Movies_(0_-_Den), Movies_(0_-_Den)/] " but I can't see the problem here as it worked fine like this before.

      Any help/ideas are more than welcome.

      Thanks.

      Post by Dryden ().

      This post was deleted by the author themselves: Double post ().