Thanks for the reply Axel.
Here’s the output from these commands:
sudo systemctl stop smbd
sudo systemctl start smbd
sudo journalctl -xe
░░ Subject: A start job for unit smbd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit smbd.service has begun execution.
░░
░░ The job identifier is 35215.
Oct 03 13:42:04 freedombox update-apparmor-samba-profile[16252]: grep: /etc/apparmor.d/samba/smbd-shares: No such file or directory
Oct 03 13:42:04 freedombox update-apparmor-samba-profile[16249]: /usr/share/samba/update-apparmor-samba-profile: line 59: /etc/apparmor.d/samba/smbd-shares.new: Read-only file system
Oct 03 13:42:05 freedombox update-apparmor-samba-profile[16253]: diff: /etc/apparmor.d/samba/smbd-shares: No such file or directory
Oct 03 13:42:05 freedombox update-apparmor-samba-profile[16253]: diff: /etc/apparmor.d/samba/smbd-shares.new: No such file or directory
Oct 03 13:42:05 freedombox update-apparmor-samba-profile[16254]: mv: cannot stat '/etc/apparmor.d/samba/smbd-shares.new': No such file or directory
Oct 03 13:42:07 freedombox systemd[1]: Started smbd.service - Samba SMB Daemon.
░░ Subject: A start job for unit smbd.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit smbd.service has finished successfully.
░░
░░ The job identifier is 35215.
sudo systemctl status smbd
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/smbd.service.d
└─freedombox.conf
Active: active (running) since Tue 2023-10-03 13:42:07 BST; 1min 17s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 16247 ExecCondition=/usr/share/samba/is-configured smb (code=exited, status=0/SUCCESS)
Process: 16249 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 16256 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 3 (limit: 2099)
Memory: 20.4M
CPU: 3.341s
CGroup: /system.slice/smbd.service
├─16256 /usr/sbin/smbd --foreground --no-process-group
├─16258 /usr/sbin/smbd --foreground --no-process-group
└─16259 /usr/sbin/smbd --foreground --no-process-group
sudo systemctl stop samba
sudo systemctl start samba
sudo journalctl -xe
░░ Subject: A start job for unit samba-ad-dc.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit samba-ad-dc.service has begun execution.
░░
░░ The job identifier is 35310.
Oct 03 13:44:40 freedombox systemd[1]: samba-ad-dc.service: Skipped due to 'exec-condition'.
░░ Subject: Unit skipped
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit samba-ad-dc.service was skipped due to an ExecCondition= command failure, and has
░░ entered the 'dead' state with result 'exec-condition'.
Oct 03 13:44:40 freedombox systemd[1]: Condition check resulted in samba-ad-dc.service - Samba AD Daemon being skipped.
░░ Subject: A start job for unit samba-ad-dc.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit samba-ad-dc.service has finished successfully.
░░
░░ The job identifier is 35310.
sudo systemctl status samba
○ samba-ad-dc.service - Samba AD Daemon
Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; preset: enabled)
Active: inactive (dead) (Result: exec-condition) since Tue 2023-10-03 13:44:40 BST; 11min ago
Condition: start condition failed at Tue 2023-10-03 13:44:40 BST; 11min ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Process: 16278 ExecCondition=/usr/share/samba/is-configured samba (code=exited, status=1/FAILURE)
CPU: 308ms
As far as I can tell, I have the server and client set up just the same as they were when it was working. The error when trying to mount the share on the client is:
mount error(113): could not connect to 192.168.1.xxxUnable to find suitable address.
Both dmesg and journalctl on the client say:
CIFS: Attempting to mount \\192.168.1.xxx\data
CIFS: VFS: Error connecting to socket. Aborting operation.
CIFS: VFS: cifs_mount failed w/return code = -113