I went through this process
[[root tip] [How To] Basic Samba Setup and Troubleshooting]
first time when I setup my samba and It was working fine , I think this time it has something to do with samba itself and not how you setup it. I was waiting for an update for samba and yes indeed there was an update today I updated it but didn’t work.
few days ago I was getting this result
status smb.service ✔
[sudo] password for sim:
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; preset: disabled)
Active: active (running) since Wed 2022-08-10 07:39:06 IST; 4h 53min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 1413 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4 (limit: 9367)
Memory: 15.2M
CPU: 1.865s
CGroup: /system.slice/smb.service
├─ 1413 /usr/bin/smbd --foreground --no-process-group
├─ 1421 /usr/bin/smbd --foreground --no-process-group
├─ 1422 /usr/bin/smbd --foreground --no-process-group
└─67824 /usr/bin/smbd --foreground --no-process-group
Now after update I’m getting this result
sudo systemctl status smb.service 2 ✘ 25m 34s
[sudo] password for sim:
× smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; preset: disabled)
Active: failed (Result: timeout) since Sun 2022-08-14 12:03:58 IST; 36min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1534 ExecStart=/usr/bin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=TERM)
Main PID: 1534 (code=killed, signal=TERM)
CPU: 169ms
Aug 14 12:02:28 shank systemd[1]: Starting Samba SMB Daemon...
Aug 14 12:02:28 shank smbd[1534]: [2022/08/14 12:02:28.292646, 0] ../../source3/smbd/server.c:1741(main)
Aug 14 12:02:28 shank smbd[1534]: smbd version 4.16.4 started.
Aug 14 12:02:28 shank smbd[1534]: Copyright Andrew Tridgell and the Samba Team 1992-2022
Aug 14 12:03:58 shank systemd[1]: smb.service: start operation timed out. Terminating.
Aug 14 12:03:58 shank systemd[1]: smb.service: Failed with result 'timeout'.
Aug 14 12:03:58 shank systemd[1]: Failed to start Samba SMB Daemon.
it’s like samba isn’t even starting now
At this point I’m thinking to downgrade samba package but could possibly break dependencies and break the system