I've recently upgraded my home server from Ubuntu 20.04 to 22.04 and it's been pretty rough. Today when attempting to connect to the file shares from Windows I got a connection refused message. I remember being asked about configuration files during the upgrade and chose to keep my smb.conf because the only difference were my configured shares.
Troubleshooting I went to the Services list on the Web Console and saw that smbd and nmbd were both listed as Not Running, masked. I had not run into this before and some searching seemed to indicate that the thing to do was to unmask it, start it, and if you get an error, check the logs.
- systemctl unmask smbd.service && systemctl unmask nmbd.service
- systemctl restart smbd.service nmbd.service
- journalctl -xe
There were no errors starting the service, and the journalctl just said they had been started. The web console said they were running, even their detail pages, as did service --status-all
but I still could not connect from windows or even with smbclient on the server. With debugging on it said it couldn't connect to 139 or 445. I tried looking at a longer log list and even in the /var/log/samba/ log files. No clues.
- journalctl -r