Samba failure between macOS Monterey and Home Assistant on RPI4

I did some system updates today, but before I started I tried to make a copy of a full backup… more or less my standard routine for updates. I backup the full backup file to my Mac using Samba.

This has never been an issue, but it has been 2 - 3 months since I last did this. Everything seemed OK, but I went ahead and reinstalled Samba on Home Assistant. I don’t remember what I had in the past, but today I found that I had to have compatibility mode set to true to get any hint of things working.

I went ahead and did all the updates and then proceeded to look into the Samba issue. In the Home Assistant Samba configuration the final/current setting is:

username: yyyyyyyyy
password: xxxxxxxxx
workgroup: WORKGROUP
compatibility_mode: true
veto_files:

  • ._*
  • .DS_Store
  • Thumbs.db
  • icon?
  • .Trashes
    allow_hosts:
  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.27.0/24
  • 169.254.0.0/16
  • fe80::/10
  • fc00::/7
    interfaces:
  • end0

When I go to the Mac and look at networking, the home assistant item is available in the network list and if I click “connect as” I get the Mac authentication box and I enter my username and password for the Samba Share and the shares show in the Mac Finder window.

Simce I am wanting to copy a file in the backup directory on Home Assistant, I double click on “Backup” in the Mac Finder window.

At that point the Mac Finder window closes/crashes and the following error message pops up.

Screen Shot 2023-12-04 at 8.28.16 PM

I have re-installed Samba multiple times and I have ssh into root on Home Assistant and I can see the shares and their symbolic links and I can see all the backup data.

I am curious if this is a known issue related to any updates since Summer (the last time I tried to Samba into HA) or something else. The good thing about macOS Monterey is the OS is essentially legacy and no updates have occurred recently.

Any help will be appreciated.

Issues like this just haunt me and I continued beating on this.

I did have a Mac Monterey issue in late Summer and had to re-install. I remembered an issue I had early this year with Samba Conf.

In doing some digging, I found what I should have remembered. The command

[default]
protocol_vers_map=6

needed to be added in the Monterey /etc/nsmb.conf file to get the Mac to behave properly when mounting an external Samba Share. I made that change to the /etc/nsmb.conf file and rebooted and the problem I described in the original post went away and the Home Assistant Samba Share mounted with no issues.

I hope this helps anyone else that stumbles across the same issue.