Lost SMB Access After Power Outage


thestip

Recommended Posts

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 by thestip
info
Link to comment

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.

Link to comment
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.

Link to comment

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?

Link to comment
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 by thestip
Link to comment

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 by thestip
Link to comment

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.

Link to comment

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 by thestip
Link to comment

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:~# 

 

Link to comment

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 by thestip
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.