Closed ve6rah closed 7 months ago
I need the full Addon's logs to understand.
Meanwhile try to put compatibility_mode: true
and/or add 172.30.32.0/32
in allow_hosts
.
L.
I followed the recommendation in the add-on logs and mounted manually and it worked properly. Seems only the auto mount isn't working. Full logs below.
The allow_hosts already includes 172.16.0.0/12 which more than covers 172.30.32.0/32
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Timers not supported
SMART Automatic Offline Testing Enabled every four hours.
[18:47:10] INFO: Enabling S.M.A.R.T for /dev/sdb
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.59] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
[18:47:10] INFO: Interfaces: enp1s0
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
[18:47:10] INFO: Docker Interface: hassio 172.30.32.0/23
[18:47:10] INFO: Enabling S.M.A.R.T for /dev/sdc
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.59] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
s6-rc: info: service init-smartd successfully started
Added user ***********.
---------------------------------------------------
[18:47:11] INFO: Exposed Disks Summary:
[addon_configs] path = /addon_configs # TM:false USAGE: #
[Lyre] path = /mnt/Lyre # TM:true USAGE:media #
[frigate] path = /mnt/frigate # TM:true USAGE:media #
---------------------------------------------------
s6-rc: info: service init-samba successfully started
s6-rc: info: service init-mqtt: starting
s6-rc: info: service wsdd: starting
s6-rc: info: service smbd: starting
s6-rc: info: service nmbd: starting
s6-rc: info: service avahi: starting
s6-rc: info: service smbd successfully started
s6-rc: info: service nmbd successfully started
s6-rc: info: service wsdd successfully started
s6-rc: info: service cifs-supervisor-mount: starting
s6-rc: info: service avahi successfully started
nmbd version 4.18.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
smbd version 4.18.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.
[18:47:11] INFO: Automount Shares...
[18:47:11] INFO: Starting the AVAHI for Hestia...
Waiting for daemon ...
[18:47:11] INFO: MQTT support not enabled in config
s6-rc: info: service init-mqtt successfully started
[18:47:11] INFO: Starting the wsdd daemon for Cerberus/Hestia...
[18:47:11] INFO: Interfaces from config: enp1s0
[18:47:11] INFO: Wait Samba Server to going up..(max 30s)
[18:47:11] INFO: Interfaces: -i enp1s0
2023-11-17 18:47:11,686:wsdd INFO(pid 366): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2023-11-17 18:47:11,687:wsdd INFO(pid 366): joined multicast group 239.255.255.250 on 10.42.0.10%enp1s0
2023-11-17 18:47:11,689:wsdd INFO(pid 366): scheduling Hello message via enp1s0 to 239.255.255.250%enp1s0
[18:47:11] ERROR: Got unexpected response from the API: Mounting Lyre did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-Lyre.mount for details.
[18:47:11] WARNING: Error Automount Lyre - Mount Manually!
[18:47:11] ERROR: Got unexpected response from the API: Mounting frigate did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-frigate.mount for details.
[18:47:11] WARNING: Error Automount frigate - Mount Manually!
s6-rc: info: service cifs-supervisor-mount successfully started
s6-rc: info: service mqtt-disk-handler: starting
s6-rc: info: service mqtt-disk-handler successfully started
s6-rc: info: service mqtt-handler: starting
s6-rc: info: service mqtt-handler successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2023-11-17 18:47:16,693:wsdd INFO(pid 366): joined multicast group [ff02::c] on fe80::c782:55ca:99ec:ac99%enp1s0
2023-11-17 18:47:16,695:wsdd INFO(pid 366): scheduling Hello message via enp1s0 to ff02::c%enp1s0
*****
Samba name server HESTIA is now a local master browser for workgroup CERBERUS on subnet 10.42.0.10
*****
*****
Samba name server HESTIA is now a local master browser for workgroup CERBERUS on subnet 172.30.32.1
*****
create_connection_session_info: guest user (from session setup) not permitted to access this share (frigate)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
2023-11-18 04:32:29,824:wsdd INFO(pid 366): [fe80::4d67:b4:536d:878b]:55519(enp1s0) - - "Bye urn:uuid:652a5ff5-fe12-4da5-8090-adf031ae3cd9 UDP" - -
2023-11-18 04:33:26,040:wsdd INFO(pid 366): [fe80::4d67:b4:536d:878b]:59277(enp1s0) - - "Hello urn:uuid:fdd5ca12-be27-45ed-852a-42ff15a257be UDP" - -
2023-11-18 04:33:26,041:wsdd INFO(pid 366): 10.42.1.215:59276(enp1s0) - - "Hello urn:uuid:8b21ecad-ffb3-4509-9a79-0d38ed11d765 UDP" - -
2023-11-18 04:33:29,877:wsdd INFO(pid 366): [fe80::4d67:b4:536d:878b]:59277(enp1s0) - - "Hello urn:uuid:03d0c2cf-baac-45ae-b003-3342838cf35b UDP" - -
2023-11-18 04:33:29,877:wsdd INFO(pid 366): 10.42.1.215:59276(enp1s0) - - "Hello urn:uuid:9af1517f-a940-4cca-856a-af05716f07ec UDP" - -
2023-11-18 04:33:35,946:wsdd INFO(pid 366): [fe80::4d67:b4:536d:878b]:59277(enp1s0) - - "Hello urn:uuid:7271cee4-6e3d-480e-baa2-30da0941fdd2 UDP" - -
2023-11-18 04:33:35,946:wsdd INFO(pid 366): 10.42.1.215:59276(enp1s0) - - "Hello urn:uuid:c067c867-82d2-4201-916c-1ca14418e298 UDP" - -
2023-11-18 04:35:14,903:wsdd INFO(pid 366): [fe80::4d67:b4:536d:878b]:59277(enp1s0) - - "Hello urn:uuid:e7a32bcd-467f-4179-9ac7-37a4c3dd9a38 UDP" - -
2023-11-18 04:35:14,906:wsdd INFO(pid 366): 10.42.1.215:59276(enp1s0) - - "Hello urn:uuid:aa6cbd2f-cc67-4f3a-93cc-e866f3bc78a5 UDP" - -
2023-11-18 04:35:20,952:wsdd INFO(pid 366): [fe80::4d67:b4:536d:878b]:59277(enp1s0) - - "Hello urn:uuid:2553136c-840c-4437-b57f-8411b34e7a55 UDP" - -
2023-11-18 04:35:20,954:wsdd INFO(pid 366): 10.42.1.215:59276(enp1s0) - - "Hello urn:uuid:b8579b30-1bbc-4e1b-938c-089646b0a54e UDP" - -
Similar error on SambaNas 12.2.0-nas running Home Assistant 2024.1.2
[19:53:57] INFO: Enabling S.M.A.R.T for /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.70-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
[19:53:57] INFO: Enabling S.M.A.R.T for /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.70-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
Added user admin.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
Added user _ha_mount_user_.
---------------------------------------------------
[19:53:57] INFO: Exposed Disks Summary:
[CONFIG] path = /homeassistant # TM:false FS:native #
[ADDONS] path = /addons # TM:false FS:native #
[SSL] path = /ssl # TM:false FS:native #
[SHARE] path = /share # TM:false FS:native #
[BACKUP] path = /backup # TM:false FS:native #
[MEDIA] path = /media # TM:false FS:native #
[ADDON_CONFIGS] path = /addon_configs # TM:false FS:native #
[PASSPORT2TB] path = /mnt/passport2TB # TM:true USAGE:media FS:native #
[PASSPORT5TB] path = /mnt/passport5TB # TM:true USAGE:media FS:native #
---------------------------------------------------
s6-rc: info: service init-samba successfully started
s6-rc: info: service init-mqtt: starting
s6-rc: info: service wsdd: starting
s6-rc: info: service smbd: starting
s6-rc: info: service nmbd: starting
s6-rc: info: service avahi: starting
s6-rc: info: service wsdd successfully started
s6-rc: info: service nmbd successfully started
s6-rc: info: service smbd successfully started
s6-rc: info: service cifs-supervisor-mount: starting
s6-rc: info: service avahi successfully started
[19:53:57] INFO: Starting the AVAHI for homeassistant...
Waiting for daemon ...
[19:53:57] INFO: Starting the wsdd daemon for WORKGROUP/homeassistant...
[19:53:57] INFO: MQTT support not enabled in config
s6-rc: info: service init-mqtt successfully started
[19:53:57] INFO: Automount Shares...
[19:53:57] INFO: Interfaces: -i wlp0s20f3 -i eno1
[19:53:57] INFO: Wait Samba Server to going up..(max 30s)
2024-01-07 19:53:57,676:wsdd INFO(pid 383): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2024-01-07 19:53:57,677:wsdd INFO(pid 383): joined multicast group 239.255.255.250 on 192.168.1.10%eno1
2024-01-07 19:53:57,681:wsdd INFO(pid 383): scheduling Hello message via eno1 to 239.255.255.250%eno1
2024-01-07 19:53:57,706:wsdd INFO(pid 383): joined multicast group [ff02::c] on fe80::6065:4aed:e1a1:35ba%eno1
2024-01-07 19:53:57,707:wsdd INFO(pid 383): scheduling Hello message via eno1 to ff02::c%eno1
SMART Attribute Autosave Enabled.
SMART Automatic Timers not supported
SMART Automatic Offline Testing Enabled every four hours.
[19:53:57] INFO: Enabling S.M.A.R.T for /dev/sdc
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.70-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
s6-rc: info: service init-smartd successfully started
nmbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
smbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.
create_connection_session_info: user '_ha_mount_user_' (from session setup) not permitted to access this share (PASSPORT2TB)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[19:54:11] ERROR: Got unexpected response from the API: Mounting PASSPORT2TB did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-PASSPORT2TB.mount for details.
[19:54:11] WARNING: Error Automount PASSPORT2TB - Mount Manually!
create_connection_session_info: user '_ha_mount_user_' (from session setup) not permitted to access this share (PASSPORT5TB)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[19:54:11] ERROR: Got unexpected response from the API: Mounting PASSPORT5TB did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-PASSPORT5TB.mount for details.
[19:54:11] WARNING: Error Automount PASSPORT5TB - Mount Manually!
s6-rc: info: service cifs-supervisor-mount successfully started
s6-rc: info: service mqtt-disk-handler: starting
s6-rc: info: service mqtt-disk-handler successfully started
s6-rc: info: service mqtt-handler: starting
s6-rc: info: service mqtt-handler successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.10
*****
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 172.30.32.1
*****
@ve6rah what command did you use to mount manually?
@maivorbim I mounted manually using Home Assistant's storage panel. So no command, it's manually typing in the fields.
I have to do this every single time the system reboots. It is VERY annoying.
I'll also just confirm that nothing has changed in the latest version of HA Core (2024.1.2), HAOS (11.3), and Samba NAS (12.2.0-nas)
Automount still does not work at all.
@maivorbim your problem is a bit different. Your disk are classified as native and not as external. Please fill a new issue with your config and logs.
I have publish the fix in the beta channel. Feel free to test it https://github.com/dianlight/hassio-addons-beta
Addon
SambaNAS
Description
After upgrading to 12.1.0-nas I'm unable to mount any shares. Whereas it was working properly on 10.0.2-nas4
Reproduction steps
Addon Logs
Addon Config
Architecture
amd64
OS
HaOS