home-assistant / addons

:heavy_plus_sign: Docker add-ons for Home Assistant
https://home-assistant.io/hassio/
Apache License 2.0
1.56k stars 1.51k forks source link

Samba 7 #438

Closed DavidFW1960 closed 6 years ago

DavidFW1960 commented 6 years ago

The samba addon is not mapping the /backup folder correctly - it is now mapping it to /share

{
  "workgroup": "myname",
  "username": "myuser",
  "password": "mypassword",
  "interface": "",
  "allow_hosts": [
    "10.90.11.0/24",
    "172.16.0.0/12"
  ],
  "name": "debian",
  "guest": false,
  "map": {
    "config": true,
    "addons": true,
    "ssl": true,
    "share": true,
    "backup": true
  }
}

It was working perfectly before version 7. On hass.io 0.81.4

Log:

Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
added interface eno1 ip=xxxx:xxxx:xxxx::xxxx:xxxx:xxxx:xxxx bcast= netmask=ffff:ffff:ffff:ffff::
added interface hassio ip=172.30.32.1 bcast=172.30.33.255 netmask=255.255.254.0
added interface eno1 ip=x.x.x.100 bcast=x.x.x.255 netmask=255.255.255.0
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
making subnet name:172.17.0.1 Broadcast address:172.17.255.255 Subnet mask:255.255.0.0
making subnet name:x.x.x.100 Broadcast address:x.x.x.255 Subnet mask:255.255.255.0
making subnet name:172.30.32.1 Broadcast address:172.30.33.255 Subnet mask:255.255.254.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
daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
smbd version 4.8.4 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]"
added interface eno1 ip=xxxx:xxxx:xxxx::xxxx:xxxx:xxxx:xxxx bcast= netmask=ffff:ffff:ffff:ffff::
added interface hassio ip=172.30.32.1 bcast=172.30.33.255 netmask=255.255.254.0
added interface eno1 ip=x.x.x.100 bcast=x.x.x.255 netmask=255.255.255.0
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
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
waiting for connections
check_for_master_browser_fail: Forcing election on workgroup myworkgroup subnet 172.30.32.1
check_for_master_browser_fail: Forcing election on workgroup myworkgroup subnet x.x.x.100
check_for_master_browser_fail: Forcing election on workgroup myworkgroup subnet 172.17.0.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.30.32.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet x.x.x.100
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.17.0.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.30.32.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet x.x.x.100
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.17.0.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.30.32.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.17.0.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.30.32.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.17.0.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.30.32.1
run_elections: >>> Won election for workgroup myworkgroup on subnet 172.30.32.1 <<<
become_local_master_browser: Starting to become a master browser for workgroup myworkgroup on subnet 172.30.32.1
send_election_dgram: Sending election packet for workgroup myworkgroup on subnet 172.17.0.1
run_elections: >>> Won election for workgroup myworkgroup on subnet 172.17.0.1 <<<
become_local_master_browser: Starting to become a master browser for workgroup myworkgroup on subnet 172.17.0.1
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  authentication for user [admin_hass] -> [admin_hass] -> [admin_hass] succeeded
idmap range not specified for domain '*'
myhost (ipv4:x.x.x.x:59529) connect to service backup initially as user root (uid=0, gid=0) (pid 33)
*****

Samba name server DEBIAN is now a local master browser for workgroup myworkgroup on subnet 172.30.32.1

*****
*****

Samba name server DEBIAN is now a local master browser for workgroup myworkgroup on subnet 172.17.0.1

*****
Failed to fetch record!
pcap cache not loaded
idmap range not specified for domain '*'
myhost (ipv4:x.x.x.x:59529) connect to service addons initially as user root (uid=0, gid=0) (pid 33)
Failed to fetch record!
pcap cache not loaded
idmap range not specified for domain '*'
myhost (ipv4:x.x.x.x:59529) connect to service share initially as user root (uid=0, gid=0) (pid 33)
Failed to fetch record!
pcap cache not loaded
idmap range not specified for domain '*'
myhost (ipv4:x.x.x.x:59529) connect to service ssl initially as user root (uid=0, gid=0) (pid 33)
myhost (ipv4:x.x.x.x:59529) closed connection to service backup
Failed to fetch record!
pcap cache not loaded
idmap range not specified for domain '*'
myhost (ipv4:x.x.x.x:59529) connect to service config initially as user root (uid=0, gid=0) (pid 33)
Failed to fetch record!
pcap cache not loaded
myhost (ipv4:x.x.x.x:59529) closed connection to service addons
myhost (ipv4:x.x.x.x:59529) closed connection to service share
idmap range not specified for domain '*'
myhost (ipv4:x.x.x.x:59529) connect to service backup initially as user root (uid=0, gid=0) (pid 33)
Failed to fetch record!
pcap cache not loaded
myhost (ipv4:x.x.x.x:59529) closed connection to service ssl
myhost (ipv4:x.x.x.x:59529) closed connection to service backup
myhost (ipv4:x.x.x.x:59529) closed connection to service config
Could not find child 35 -- ignoring
Could not find child 37 -- ignoring
Could not find child 39 -- ignoring
vMeph commented 6 years ago

same here for some reason also when you restart some this info will disapear dont mater what you it always disapear

  "name": "xxxxxxx",
  "guest": false,
  "map": {
    "config": true,
    "addons": true,
    "ssl": true,
    "share": true,
    "backup": true
  }
}
cogneato commented 6 years ago

I'm finding /backup is now a duplicate of /share in samba. But checking from the host my backup directory does contain tar file snapshots.

cogneato commented 6 years ago

Fix is in #439