SAMBA Share (2.0) not working with HASSIO 0.49.1

Updated to latest HASSIO (0.49.1) and latest SAMBA share add-on (2.0) and now getting the following in the SAMBA share logs:

starting version 3.2.2
nmbd version 4.6.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2017
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
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.6.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2017
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Processing section "[config]"
Processing section "[addons]"
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
Module 'tdbsam' loaded
tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.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
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
STATUS=daemon 'smbd' finished starting up and ready to serve connections
open_sockets_smbd: No sockets available to bind to.
Deleting serverid.tdb record failed: NT_STATUS_NOT_FOUND
PANIC (pid 31): open_sockets_smbd() failed
unable to produce a stack trace on this platform
/run.sh: line 88:    31 Aborted                 (core dumped) smbd -F -S -s /etc/smb.conf
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

Are you using wifi ?

1 Like

Yes, itā€™s on a pi3. Device works fine on network apart from the SAMBA share.

You need to change the ā€œinterfaceā€: ā€œeth0ā€ to your wifi interface ā€œwlan0ā€

1 Like

Sample config:


{
  "workgroup": "WORKGROUP",
  "name": "hassio",
  "guest": true,
  "map": {
    "config": true,
    "addons": true,
    "ssl": false,
    "share": true,
    "backup": true
  },
  "username": "",
  "password": "",
  "interface": "wlan0"
}
2 Likes

Well that was simple. Not sure why I didnā€™t spot that. What I donā€™t understand it the previous version worked fine and Iā€™ve never edited the config for it. Maybe it was something added in version 2.0.

Thanks again @LaurensBot.

I had an issue when Samba upgraded automatically to version 2 using my existing config. It failed to start. I selected ā€œReset to Defaultsā€ then re-entered by username and password and it now starts.

1 Like

I did a clean install on a pi3 yesterday and it worked as intended, so i guess its a upgrade issueā€¦

1 Like

Wired or wireless? For me it did not work till I changed the interface to wlan0.

1 Like

im not using a network cable so that would explain why i didnā€™t need to change the interfaceā€¦

1 Like

Iā€™m having a similar problem where I cannot find my device on my network from my main computer. Same error whether wired or wireless. Started all the way from scratch, same thing. Here are my logs:

starting version 3.2.2
nmbd version 4.6.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2017
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
added interface wlan0 ip=192.168.0.40 bcast=192.168.0.255 netmask=255.255.255.0
making subnet name:192.168.0.40 Broadcast address:192.168.0.255 Subnet mask:255.255.255.0
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
load_lmhosts_file: Canā€™t open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
STATUS=daemon ā€˜nmbdā€™ finished starting up and ready to serve connections
smbd version 4.6.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2017
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Processing section ā€œ[config]ā€
Processing section ā€œ[addons]ā€
Processing section ā€œ[share]ā€
Processing section ā€œ[backup]ā€
added interface wlan0 ip=192.168.0.40 bcast=192.168.0.255 netmask=255.255.255.0
INFO: Profiling support unavailable in this build.
No builtin backend found, trying to load plugin
Module ā€˜tdbsamā€™ loaded
tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.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
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
STATUS=daemon ā€˜smbdā€™ finished starting up and ready to serve connections
waiting for connections
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.0.40

I havenā€™t got a clue what Iā€™m doing, but I did finally figure out this is how I need to access my configuration files.

Not sure if this contributes, I was struggling to find the share on my linux machine.
Windows detected it right away.
In linux smb://networkadress :sweat:

I did uninstall ā€œsecure sshā€,then it works