Issue connecting to SMB after SSD failure


Recommended Posts

First, the issue appears to be one between this Pc and your Unraid server using the SMB protocol.  Let's see if we can narrow the scope of the problem.

 

1--   What OS is this PC using?  Is a free standing PC of a VM?

  

2--  Can you connect to the GUI from this PC?

 

3--  Are you trying to logon as root?   (root is not allowed as SMB client user!) 

 

4-- Are you trying to connect using a second set login credentials to the same server?   SMB will usually allow only one logon from each client.  

 

EDIT:   Why do you have 148 shares? 

Edited by Frank1940
Link to comment
9 hours ago, Frank1940 said:

First, the issue appears to be one between this Pc and your Unraid server using the SMB protocol.  Let's see if we can narrow the scope of the problem.

 

1--   What OS is this PC using?  Is a free standing PC of a VM?

Windows 10 both PC's Version 1809 (OS Build 17763.557)

  

2--  Can you connect to the GUI from this PC?

Yes

 

3--  Are you trying to logon as root?   (root is not allowed as SMB client user!) 

I know have user with the same as my PC logins.

 

4-- Are you trying to connect using a second set login credentials to the same server?   SMB will usually allow only one logon from each client.  

While my cache drive failed and then I had this issue, think the long list of shares was caused by rebuilding my cache, shares and dockers.

 

 

To be honest I don't think it's my PC's I have turned off SMBv1 and researched similar issues. Both android and windows say the server is refusing connections. See attached smb status as it doesn't even show any shares.

 

Thanks for the reply and trying to help! Having a file share that doesn't share is annoying lol :)!

 

putty_2019-06-28_17-53-44.png

chrome_2019-06-28_18-01-50.png

putty_2019-06-28_18-10-38.png

chrome_2019-06-28_18-14-12.png

Edited by Krobbinsit
Add screenshot
Link to comment

Your Diagnostics file is showing 148 shares!!!  (Because the diagnostics file is automanized for your privacy protection, I can't tell what the Share names actually are.) When I look at your screen capture, I see eight!  Something is going on.

 

Look at Share Tab/page again.  See the Compute All button-- Use it to run a Sanity Test.  

 

See the folder icon under the View Column for each share-- Use it to browse each share to make sure everything looks right. 

 

Be sure to actually take a look at your Diagnostics file to see if you can figure what is being shown.  You know what is in your shares, I don't...

Edited by Frank1940
Link to comment

It is showing a lot in the shares folder in diagnostics/flash drive folders as when I was rebuilding my dockers I accidentally set the Radarr movie path to the share folder somehow and it created folder aka shares. Fixed the path issue with radarr and deleted the shares in the gui, which left the .cfg files in the shares folder with 148 folders. 

 

I shutdown removed the flash drive and deleted all the blank movie folders from the shares folder and now they aren't there.

 

Can I send you a non sanitized diagnostic privately?  Or is it safe here?

 

Screenshot is after the compute all.

chrome_2019-06-29_08-44-34.png

tower-diagnostics-20190629-1245.zip

Edited by Krobbinsit
Link to comment

OK, I think I see what happened.  I have couple of extra .cfg files on my flash drive in the shares folder from (probably) when I create directories for testing purposes.  Eventually, once a share is recreated, the .cfg file is there forever in the shares folder.  But it sure does make things messy from a troubleshooting standpoint.  @limetech, any reason for these files being there after a share has been deleted?

 

Now, I question why you deactivated the earlier SMB protocols.  Usually, we have to turn them back on when there are access problems.  (SMBv1 is a security issue for corporate networks and other places which permit unrestricted 'guest' access.)  Let's address that a bit later.  

 

WIN10 has been a headache from the beginning.  MS's emphasis  has been on security and they are constantly making changes in their SMB setups to achieve that.  Often, this will break things for many of us.  (That's why big corporations have IT departments that carefully test all of MS updates before they deploy them! )

 

As I look at your setup, I can see two areas where you could be having problems--  General SMB access or a credential (user name/password) issues.  Unfortunately Ms does not give a good clues as to reason for failure to connect.  Let's work with that WIN10 computer only.  (I have no clue on what to do about that Android phone.)

 

You don't have any public shares but you do have one that is Secure.  Using Windows Explorer (File Manager), click on 'Network'.  Do you see your server listed?  Can you open that server up to see your shares?  (While I don't have any Private shares I do have Secure ones and they are visible.)  Can you list the files in the  downloads share? 

 

Another thing to check.  In the search window on the taskbar, type credential manager and open it up.  Look at the Windows Credentials.  Are there any listed for your server?  If so, delete them.  You do remember the user name and password, don't you?  (IF you don't, you will probably have to delete that user on your server and create a new one.)   

 

IF you don't see your server in Windows Explorer, get the IP address of your server.  (From your Diagnostics, it is 10.10.0.10 )  On the address bar of Windows Explorer, type     \\10.10.0.10    and the server should now be visible.  

Edited by Frank1940
Link to comment

Correctly SMBv1 is enabled, I turned it off while troubleshooting. 

 

I have tested public/secure shares also and tried file explorer with the server IP and \\tower. 

 

I am a IT networking professional and have attempted all these troubleshooting before posting. 

 

I believe at the moment the unraid server isn't accepting any SMB connections. Which is the root of my issues. I don't see any SMB logs at all in syslogs or anywhere in the diagnostic files. You happen to know where these would be logged, if logged? 

 

I do appreciate your time trying to help me figure this out! 

 

 

Link to comment

OK, now let's start at the beginning.  You might want to read this thread and follow the information on the first page of the thread:

 

     https://forums.unraid.net/topic/53172-windows-issues-with-unraid/

 

 

(I probably should directed you there first but I was hoping it would be an quick easy solution...) You really want your Unraid server to be the Local Master.  Experience has shown that things tend to behave much better if it is!  

 

There is a tool that can be run on your WIN10 computer which will give the low down of what the Win10 Computer thinks your Local SMB network looks like and how it is configured.  (I have it installed on my WIN10 computer and it does a nice job.  However, as with all downloads, watch what is happening when it downloads and virus scan it first.)  

 

     https://scottiestech.info/downloads/

 

Be sure that you have installed the Dynamix Local Master plugin (get it via the APPS manager) as it will give further information on what the status is of the SMB network from the server's viewpoint.    

 

Having walked several different folks through this minefield that is SMB, you will get it working eventually.  But you may end up being another believer in witchcraft when you are done.   🙄

Link to comment

So your PC is seeing your Unraid server and it getting back a response via SMB.

 

I assume that your PC is named   PCMR-DESKTOP  and on IP of 10.10.0.08 

 

I also noted that when you run    smbclient  -L   command you got an error message of  

nt_status_connection_refused

Did you Google this error message and see if any of the results might impact on you?

 

One more question about when you tried to run it, when it asked for an password, did you try just hit the <ENTER> key and to see if you could get an anonymous login?  (I do get a response back from the command as anonymous user and some of my shares are Secure but I have none that are Private.) 


Now there is a problem with Windows and the way SMB handles logins in general.  You can begin reading about that in this post and the next few posts that follow: 

 

     https://forums.unraid.net/topic/25064-user-share-problem/?tab=comments#comment-228392

 

 

You might try booting in the Safe Mode and see if that behaves any differently.

Link to comment
1 hour ago, Frank1940 said:

 


nt_status_connection_refused

Looked up but not sure if I found something! Can you run pgrep command below, as this article shows. As mine doesn't show smbd daemons running, want to know if Unraid has them running also like ubuntu.

 

Attached my results but couldn't find smb.conf file in flash except smb-extra.cfg which I have recreated multiple times.

 

putty_2019-06-30_18-37-09.png

Edited by Krobbinsit
fix grammar/sentences
Link to comment
1 minute ago, jonathanm said:

It is extracted to RAM fresh and new on every boot. That's why the extra file exists on the flash, and is called by the sbm.conf file.

Ok thanks, I keep running into walls! not sure why the daemons aren't running then. As I do see in the bootup process Unraid starts smb.

Link to comment

If you look at /etc/samba/smb.conf, you will see that it calls  smb-extra.conf as an included file.  You can edit this file by going to:  Settings   >>>  SMB Settings  

The smb-extra.conf will be stored in the config folder/directory on the boot drive.  Be careful if you edit this file on your WIN10 computer as this file requires Linux line endings. 

 

EDIT:  There is a CA config Editor that you can get from the Apps plugin to do this job. 

 

You put whatever changes you require in there and those changes will be executed whenever SMB restarts.  (Just what is it, that you think you need to change.  Unfortunately, the last time I was involved in setting up SMB service on a Linux computer was more than fifteen years ago and I remember just enough about doing it to make really dangerous at this point!)

Edited by Frank1940
Link to comment
4 hours ago, Krobbinsit said:

Looked up but not sure if I found something! Can you run pgrep command below, as this article shows. As mine doesn't show smbd daemons running, want to know if Unraid has them running also like ubuntu.

You are right as I got this:

pgrep -l mbd
7047 smbd
32396 nmbd
32398 smbd
32401 smbd-notifyd

(1) Give us a new diagnostic file

 

(2) please boot to Safe Mode and see what happens there. 

Link to comment

Took another look at the your syslog and found this:

 

Jun 28 21:34:55 Tower emhttpd: shcmd (170): /etc/rc.d/rc.samba restart
Jun 28 21:34:57 Tower root: Starting Samba:  /usr/sbin/nmbd -D
Jun 28 21:34:57 Tower root:                  /usr/sbin/smbd -D
Jun 28 21:34:57 Tower root:                  /usr/sbin/winbindd -D
Jun 28 21:34:57 Tower emhttpd: shcmd (179): smbcontrol smbd close-share 'downloads'
Jun 28 21:34:57 Tower root: Can't find pid for destination 'smbd'
Jun 28 21:34:57 Tower emhttpd: shcmd (179): exit status: 1

As I recall, an exit code of '1' indicates a failure.  I tried googling  shcmd but did not get a hit that had anything to do with a Linux command.

 

Does anyone know anything about this?  @limetech

Link to comment

 

11 hours ago, Frank1940 said:

(1) Give us a new diagnostic file

 

(2) please boot to Safe Mode and see what happens there. 

Attached new file

 

tried same issue both with and without gui

 

Looked through and don't see that same error after deleting downloads share and recreating it. Still have the same symptoms/issue though :/

 

Still getting the same output with:

 

pgrep -l mbd
16631 nmbd

 

tower-diagnostics-20190701-1336 (1).zip

Edited by Krobbinsit
added more
Link to comment
On 6/29/2019 at 8:47 AM, Krobbinsit said:

Screenshot is after the compute all.

chrome_2019-06-29_08-44-34.png

Notice that there is a share 'downloads'.  Yet, in the latest syslog there is a notation that it does not exist.  The share is later created.  The entire sequence is quoted below.  Do you have any idea what is happening? 

 

Jul  1 09:34:38 Tower cache_dirs: ---------- Caching Directories ---------------
Jul  1 09:34:38 Tower cache_dirs: M..a
Jul  1 09:34:38 Tower cache_dirs: ----------------------------------------------
Jul  1 09:34:38 Tower cache_dirs: Setting Included dirs: Media,downloads
Jul  1 09:34:38 Tower cache_dirs: Setting Excluded dirs: 
Jul  1 09:34:38 Tower cache_dirs: min_disk_idle_before_restarting_scan_sec=60
Jul  1 09:34:38 Tower cache_dirs: scan_timeout_sec_idle=150
Jul  1 09:34:38 Tower cache_dirs: scan_timeout_sec_busy=30
Jul  1 09:34:38 Tower cache_dirs: scan_timeout_sec_stable=30
Jul  1 09:34:38 Tower cache_dirs: frequency_of_full_depth_scan_sec=604800
Jul  1 09:34:38 Tower cache_dirs: ERROR: included directory 'downloads' does not exist.
Jul  1 09:34:38 Tower cache_dirs: cache_dirs service rc.cachedirs: Started: '/usr/local/emhttp/plugins/dynamix.cache.dirs/scripts/cache_dirs -i "Media" -i "downloads" 2>/dev/null'
Jul  1 09:34:38 Tower root: Delaying execution of fix common problems scan for 10 minutes
Jul  1 09:34:38 Tower unassigned.devices: Mounting 'Auto Mount' Devices...
Jul  1 09:34:38 Tower emhttpd: Starting services...
Jul  1 09:34:38 Tower emhttpd: shcmd (125): /etc/rc.d/rc.samba restart
Jul  1 09:34:39 Tower rsyslogd:  [origin software="rsyslogd" swVersion="8.1903.0" x-pid="5989" x-info="https://www.rsyslog.com"] start
Jul  1 09:34:40 Tower root: Starting Samba:  /usr/sbin/nmbd -D
Jul  1 09:34:41 Tower root:                  /usr/sbin/smbd -D
Jul  1 09:34:41 Tower root:                  /usr/sbin/winbindd -D
Jul  1 09:34:41 Tower emhttpd: nothing to sync
Jul  1 09:34:41 Tower sudo:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir '/boot/config/ssl/certs' -showups
Jul  1 09:34:41 Tower unassigned.devices: Mounting 'Auto Mount' Remote Shares...
Jul  1 09:34:41 Tower sudo:     root : TTY=unknown ; PWD=/ ; USER=nobody ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/unbalance/unbalance -port 6237
Jul  1 09:35:50 Tower emhttpd: req (2): shareNameOrig=&shareName=downloads&shareComment=&shareAllocator=highwater&shareFloor=0&shareSplitLevel=&shareInclude=&shareExclude=&shareUseCache=yes&shareCOW=auto&cmdEditShare=Add+Share&csrf_token=****************
Jul  1 09:35:50 Tower emhttpd: shcmd (134): mkdir '/mnt/user/downloads'
Jul  1 09:35:50 Tower emhttpd: shcmd (135): chmod 0777 '/mnt/user/downloads'
Jul  1 09:35:50 Tower emhttpd: shcmd (136): chown 'nobody':'users' '/mnt/user/downloads'
Jul  1 09:35:50 Tower emhttpd: Starting services...
Jul  1 09:35:50 Tower emhttpd: shcmd (138): /etc/rc.d/rc.samba restart
Jul  1 09:35:52 Tower root: Starting Samba:  /usr/sbin/nmbd -D
Jul  1 09:35:52 Tower root:                  /usr/sbin/smbd -D
Jul  1 09:35:52 Tower root:                  /usr/sbin/winbindd -D

The last line is the last line in the syslog of this diagnostics file.  You should be able to find the entries after this  line at 09:35:52 in the  Tools   > System Log 
 

Did SMB restart or not?  I would assume that it did not.  The Shares information is stored in the /config/share folder/directory.  IF you look here:

 

https://wiki.unraid.net/Files_on_v6_boot_drive

 

You will see that these files in the shares folder will be regenerated with the default settings if they are deleted.  You indicated that this folder had a lot of extra entries in it and I am thinking that may be misconfiguration/syntax errors in some of them.  I am wondering if deleting all of the entries in the shares folder might be a way to fix the problem.  OF course, you will have to reset the security on all the shares after you did this but few screenshots of the present settings should make it easy to set them up again.  IF you decide to do this, make a complete backup copy of the flash drive before you start!  You can do this from  Main   >>>   Boot Device    Click on 'Flash'  under the "Device" column, then look for the 'FLASH BACKUP' button under the   "Flash Device Settings" section.

Quote

 

 

Edited by Frank1940
Link to comment
5 hours ago, Frank1940 said:

You will see that these files in the shares folder will be regenerated with the default settings if they are deleted.  You indicated that this folder had a lot of extra entries in it and I am thinking that may be misconfiguration/syntax errors in some of them.  I am wondering if deleting all of the entries in the shares folder might be a way to fix the problem.  OF course, you will have to reset the security on all the shares after you did this but few screenshots of the present settings should make it easy to set them up again.  IF you decide to do this, make a complete backup copy of the flash drive before you start!  You can do this from  Main   >>>   Boot Device    Click on 'Flash'  under the "Device" column, then look for the 'FLASH BACKUP' button under the   "Flash Device Settings" section.

 

 

Wiped out the Share folder and reset the permissions. In the logs getting the 

 

Jul 1 16:39:15 Tower root: Can't find pid for destination 'smbd'
Jul 1 16:39:15 Tower emhttpd: shcmd (532): exit status: 1

 

while doing the permissions, see attached diagnostics.

 

 

tower-diagnostics-20190701-2040.zip

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.