Cannot setup samba share

Hi All! I’m trying to setup Samba share but after many attempts I am unable to get it running and visible on my PC.

Here is my configuration:

username: HASS
password: Password
workgroup: WORKGROUP
compatibility_mode: false
veto_files:
  - ._*
  - .DS_Store
  - Thumbs.db
  - icon?
  - .Trashes
allow_hosts:
  - 10.0.0.0/8
  - 172.16.0.0/12
  - 192.168.0.0/16
  - fe80::/10

And with that configuration I get this in my logs

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/samba.sh
[16:43:39] INFO: Hostname: homeassistant
[16:43:40] INFO: Interfaces: eth0 wlan0 
No builtin backend found, trying to load plugin
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
account_policy_get: tdb_fetch_uint32_t failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 10 (refuse machine password change), returning 0
Added user HASS.
cont-init: info: /etc/cont-init.d/samba.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nmbd (no readiness notification)
services-up: info: copying legacy longrun smbd (no readiness notification)
s6-rc: info: service legacy-services successfully started
added interface eth0 ip=fdc9:e854:c54d:b5fd:8764:da2:d462:e479 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.86.39 bcast=192.168.86.255 netmask=255.255.255.0
added interface eth0 ip=fdc9:e854:c54d:b5fd:8764:da2:d462:e479 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.86.39 bcast=192.168.86.255 netmask=255.255.255.0
interpret_interface: Can't find address for wlan0
interpret_interface: Can't find address for wlan0
smbd version 4.16.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2022
uid=0 gid=0 euid=0 egid=0
nmbd version 4.16.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2022
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
added interface eth0 ip=fdc9:e854:c54d:b5fd:8764:da2:d462:e479 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.86.39 bcast=192.168.86.255 netmask=255.255.255.0
Registered MSG_REQ_POOL_USAGE
interpret_interface: Can't find address for wlan0
INFO: Profiling support unavailable in this build.
added interface eth0 ip=fdc9:e854:c54d:b5fd:8764:da2:d462:e479 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.86.39 bcast=192.168.86.255 netmask=255.255.255.0
Registered MSG_REQ_POOL_USAGE
No builtin backend found, trying to load plugin
interpret_interface: Can't find address for wlan0
making subnet name:192.168.86.39 Broadcast address:192.168.86.255 Subnet mask:255.255.255.0
create_subnets: ignoring non IPv4 interface.
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_POOL_USAGE
waiting for connections
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.86.39
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.86.39
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.86.39
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.86.39
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.86.39
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.86.39
run_elections: >>> Won election for workgroup WORKGROUP on subnet 192.168.86.39 <<<
become_local_master_browser: Starting to become a master browser for workgroup WORKGROUP on subnet 192.168.86.39
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 192.168.86.39
*****
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_POOL_USAGE
Could not find child 155 -- ignoring

To me, I don’t know much yet, it looks like it should be up and running?

But even after enabling network sharing, making hidden objects on the network show, I cannot find this folder.

I have quite a few “other devices” and “Media players” visible on my network, including one called home assistant that when I click on it, it opens a browser with my HASS instance. But nothing that is from samba share.

I’ve watched 4-5 different videos several times, uninstalled, reinstalled, restart, reset, reboot, you name it (the obvious stuff I at least), I’ve probably tried it.

Any help is greatly appreciated.

Your log is very similar to mine so I think it should be running.

How are you trying to access the shares? From a windows machine?

I will say that I have compatibility mode set to true for my instance. It is a slider in the GUI.

1 Like

Yes, from a windows machine.

I will change the slider and see if that changes anything.

Next step for me is to go into Windows Explorer and then in the address bar at the top I put in the IP address of my Home Assistant. Like this:

\192.168.1.1

Once I click Enter the first time it will come up with a username and password box.

Have you done that OR are you just looking for it to appear in your network?

1 Like

I’ve gone ahead and done that but “the page cannot be reached 192.168.1.1 took too long to respond”

I double-checked my settings and have also turned off my firewall but no change

What is the IP address of your home assistant?

I put in \192.168.1.1 as an example. You will need to know your actual IP address.

Note the 2 backslashes, and I left off one to start.

Edit: It appears the message board doesn’t like my consecutive backslashes. You will need 2.

1 Like
\\192.168.1.1

Using preformatted text ( </> symbol from the icon menu) can help

allow_hosts:
  - 10.0.0.0/8
  - 172.16.0.0/12
  - 192.168.0.0/16
  - fe80::/10
  1. Is your IP adressing scheme one of the above?
  2. Can you ping your HA instance? (and get a reply)
  3. Win + R opens the Run dialog box: type in there the IP address preceeded with the double backslash
2 Likes

I was incorrectly inputting the IP address… simple fix but appreciate you walking me through it!

The win + R was very helpful, thank you!

1 Like

@Harsh_Tone: you can ‘mount’/map as drive this share to a drive letter in windows explorer (easy access in the icon menu)

2 Likes

Win + R was the answer! Thanks

Bob

1 Like