Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lost SMB Access After Power Outage

Featured Replies

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

  • Author

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.

Have you read this sticky thread?

  • Author

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.

Can you ping it?

 

Checked your router for IP clashes and stuff, that would be the first place I'd go investigating this.

Edited by CHBMB

  • Author

Static IP

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.

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.

  • Author

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.

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.

  • Author

"C:\WINDOWS\system32>net use * /delete
There are no entries in the list."

 

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?

  • Author
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

  • Author

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.master.png.d89acb8e271523e4ee5f2b139cf922fe.png

  • Author

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

  • Author

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

  • Author

Using the 'top' and 'htop' commands, shouldn't I see something for Samba? It's not listed at all.

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.

  • Author

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

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

 

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.

  • Author

root@PlanetExpress:/# ps aux | grep smb
root     25159  0.0  0.0   9652  1840 pts/1    S+   11:52   0:00 grep smb

  • Author

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

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.