Error #6000: exception 'OMVException' with message 'Failed to create the directory...

    • OMV 1.0
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Error #6000: exception 'OMVException' with message 'Failed to create the directory...

      I just moved my computer to a different place. And when I plugged everything back and updated all the updates I had pending. I tried to create a share folder from one of my hard drives and got this error.

      Source Code

      1. ERROR
      2. Failed to create the directory '/media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/Backup/'
      3. Error #6000:exception 'OMVException' with message 'Failed to create the directory '/media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/Backup/'' in /usr/share/openmediavault/engined/rpc/sharemgmt.inc:414
      4. Stack trace:
      5. #0 [internal function]: OMVRpcServiceShareMgmt->set(Array, Array)
      6. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('set', Array, Array)
      8. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('ShareMgmt', 'set', Array, Array, 1)
      9. #4 {main}​


      I'm pretty new with all this stuff so I'm lost. I will appreciate any help! Thx!

      PD: I've tried to search in other threads but couldn't find anything that helped. The closest one I found is this one: Got Failed to mount '/media... Error #6000: (upgrade to 1.0 solved the original issue but created a new one )

      So I found out that the drive is listed in /etc/openmediavault/config.xml and the guy that solved the issue in that thread said that he did this:

      I removed the NTFS from /etc/openmediavault/config.xml.
      generated fstab and it worked.

      But I have no idea how he removed that NTFS, in my case CIFS share. And I have no idea what does he mean with generating a fstab.

      Thx!
      Images
      • OpenMediaVault.png

        154.21 kB, 1,667×887, viewed 409 times
    • The drive is formatted as ext4

      What I'm doing to set it up is:

      Services > SMB/CIFS > Shares (second tab) > +Add

      Then a window that says "Add share" appears. There I do the following:

      Enable: [Checked]
      Share Folder: -> "I click on the (+) sign and another window open.

      Add shared folder:
      Name: -> "the name I want"
      Volume: -> "I select the HDD i want to share"
      Path: -> auto populates as: "Backup/" which is the name I have to the share folder.
      Permissions: -> "I don't touch anything there."

      Then I click on save

      And that error message that I showed above shows up.

      Thx!
    • Here is the output of that command.

      Source Code

      1. ​$ $ ls -la /media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/
      2. total 472
      3. drwxrwsr-x 16 root users 4096 May 10 00:25 .
      4. drwxr-xr-x 6 root root 4096 Jun 2 02:43 ..
      5. drwxrwsr-x 22 root users 4096 Feb 7 03:42 000-Windows10
      6. drwxrwsr-x 13 root users 12288 Feb 8 11:51 00-Movies
      7. drwxrwsr-x 65 root users 28672 Feb 14 11:07 01-Series
      8. -rw-rw-r-- 1 root users 374 Sep 27 2014 0 - Peliculas vistas.txt
      9. drwxrwsr-x 11 root users 28672 Feb 6 16:28 Apps
      10. -rw------- 1 root users 0 May 10 00:25 aquota.group.new
      11. -rw------- 1 root users 0 May 10 00:25 aquota.user.new
      12. drwxrwsr-x 12 root users 4096 Feb 6 17:19 Backups
      13. drwxrwsr-x 37 root users 12288 Feb 6 11:35 BYU
      14. drwxrwsr-x 10 root users 24576 Feb 6 13:11 Docs
      15. drwxrwsr-x 14 root users 4096 Feb 14 01:17 Games
      16. drwxrwsr-x 3 root users 4096 Feb 5 05:25 Music
      17. drwxrwsr-x 50 root users 20480 Feb 5 14:22 Others
      18. -rw-rw-r-- 1 root users 3663 Jan 19 03:04 Pelis.txt
      19. drwxrwsr-x 19 root users 278528 Feb 5 16:10 Pics
      20. drwxrwsr-x 54 root users 20480 Feb 6 03:02 Software
      21. drwxrwsr-x 7 root users 20480 Feb 5 01:00 Videos
      22. drwxrwsr-x 12 root users 4096 Feb 5 02:08 WebPrograming
      23. $
      Display All
    • I don't know if this will help, but I have 2 hard drives connected to this machine. The third one is the main computer one. The other 2 are external hard drives.

      /dev/sda which is 4GB (it is where I have OVM installed)
      /dev/sdb 3 TB (This one I didn't have problem to share a folder from it). [This an external HDD]
      /dev/sdc 1.5 TB (This is the hard drive that is giving me problems creating a shared folder.) [This an external HDD]
    • new4u: I don't remember if I did delete or not something from that drive. I'm sure at some point I did, if the log from "$ ls -la /media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/" is right. Seems that what I have there is pretty much a backup from my other drive. Meaning that I should have the same stuff. But I'm not sure since it has been a while that I did not use that drive. So I wanted to create a share drive to check what is in there and delete stuff I don't need anymore. But I'm getting that error while trying to create the share folder.
      I'm pretty noob with this stuff, so I may be doing it wrong, but the steps above are the ones I'm following. I just followed what some tutorials taught me on youtube :P


      subzero79: The 4GB drive is an internal HDD in my machine. However, it is a VMware virtual drive.

      My machine has VMware ESXI with different virtual machines on the internal HDD. One of them is OMV with a 4GB drive space. OMV says that it still having 1.94 GB Available and 1.59 GB used.

      But the problem I'm having is creating a share folder with the 1.5 TB drive. and that just happened now that I moved my machine to a different physical location. I don't know if OMV got confused with driver names, or what is going on. That's why I need expert help :)

      Thanks!
    • I hope this is what you mean.

      Screenshot

      When I tried to create that shared folder it appears there in the Access Rights management / Shared Folders. But I just deleted it because it is not working (I did this before you asked for the Screenshot). But when I get that error message the folder appears there in that window. But I cannot access from the Windows Explorer as I do with the other shared folder.

      Today I deleted that "Media" folder, disconnected all my drives from the machine. Restarted both the VMware ESXI and the OMV. Then reconnected both external HDDs, created the "Media" folder again and tried to create a share folder with the name "backup" with the second HDD.
      The "media" folder works as usual. But the "backup" one I'm trying to create still not working, same error message.

      Could be that the hard drive does not have enough space to create that share folder? Just wondering if that could be one of the factors.

      The post was edited 5 times, last by zios007 ().

    • In the information about I do not see the Media shared folder. It looks like when you created the shared folder with the + it shared the root of the data drive labeled Media and then you applied ACL. This ACL was the problem. Do not use ACL. Use privileges.

      Also, here is how you should create a Media folder. Do not do it via the Samba plugin.
      1) Go to Access Rights Management/Shared Folders and click on add.
      2) Put in Name "Media" and press Tab.
      3) Then select the volume and press "Save".
      4) Then click on the "Media" folder to highlight it and click on "Privileges"
      5) Assign read/write and read privileges to the users desired.

      6) Now go to the SMB/CIFS and click on the "Shares" Tab at the top.
      7) Click on and and then with the dropdown select the "Media" shared folder and click on "Save".

      Then you should connect via your PC and create other folders inside the Media folder once connected via Samba. You should be connected with the main user you want to write to the Media share. I only have one use that is read/write to my media and that is me.

      The post was edited 2 times, last by tekkb ().

    • tekkb wrote:

      In the information about I do not see the Media shared folder. It looks like when you created the shared folder with the + it shared the root of the data drive labeled Media and then you applied ACL. This ACL was the problem. Do not use ACL. Use privileges.

      Also, here is how you should create a Media folder. Do not do it via the Samba plugin.
      1) Go to Access Rights Management/Shared Folders and click on add.
      2) Put in Name "Media" and press Tab.
      3) Then select the volume and press "Save".
      4) Then click on the "Media" folder to highlight it and click on "Privileges"
      5) Assign read/write and read privileges to the users desired.

      6) Now go to the SMB/CIFS and click on the "Shares" Tab at the top.
      7) Click on and and then with the dropdown select the "Media" shared folder and click on "Save".

      Then you should connect via your PC and create other folders inside the Media folder once connected via Samba. You should be connected with the main user you want to write to the Media share. I only have one use that is read/write to my media and that is me.



      tekkb, I've deleted all the shared folders from SMB/CIFS > "Shares" Tab and also from Shared Folders.

      I followed your steps and had no problem with the Media shared folder. Everything went great. That Media folder comes from the /dev/sdb1 HDD.
      However, when I went to do the same with my Backup drive from /dev/sdc1. I've got the same error message as before.

      Source Code

      1. Error #6000:
      2. exception 'OMVException' with message 'Failed to create the directory '/media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/Backup/'' in /usr/share/openmediavault/engined/rpc/sharemgmt.inc:414
      3. Stack trace:
      4. #0 [internal function]: OMVRpcServiceShareMgmt->set(Array, Array)
      5. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('set', Array, Array)
      7. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('ShareMgmt', 'set', Array, Array, 1)
      8. #4 {main}


      I don't know if there is anything I can do to that drive. To the /dev/sdc1

      Thx!
    • Ok, I made some progress !

      I deleted one of the folders from the drive via SSH to make some more space. And that allowed me to create the shared folder! Yeah!

      However, now I have another issue. Now that I can create the shared folder from /dev/sdc1 when I go to a Windows machine and navigate to my server path. That "Backup" folder is empty. There are no folders.

      As you can see if I run the command asked before there is content in the HDD:

      Source Code

      1. $ ls -la /media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/
      2. total 464
      3. drwxrwsr-x 16 root users 4096 Jun 6 03:10 .
      4. drwxr-xr-x 6 root root 4096 Jun 4 22:53 ..
      5. drwxrwsr-x 22 root users 4096 Feb 7 03:42 000-Windows10
      6. drwxrwsr-x 65 root users 28672 Feb 14 11:07 01-Series
      7. -rw-rw-r-- 1 root users 374 Sep 27 2014 0 - Peliculas vistas.txt
      8. drwxrwsr-x 11 root users 28672 Feb 6 16:28 Apps
      9. -rw------- 1 root users 0 May 10 00:25 aquota.group.new
      10. -rw------- 1 root users 0 May 10 00:25 aquota.user.new
      11. drwxrwsr-x 2 root users 4096 Jun 6 03:10 Backup
      12. drwxrwsr-x 12 root users 4096 Feb 6 17:19 Backups
      13. drwxrwsr-x 37 root users 12288 Feb 6 11:35 BYU
      14. drwxrwsr-x 10 root users 24576 Feb 6 13:11 Docs
      15. drwxrwsr-x 14 root users 4096 Feb 14 01:17 Games
      16. drwxrwsr-x 3 root users 4096 Feb 5 05:25 Music
      17. drwxrwsr-x 50 root users 20480 Feb 5 14:22 Others
      18. -rw-rw-r-- 1 root users 3663 Jan 19 03:04 Pelis.txt
      19. drwxrwsr-x 19 root users 278528 Feb 5 16:10 Pics
      20. drwxrwsr-x 54 root users 20480 Feb 6 03:02 Software
      21. drwxrwsr-x 7 root users 20480 Feb 5 01:00 Videos
      22. drwxrwsr-x 12 root users 4096 Feb 5 02:08 WebPrograming
      Display All


      So I don't know how to proceed now.

      By the way. I created the shared folder as you told me tekkb. So I followed those steps with Privileges, etc.

      Thanks!

      The post was edited 1 time, last by zios007 ().

    • subzero79 wrote:

      Check that /etc/samba/smb.conf is pointing to the correct directory for the share. Otherwise it might look like you created the folder in the other disk.

      Try an apply reset permissions. next to shared folders is a utility.


      This is what shows on my /etc/samba/smb.conf

      Source Code

      1. #======================= Share Definitions =======================
      2. [Backup]
      3. path = /media/e95b642f-7f6a-4f1e-930d-156d6dcd61b0/Backup/
      4. guest ok = no
      5. read only = no
      6. browseable = yes
      7. inherit acls = yes
      8. inherit permissions = no
      9. ea support = no
      10. store dos attributes = no
      11. printable = no
      12. create mask = 0755
      13. force create mode = 0644
      14. directory mask = 0755
      15. force directory mode = 0755
      16. hide dot files = yes
      17. valid users = "zios007"
      18. invalid users =
      19. read list =
      20. write list = "zios007"
      21. [Media]
      22. path = /media/4df4c428-3410-46a9-8e52-c74de396ab2a/Media/
      23. guest ok = no
      24. read only = no
      25. browseable = yes
      26. inherit acls = yes
      27. inherit permissions = no
      28. ea support = no
      29. store dos attributes = no
      30. printable = no
      Display All


      So i guess is pointing correctly.

      I've also did the Reset Permissions on Shared Folders > Reset permissions.

      Selected my shared folder Backup on Shared folder. And I left Permissions as it was (Default). And checked the Clear ACLs.
      But it still empty my folder when I try to connect via Windows Explorer.
    • In the above smb.conf the backups looks fine but the media one does not. The media share is missing a bunch of stuff. I got feeling that the smb config file does not mesh with the config.xml either. You should not just randomly delete a shared folder via the command line either. It will cause problems because the necessary changes to the config.xml will not be made. Ugh...

      I would resintall and wipe the drives. You will not make the same mistakes and know you know correctly how to make the shares.