thestip Posted February 21, 2017 Share Posted February 21, 2017 (edited) Welp, before the big power outage things were working just fine. Power goes out, UPS shuts down the server as it should. When I fired it back up this morning, I can get to the server via web page and putty, and I can see the files and folders are there but none of my Kodi players can see the media and I can't see the server under my networked PCs any longer. Logs attached. Help! =) planet_express-diagnostics-20170221-1304.zip These are SMB shares, but it doesn't matter if I try to connect via my Win10 PC or one of my Pi boxes, none of them will see the shares that ARE there. I can re-share the folders as NFS, remap the sources and get Kodi to see the files, but I still can't access the server via Windows Network. Doesn't show up, doesn't respond to the name Edited February 22, 2017 by thestip info Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 I can't even get to the server via IP in windows, yet it works fine with the same IP in a browser. I don't understand how all this happened after a clean shutdown... Everything was working perfectly before. Quote Link to comment
John_M Posted February 22, 2017 Share Posted February 22, 2017 Have you read this sticky thread? Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 I set the server to be the master, turned off other devices and according to the master browser plugin for unraid, the unraid box is the master... till I turn on my laptop, then it takes over as master... again, according to the plugin. (my laptop goes on and off all the time, I've never had it take over as a master browser before) I've added a reg key that's supposed to disable becoming the master, rebooted and get the same thing. As soon as the laptop is back online, it becomes the master. (Win 10). So I then disabled the browser service and that seems to have stopped it from taking over. However, I still can't access SMB shares from any device and the server still does not appear in the network. Quote Link to comment
CHBMB Posted February 22, 2017 Share Posted February 22, 2017 (edited) Can you ping it? Checked your router for IP clashes and stuff, that would be the first place I'd go investigating this. Edited February 22, 2017 by CHBMB Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 Static IP Quote Link to comment
John_M Posted February 22, 2017 Share Posted February 22, 2017 3 minutes ago, CHBMB said: Can you ping it? I understood that he could access the web GUI so I'm assuming a Windows/SMB problem rather than an IP problem. Quote Link to comment
CHBMB Posted February 22, 2017 Share Posted February 22, 2017 2 minutes ago, John_M said: I understood that he could access the web GUI so I'm assuming a Windows/SMB problem rather than an IP problem. My bad, missed that bit. Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 Definitely an SMB error. If I create a new NFS source, the files play fine on my OpenElec boxes and my Kodi installs. However, all the PCs here are Windows so I need Samba access. Quote Link to comment
jonp Posted February 22, 2017 Share Posted February 22, 2017 9 minutes ago, thestip said: Definitely an SMB error. If I create a new NFS source, the files play fine on my OpenElec boxes and my Kodi installs. However, all the PCs here are Windows so I need Samba access. From a Windows PC, open a command prompt and type the following: net use * /delete See if after running that command if the client can be connected to the server. I'm not sure what the equivalent of that command would be for Linux guests off the top of my head, but please try that from a Windows client first. Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 "C:\WINDOWS\system32>net use * /delete There are no entries in the list." Quote Link to comment
jonp Posted February 22, 2017 Share Posted February 22, 2017 Can you please post your system diagnostics? Login to the webGui and go to the Tools > Diagnostics page and click the Download button. Just saw you already did this. I don't see anything standing out in your logs either. What is your network setup? Are you clients on the same subnet as your server? What kind of switch/router are you using? Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 Here are the latest. I just rebooted. The previous diags are in my first post. Thanks! planetexpress-diagnostics-20170221-1926.zip Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) 1 hour ago, jonp said: Can you please post your system diagnostics? Login to the webGui and go to the Tools > Diagnostics page and click the Download button. Just saw you already did this. I don't see anything standing out in your logs either. What is your network setup? Are you clients on the same subnet as your server? What kind of switch/router are you using? Media players and servers have static IPs, laptops etc are dhcp. All are on the same network (10.0.0.xx, 255.255.255.0). Modem -> Router/Wireless (Nighthawk R7000, 1 wired Pi here, laptops, phones, etc. are wireless). Cable goes to a switch downstairs that has the unraid box on it, a readyNAS (off) and a cable to another POE switch for the IP cameras. They all have static IPs (10.0.10.xx)including the laptop running them. One more cable runs to an old router acting as a switch/AP (TP-Link, C7 I think) and has a Pi wired to it. Aside from the Nighthawk router, this has been the setup for over a year. I got and setup the new router a week ago, no problems there. Aside from a new password and the IP ranges, I haven't messed with it. All the Pis are off as well as the extra switch/old router. The unraid box is on as well as two laptops. No other PCs/servers running. Edited February 22, 2017 by thestip Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 I'm getting the feeling that samba is simply not starting. One time, and one time only, did this list the unraid box as the master server. Now it's just blank. Refresh, blank. Reboot, blank. Stop and start samba via the UI, blank. Previously, my laptop was listed here. Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) Typed in "samba status" and got: root@PlanetExpress:/var/log/samba# samba status Starting Samba: /usr/sbin/nmbd -D /usr/sbin/smbd -D /usr/sbin/winbindd -D root@PlanetExpress:/var/log/samba# After that, the unraid box shows up as the master server again. (Still can't access the shares) Edited February 22, 2017 by thestip Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) Bump. " Sometimes the file /etc/samba/private/secrets.tbd gets corrupted and the samba service won't start. Follow these instructions. " I have no 'private' folder under /etc/samba, just lmhosts and 3 conf files. Edited February 22, 2017 by thestip Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) Is there a way to wipe out everything Samba related and start fresh? Something in Samba has become corrupt and I can't access any of my SMB shares from Windows or Kodi/Openelec. This is related to my other post: https://forums.lime-technology.com/topic/55109-lost-smb-access-after-power-outage/ Edited February 22, 2017 by thestip Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 Using the 'top' and 'htop' commands, shouldn't I see something for Samba? It's not listed at all. Quote Link to comment
JonathanM Posted February 22, 2017 Share Posted February 22, 2017 Unraid is loaded into RAM from the bz* archives on the flash drive at boot time, so everything is loaded fresh when you reboot. The only thing you need to do is revert any changes you made to smb-extra.conf, and possibly the users and passwords. If it were me, I'd first set up a test USB stick with an unraid trial installation, and assign all your drives to the same slots. Check access, and make sure it works. Given what you outlined in your other thread, I'm not at all positive there isn't something else wrong besides the unraid install. Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) Never touched smb-extra.conf Shouldn't I see something for SMB when I run 'top' or look at the running processes from the UI? I was thinking about upgrading unraid to the newest version, but I like your idea better... assuming I can find another USB stick around here. Edited February 22, 2017 by thestip Quote Link to comment
John_M Posted February 22, 2017 Share Posted February 22, 2017 You won't necessarily see smbd in top because it only has room to show some processes. Try the ps command: root@Lapulapu:~# ps aux | grep smb root 1544 0.0 0.0 307240 14380 ? S Feb18 0:08 /usr/sbin/smbd -D root 1602 0.0 0.0 298580 15592 ? Ss Feb17 0:10 /usr/sbin/smbd -D root 1604 0.0 0.0 292256 4688 ? S Feb17 0:00 /usr/sbin/smbd -D root 1605 0.0 0.0 292272 4364 ? S Feb17 0:00 /usr/sbin/smbd -D root 22948 0.0 0.0 9640 1844 pts/1 S+ 19:43 0:00 grep smb root@Lapulapu:~# Quote Link to comment
John_M Posted February 22, 2017 Share Posted February 22, 2017 36 minutes ago, thestip said: Using the 'top' and 'htop' commands, shouldn't I see something for Samba? It's not listed at all. I replied to this in your other thread. It's not a good idea to have two threads open about the same problem. Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 root@PlanetExpress:/# ps aux | grep smb root 25159 0.0 0.0 9652 1840 pts/1 S+ 11:52 0:00 grep smb Quote Link to comment
thestip Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) The other thread was mainly just to ask if I could wipe out smb info. I referenced this post in case people wanted to know why I wanted to do it. Sorry, I edited the other post title. I ran the command you suggested in the other thread, this is the result: root@PlanetExpress:/# ps aux | grep smb root 25159 0.0 0.0 9652 1840 pts/1 S+ 11:52 0:00 grep smb I also ran htop and scrolled through all the services. Nothing for smb. Edited February 22, 2017 by thestip 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.