Samba stopped working on hassio- (also loop energy)

First - congrats to the hassio guys - can’t believe how easy it was to move my (long standing) config from a mac to a hassio Pi3.

However a couple of problems since I upgrade HA - and trying to dig in to the problem.

HA still works - and I can still SSH into hassio - so most stuff is working fine.

I have two problems
First samba stopped connecting, I’m using wired ethernet - and what I think is the standard config.

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

But the mac that could connect when I shipped my config - can no longer connect sadly the Connection Failed error isn’t very helpful! Here are the 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 eth0 ip=fd00::1:fba2:af9c:9cf3:7422 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.59 bcast=192.168.1.255 netmask=255.255.255.0
making subnet name:192.168.1.59 Broadcast address:192.168.1.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
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
query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.59 for name WORKGROUP<1d>.
This response was from IP 192.168.1.58, reporting an IP address of 192.168.1.58.
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 eth0 ip=fd00::1:fba2:af9c:9cf3:7422 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.59 bcast=192.168.1.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

Only recent changes were moving my mqtt server across to hassio (using the standard plugin), and enabling lets_encrypt via the plugin.

I also have a problem with loop_energy which is a component I maintain (although hasn’t changed for ages) Still works fine on the mac. It uses web sockets - so don’t know if they issues could be related.

Any suggestions?

1 Like

@gregd Did you every figure this out?

I never got loop energy to work

Still no luch huh? My Samba server was working but is no longer. I can’t recall if it was before or after a recent update.

Hi,

I am using Hassio in docker on ubuntu box.

The network keeps changing when I browse to HASSIO, sometimes it displays all the folders correctly, but then it will automatically start showing \HASSIO\hassio-linux and when it does this I seem to lose all rights on the files. In Notepad++ It will tell me that I ened to use admin mode to edit (which I dont when it is working correctly) I then go into admin mode, but then I cannot save the fiels as I get an error saying that the file is in use by another program…

Here is a sample of the logs

check_ntlm_password:  Authentication for user xxxREDACTEDxxx -> xxxREDACTEDxxx FAILED with error NT_STATUS_NO_SUCH_USER
desktop (ipv4:192.168.1.205:1735) connect to service config initially as user root (uid=0, gid=0) (pid 38)
desktop (ipv4:192.168.1.205:1735) closed connection to service config
Processing section "[config]"
Processing section "[addons]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user xxxREDACTEDxxx -> xxxREDACTEDxxx FAILED with error NT_STATUS_NO_SUCH_USER
desktop (ipv4:192.168.1.205:2140) connect to service config initially as user root (uid=0, gid=0) (pid 344)
desktop (ipv4:192.168.1.205:2140) closed connection to service config
Processing section "[config]"
Processing section "[addons]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user xxxREDACTEDxxx -> xxxREDACTEDxxx FAILED with error NT_STATUS_NO_SUCH_USER
desktop (ipv4:192.168.1.205:2294) connect to service config initially as user root (uid=0, gid=0) (pid 345)
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
desktop (ipv4:192.168.1.205:2294) closed connection to service config
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
Processing section "[config]"
Processing section "[addons]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user xxxREDACTEDxxx -> xxxREDACTEDxxx FAILED with error NT_STATUS_NO_SUCH_USER
desktop (ipv4:192.168.1.205:2810) connect to service config initially as user root (uid=0, gid=0) (pid 430)
desktop (ipv4:192.168.1.205:2810) closed connection to service config
Could not find child 434 -- ignoring
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
Could not find child 493 -- ignoring
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
Processing section "[config]"
Processing section "[addons]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user xxxREDACTEDxxx -> xxxREDACTEDxxx FAILED with error NT_STATUS_NO_SUCH_USER
Failed to fetch record!
pcap cache not loaded
desktop (ipv4:192.168.1.205:4394) connect to service config initially as user root (uid=0, gid=0) (pid 494)
root opened file zwscene.xml read=Yes write=No (numopen=2)
root opened file zwcfg_0xd86a9688.xml read=Yes write=No (numopen=3)
root closed file zwscene.xml (numopen=2) NT_STATUS_OK
root closed file zwcfg_0xd86a9688.xml (numopen=1) NT_STATUS_OK
root opened file configuration.yaml read=No write=No (numopen=2)
root closed file configuration.yaml (numopen=1) NT_STATUS_OK
root opened file configuration.yaml read=No write=No (numopen=2)
root closed file configuration.yaml (numopen=1) NT_STATUS_OK
root opened file configuration.yaml read=No write=No (numopen=2)
root closed file configuration.yaml (numopen=1) NT_STATUS_OK
root opened file configuration.yaml read=Yes write=No (numopen=2)
root closed file configuration.yaml (numopen=1) NT_STATUS_OK
desktop (ipv4:192.168.1.205:4394) closed connection to service config
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.1.137
  1. Do I need to add another user to the linux samba config?
  2. Can I override the Samba addon and simply create the shares in SMB Config?

Any Ideas?