Krobbinsit Posted June 27, 2019 Share Posted June 27, 2019 Anyone able to help? Tried renaming network.cfg, passd, shadow files on the flash and also trying to see if any issue with sectors on the flash drive with no luck! Unraid is still refusing SMB connects SMB v1 or SMB v2/3. This is from both Windows and Android phone, so that rules out the windows smb v1 issue. tower-diagnostics-20190627-0806 (1).zip Quote Link to comment
Frank1940 Posted June 28, 2019 Share Posted June 28, 2019 (edited) 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 June 28, 2019 by Frank1940 Quote Link to comment
Krobbinsit Posted June 28, 2019 Author Share Posted June 28, 2019 (edited) 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 :)! Edited June 28, 2019 by Krobbinsit Add screenshot Quote Link to comment
Frank1940 Posted June 29, 2019 Share Posted June 29, 2019 (edited) 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 June 29, 2019 by Frank1940 Quote Link to comment
Krobbinsit Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) 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. tower-diagnostics-20190629-1245.zip Edited June 29, 2019 by Krobbinsit Quote Link to comment
Frank1940 Posted June 29, 2019 Share Posted June 29, 2019 (edited) 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 June 29, 2019 by Frank1940 Quote Link to comment
Krobbinsit Posted June 29, 2019 Author Share Posted June 29, 2019 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! Quote Link to comment
Frank1940 Posted June 29, 2019 Share Posted June 29, 2019 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. 🙄 Quote Link to comment
Krobbinsit Posted June 30, 2019 Author Share Posted June 30, 2019 Thanks, Please see attached which I knew already as I did have the Dynamix Local Master plugin installed while trying to troubleshoot. Quote Link to comment
Frank1940 Posted June 30, 2019 Share Posted June 30, 2019 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. Quote Link to comment
Krobbinsit Posted June 30, 2019 Author Share Posted June 30, 2019 (edited) 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. Edited June 30, 2019 by Krobbinsit fix grammar/sentences Quote Link to comment
JonathanM Posted June 30, 2019 Share Posted June 30, 2019 13 minutes ago, Krobbinsit said: couldn't find smb.conf file in flash That's because it's not on the flash directly, it's extracted from the archive during bootup and placed in /etc/samba/ Quote Link to comment
Krobbinsit Posted June 30, 2019 Author Share Posted June 30, 2019 1 minute ago, jonathanm said: That's because it's not on the flash directly, it's extracted from the archive during bootup and placed in /etc/samba/ Is it possible to few/modify or delete to make a new one? Quote Link to comment
JonathanM Posted June 30, 2019 Share Posted June 30, 2019 2 minutes ago, Krobbinsit said: Is it possible to few/modify or delete to make a new one? 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. Quote Link to comment
Krobbinsit Posted June 30, 2019 Author Share Posted June 30, 2019 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. Quote Link to comment
Frank1940 Posted July 1, 2019 Share Posted July 1, 2019 (edited) 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 July 1, 2019 by Frank1940 Quote Link to comment
Frank1940 Posted July 1, 2019 Share Posted July 1, 2019 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. Quote Link to comment
Frank1940 Posted July 1, 2019 Share Posted July 1, 2019 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 Quote Link to comment
Krobbinsit Posted July 1, 2019 Author Share Posted July 1, 2019 (edited) 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 July 1, 2019 by Krobbinsit added more Quote Link to comment
JonathanM Posted July 1, 2019 Share Posted July 1, 2019 1 hour ago, Krobbinsit said: tried same issue both with and without gui What does that have to do with safe mode? 12 hours ago, Frank1940 said: (2) please boot to Safe Mode and see what happens there. Quote Link to comment
Frank1940 Posted July 1, 2019 Share Posted July 1, 2019 (edited) On 6/29/2019 at 8:47 AM, Krobbinsit said: Screenshot is after the compute all. 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 July 1, 2019 by Frank1940 Quote Link to comment
Frank1940 Posted July 1, 2019 Share Posted July 1, 2019 OH, one thing I did not mention is to do some investigation first from the Terminal program and see if the files you expect to find in the 'downloads' directory are actually there. Quote Link to comment
Krobbinsit Posted July 1, 2019 Author Share Posted July 1, 2019 I deleted the downloads share and rebuilt it as the syslogs previous seem to point to an error while trying to link downloads to SMB. This seem to fix that error but still no luck. I have removed/delete smb-extra on a few troubleshooting steps. Quote Link to comment
Krobbinsit Posted July 1, 2019 Author Share Posted July 1, 2019 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 Quote Link to comment
Krobbinsit Posted July 1, 2019 Author Share Posted July 1, 2019 This thread may help me! Going to replace flash drive as this guy did later tonight! Fingers crossed! Quote Link to comment
Recommended Posts
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.