SMB shares unavailable after upgrade to 12.0-U3 from 12.0-U2.1
Description
Problem/Justification
Impact
is caused by
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Yes, it should be fixed in U4.
12.0-U4 has been released but this issue isn’t in the release notes: https://www.truenas.com/docs/releasenotes/core/12.0u4/. Should this issue be marked as resolved and in the list of bug fixes, or did the fix not make it into the release?
Thank you @Andrew Walker - that workaround does indeed work for me on 12.0-U3.1. Took a few moments but the full list of shares now appears configured.
The upcoming release where it is fixed is U4. You can probably work around the issue by running the command "midclt call smb.configure".
I've upgraded to 12.0-U3.1 and the problem persists. /usr/local/etc/smb4_share.conf
is untouched by the upgrade but the shares are missing until I go through one-by-one and re-save them via the GUI. As a test, I rebooted the system after "fixing" several shares and they disappear again on boot – so the issue is going to affect users every time they boot up. Thankfully, the point of a NAS is that it's permanently on, but it's fiddly to try and click through shares each boot.
@Waqar - is there something like script that can be run on boot that worksaround the issue? Such as a script that mimics the same behavior of putting the right config in the right area and re-saving all shares?
As mentioned at https://www.truenas.com/community/threads/truenas-12-0-reaches-prime-time.92513/post-640851 , I upgraded from 12.0-U2.1 to 12.0-U3 and lost my SMB shares.
I have various SMB shares configured but none visible after the upgrade to 12.0-U3:
% smbclient -U user //127.0.0.1/home
Enter WORKGROUP\user password:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
% smbclient -U user -L 127.0.0.1
Enter WORKGROUP\user's password:
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (NAS Server)
My various shares, including the one I tried to connect to first up should be there, but were missing.
I tried rebooting and tried restarting samba_server and saw no difference.
Was just about to rollback to U2.1 but I went and edited all shares one-by-one, resaving without making any changes, and this brought them back and visible to smbclient -L. Haven't yet rebooted to check if this fix persists.
I didn't check the contents of /usr/local/etc/smb4_share.conf prior to editing my shares, unfortunately.