Unraid not creating User Shares


Recommended Posts

I've had unRAID for over two years now without problems I could not find solutions for by searching the forums, however this one has me at a loss.

 

On a new build, when I try to create a user share all of the fields blank out after clicking apply and nothing is created. The log is as follows:

 

Dec 4 13:31:25 Normandy emhttp: shcmd (580): mkdir "/mnt/user/Movies"
Dec 4 13:31:25 Normandy shfs/user: shfs_mkdir: locate: Movies (2) No such file or directory
Dec 4 13:31:25 Normandy emhttp: shcmd: shcmd (580): exit status: 1
Dec 4 13:31:25 Normandy emhttp: shcmd (581): rm "/boot/config/shares/Movies.cfg"
Dec 4 13:31:25 Normandy emhttp: shcmd (582): :>/etc/samba/smb-shares.conf
Dec 4 13:31:25 Normandy avahi-daemon[11350]: Files changed, reloading.
Dec 4 13:31:25 Normandy emhttp: Restart SMB...
Dec 4 13:31:25 Normandy emhttp: shcmd (583): killall -HUP smbd
Dec 4 13:31:25 Normandy emhttp: shcmd (584): cp /etc/avahi/services/smb.service- /etc/avahi/services/smb.service
Dec 4 13:31:25 Normandy avahi-daemon[11350]: Files changed, reloading.
Dec 4 13:31:25 Normandy avahi-daemon[11350]: Service group file /services/smb.service changed, reloading.
Dec 4 13:31:25 Normandy emhttp: shcmd (585): pidof rpc.mountd &> /dev/null
Dec 4 13:31:25 Normandy emhttp: shcmd (586): /etc/rc.d/rc.atalk status
Dec 4 13:31:26 Normandy avahi-daemon[11350]: Service "Normandy" (/services/smb.service) successfully established.

 

It is running V6b12 basic (working on getting a key) and this problem still exists when I roll back to beta 4 (the same on my current tower is running).

 

Any advice would be greatly appreciated.

 

P.S. I precleared all of the disks (parity plus 4 data) and there are no issues with the drives.

 

Edit: Forgot to mention that the data disks are using XFS and I am able to access them manually and move files to them/create folders.

Link to comment

Really don't have anything insightful, except that it is happening for me on 6b12 as well, but with reiserfs (opposed to XFS) on the disks.

 

Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27617): mkdir "/mnt/user/iTunes"
Dec 10 18:11:05 unraid6b12 emhttp: shcmd: shcmd (27617): exit status: 1
Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27618): rm "/boot/config/shares/iTunes.cfg"
Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27619): :>/etc/samba/smb-shares.conf
Dec 10 18:11:05 unraid6b12 avahi-daemon[5185]: Files changed, reloading.
Dec 10 18:11:05 unraid6b12 emhttp: Restart SMB...
Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27620): killall -HUP smbd
Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27621): cp /etc/avahi/services/smb.service- /etc/avahi/services/smb.service
Dec 10 18:11:05 unraid6b12 avahi-daemon[5185]: Files changed, reloading.
Dec 10 18:11:05 unraid6b12 avahi-daemon[5185]: Service group file /services/smb.service changed, reloading.
Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27622): pidof rpc.mountd &> /dev/null
Dec 10 18:11:05 unraid6b12 emhttp: shcmd (27623): /etc/rc.d/rc.atalk status
Dec 10 18:11:06 unraid6b12 avahi-daemon[5185]: Service "unraid6b12" (/services/smb.service) successfully established.

 

Based on how my 'current' 5rc8 handles it, which really isn't relevant in the big scheme of things, every folder (all 35 on the disk I specified) did get turned into a share after not configs were found after mounting /mnt/user, writing to /etc/samba/smb-shares.conf (in memory).

 

However, as shown in my code/log snippet above, my attempt (unregistered USB stick) also had an exit status of 1 on the attempt to create the /mnt/user/iTunes directory, and then it went to remove the non-existent iTunes.cfg within the (empty) "flash"/config/shares folder of the server.  As to the underlying cause of the "exit status: 1" from shcmd, I'm not sure.  However, I am using "flash"/config/smb-extra.cfg for mounting a multi-partition disk outside of the array (toying with ext4, btrfs, xfs on one physical drive).

 

"flash"/config/share.cfg from my unraid6b12 instance, and based on the 5rc8 behavior shareUser="e" is enabled, while shareUser="-" is disabled.

# Generated settings:
shareUser="e"
shareUserInclude=""
shareUserExclude=""
shareSMBEnabled="yes"
shareNFSEnabled="no"
shareNFSFsid="100"
shareAFPEnabled="no"
shareInitialOwner="Administrator"
shareInitialGroup="Domain Users"
shareCacheEnabled="yes"
shareCacheFloor="2000000"
shareMoverSchedule="40 3 * * *"
shareMoverLogging="yes"
fuse_remember="330"
shareAvahiEnabled="yes"
shareAvahiSMBName="%h"
shareAvahiSMBModel="Xserve"
shareAvahiAFPName="%h-AFP"
shareAvahiAFPModel="Xserve"

Link to comment
  • 3 weeks later...

In a previous version it would not work if you used caps.. Could that be it ?

 

wasn't the case for me. the share names I used before the reboot were the same as after the reboot.

 

It seems like when you first create a flash drive, boot the system, assign drives and the system formats the drives and performs the initial parity check - right after this, one can't create share. Only after a reboot does creating shares work (this was the case for me)

 

Thanks!

Link to comment
  • 1 month later...

I'm having this problem as well. unRAID 6 will not let me create user shares even after rebooting as stated above.

 

Here's my syslog:

http://lime-technology.com/forum/index.php?action=dlattach;topic=35553.0;attach=24136

 

Any help?

 

FWIW, when I actually switched over to the servers monitor/keyboard it's telling me it can not create the share as the disk is too full (which does not appear to be showing up in the syslog). One disk has 787GB free, the other1.27GB free so I'm not sure what's in error there...? But Obviously it has something to do with why it's not working!

 

Link to comment
  • 2 weeks later...
  • 4 years later...

New user/ same/similar issue.

Sorry if i should have started a new thread.

 

I just setup my first unraid server today.

I have 5 drives currently installed. 2 parity, 2 drives (adding more later) , 1 cache ssd

They are currently doing parity sync 10%

 

I am unable to create any user shares.  User shares are turned ON in settings, docker off, VMs off.

*** in docker & vm settings it says "mnt/user/appdata" path does not exist

do i need to create mnt/user folder somehow?

 

When i go to shares > add share >  type in share name, set minimum space to 50,000,000kb, cache yes.

Click Add share, page reloads,  at bottom it says "starting services", nothing happens, no share in shares tab...

 

kinda lost at the moment.

 

 

big-d-diagnostics-20190808-0055.zip

Edited by TRusselo
Link to comment

According to your diagnostics, none of your disks are mounted (unsupported partition).  Did you actually format them in Unraid? Unraid must format any disk it will use in the array or cache pool. You can't create any user shares (or use the storage) with no mounted disks.

 

What else can you tell us about how you got to this point?

 

Post a screenshot of Main - Array Devices.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.