Unable to get network access using Samba

I have tried to install Samba (first thing i have done after opening program) as part of my Hassio installation on a NUC PC running Oracle VM. But i just get an error in the log and cant access the folder in my network view.

I am very new and very much learning so please consider that i probably dont know many acronyms etc. Thank you in advance for any help.

Error from log:

[INFO] Read hostname: hassio
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
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.
tdb(/var/lib/samba/winbindd_idmap.tdb): tdb_open_ex: could not open file /var/lib/samba/winbindd_idmap.tdb: No such file or directory
tdb(/var/lib/samba/account_policy.tdb): tdb_open_ex: could not open file /var/lib/samba/account_policy.tdb: No such file or directory
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 hassio.
nmbd version 4.8.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2018
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
interpret_interface: Can’t find address for eth0
WARNING: no network interfaces found
daemon_status: STATUS=daemon ‘nmbd’ : No local IPv4 non-loopback interfaces available, waiting for interface 

NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).
smbd version 4.8.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2018
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]”
interpret_interface: Can’t find address for eth0
WARNING: no network interfaces found
INFO: Profiling support unavailable in this build.
No builtin backend found, trying to load plugin
tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.tdb: No such file or directory
daemon_ready: STATUS=daemon ‘smbd’ finished starting up and ready to serve connections
open_sockets_smbd: No sockets available to bind to.
PANIC (pid 28): open_sockets_smbd() failed
unable to produce a stack trace on this platform
coredump is handled by helper binary specified at /proc/sys/kernel/core_patterninterpret_interface: Can’t find address for eth0
WARNING: no network interfaces found
interpret_interface: Can’t find address for eth0
WARNING: no network interfaces found
interpret_interface: Can’t find address for eth0
WARNING: no network interfaces found

Maybe this helps?
https://community.home-assistant.io/search?q=samba%20eth0

Thank you I will read through the search results. You know I tried to search for solutions but clearly what I searched was off the mark. Hopefully I can resolve this.

1 Like

It was complaining about there being no active interface eth0 Your network interface must be named something different, assuming the server has working network access.

So firstly thank you for the help @anon34565116 and @VDRainer. I seem to have it working but it still wont show in my network devices. I get this message at the end of the log:

Samba name server HASSIO is now a local master browser for workgroup HASSIO_HOME on subnet 192.168.0.8

I fear if i cant get past this step im may be digging a hole too deep to get out of if i try to go any further with Home Assistant - hopefully it gets easier. I have tried to google some solutions and tried a couple of things but still cant see the folder in my NETWORK view/folder

Do you see it if type \\<ip_of_ha>?
For example: \\192.168.0.100

A share does not need to be browseable but if you add
browseable=yes
to the share in smb.conf and restart Samba the share should become browseable.

@VDRainer No it wont connect. I tried it in Chrome and File Explorer

@anon34565116 What syntax do i use and does it matter where i place it in the config file

{
“workgroup”: “HASSIO_HOME”,
“username”: “hassio”,
“password”: “password”,
“interface”: “enp0s3”,
“browseable=yes”,
“allow_hosts”: [
“10.0.0.0/8”,
“172.16.0.0/12”,
“192.168.0.0/32”
]
}

Stop press. Not sure what i have done but I am in. Thank you so much for keeping me moving forward. Now to try to configure some things. Start basic and go from there.