unRAID OS Version:
6.0-beta12
Description:
Building my first unraid server. After adding disks to array and starting array, I noticed "Enable user shares" was off. After enabling that, tried to create my first share, but it failed. I stopped the array and restarted it, but share creation still failed (after clicking "Add Share" on the share settings page, no share was ever created and no error was produced). Syslog pasted below. I noticed on the server terminal the error "mkdir: cannot create directory '/mnt/user/NewShare': No such file or directory". As a test, I manually performed "mkdir /mnt/user". Now I can create a share successfully. Not certain if this was a proper solution, I deleted the "user" directory I created. I stopped the array, rebooted the server, and started the array. Now a "/mnt/user" and "/mnt/user0" exists and I can create shares via the webgui. I wouldn't expect the user to have to reboot or manually create this subdirectory.
How to reproduce:
Create new array
Start array
Settings/Global Share Settings/
Enable user shares: Yes
Shares tab
Add Share
Enter a name and apply
Expected results:
Share created
Actual results:
Share not created and no acknowledgement or error. "mkdir: cannot create directory '/mnt/user/NewShare': No such file or directory" displayed on console.
Other information:
Jan 13 17:06:40 Tower emhttp: shcmd (26845): mkdir "/mnt/user/NewShare"
Jan 13 17:06:40 Tower emhttp: shcmd: shcmd (26845): exit status: 1
Jan 13 17:06:40 Tower emhttp: shcmd (26846): rm "/boot/config/shares/NewShare.cfg"
Jan 13 17:06:40 Tower emhttp: shcmd (26847): :>/etc/samba/smb-shares.conf
Jan 13 17:06:40 Tower avahi-daemon[595]: Files changed, reloading.
Jan 13 17:06:40 Tower emhttp: Restart SMB...
Jan 13 17:06:40 Tower emhttp: shcmd (26848): killall -HUP smbd
Jan 13 17:06:40 Tower emhttp: shcmd (26849): cp /etc/avahi/services/smb.service- /etc/avahi/services/smb.service
Jan 13 17:06:40 Tower avahi-daemon[595]: Files changed, reloading.
Jan 13 17:06:40 Tower emhttp: shcmd (26850): pidof rpc.mountd &> /dev/null
Jan 13 17:06:40 Tower avahi-daemon[595]: Service group file /services/smb.service changed, reloading.
Jan 13 17:06:40 Tower emhttp: shcmd (26851): /etc/rc.d/rc.atalk status
Jan 13 17:06:40 Tower avahi-daemon[595]: Service "Tower" (/services/smb.service) successfully established.