The Short:
Had a power outage last night, controlled shutdown didn’t work, had to force it. Network drives wouldn’t reconnect, cannot reconnect via hostname even after removing mapped drives.
The Long:
So, I had two power outages yesterday. One while I was out, the other after i got home. Both times it was on my UPS. The first time, the UPS lasted long enough to keep the server powered the entire time. The second time however, it had not have enough time to fully recharge (tho i still had 15 minuets to do a proper shutdown).
Tapped the power button, which (normally) triggers a controlled shutdown. It didnt seem to do it this time. I tried again, it still sat there. I hooked up a monitor and could not get a signal, so had no console to work with. By the time all this transpired, the UPS was getting low so i decided to just force a shutdown on it.
When power came back up, the network drives would not reconnect. None of them (i have three mapped normally). I forget the exact wording of the error but it said ”Error occurred while reconnection. The local device name is already in use.”. After searching several answers suggested it was a Windows issue and not a TrueNas issue. Sure enough, i can connect to the shares via IP address, and though a different machine (running Linux). However I can no longer connect to it via its hostname like I was doing on either my Windows or Linux machines.
I double checked and the hostname for it is still in place, so that didn’t change. My router has its IP reserved so it specifically doesn’t change. Following the suggestions, i disconnected the mapped drives and restarted. Checking Get-PSDrive in Powershell shows the drives no longer connected. However i still cannot reconnect via my servers hostname. Restarting the SMB service (several times) didn’t change anything either.
When I attempt to connect to the host name in the address bar\Run, I just get “Windows cannot access \\Hostname\”
I’ve no idea why this happened or how to correct it. Feels like i need to clean/reset something within windows still, but im unsure what. One other suggestion just to solve the “already in use” issue was to go into the registry and delete the “MountPoints2” folder, but im unsure this would solve that problem.
Help me Obi-wan Kenobi