[New Addon] Samba NAS. (Mount external disk and share it )

I realize this might not specifically solve your issue but one interesting thing I have discovered about samba shares:

I have several rp4 containerized ha implementations. One in particular has a windows 10 machine with mapped drives to the rp4 as configured in the /etc/samba/smb.conf file. The setup has worked flawlessly until I decided to see if I could access the rp4 file system using the samba platform available from the ha community. Previously I have accessed the ha filesystem using putty. So I wondered if there was any advantage using the samba integration. After installing the integration - a few days later - I discovered the windows 10 share to a specific share on the rp4 is missing. I wasted several hours poking around using suggestions from google searches but ultimately I came away with the opinion there is some ā€œghostā€ share taking place; I had tried in vain to map a share to the rp4 and always got some arcane error from billy gates. So at a last ditch thought - I took the samba implementation out of ha - which allowed the specifications from the /etc/samba/smb.conf file to function.

bottom line: I will continue to use putty to access the ha filesystem and leave well enough alone with the samba integration.

I wanted to post this to possibly offer a suggestion to someone battling with a microsoft windows share issue on a rp4 system

cheersā€¦ jp

Anyone got idea why my disk doesnā€™t work formatted to ext4?
Tried with fat32, all went good, wanted to switch into ext4 and seems system canā€™t mount it but it gets detected

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Samba NAS
 Expose Home Assistant disc with SMB/CIFS
-----------------------------------------------------------
 Add-on version: 12.1.0-nas
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.1  (amd64 / generic-x86-64)
 Home Assistant Core: 2023.11.3
 Home Assistant Supervisor: 2023.11.6
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-automount: starting
[13:35:40] INFO: Protection Mode is false
[13:35:40] INFO: MoreDisk or Automount option found!
modprobe: module ntfs3 not found in modules.dep
[13:35:41] WARNING: ntfs3 module not available!
modprobe: module exfat not found in modules.dep
[13:35:41] WARNING: exfat module not available!
modprobe: module xfs not found in modules.dep
[13:35:41] WARNING: xfs module not available!
---------------------------------------------------
Supported fs: 	ext3	ext2	ext4	squashfs	vfat	msdos	iso9660	btrfs
---------------------------------------------------
[13:35:41] INFO: MediaLibrary disabled in config. Disk are mounted only for this addon!
---------------------------------------------------
[13:35:43] INFO: Available Disk Labels:
[13:35:43] INFO: 	ambackup[ext4]
---------------------------------------------------
[13:35:43] INFO: No MoreDisks to mount
[13:35:43] INFO: Automount is Enabled!
---------------------------------------------------
[13:35:43] INFO: Checking Mounting disks for reserved names:

	ambackup
---------------------------------------------------
---------------------------------------------------
[13:35:43] INFO: Mounting disks:

	am
---------------------------------------------------
[13:35:43] INFO: Disk am not found! <SKIP>
s6-rc: info: service init-automount successfully started
s6-rc: info: service init-smartd: starting
s6-rc: info: service init-samba: starting
s6-rc: info: service hd-idle: starting
s6-rc: info: service hd-idle successfully started

Is a bug in the addon. Backup is stripped from the name in the mount. Open a issue in GitHub so I can trace and correct in the next version.
Meantime you can change the disk label so the name not contain backup or other reserved words.

L.

Iā€™ve run into this issue as well and opened a Github issue here: šŸ› [SambaNAS] Can't mount `moredisks` with label that contains a reserved word as substring Ā· Issue #188 Ā· dianlight/hassio-addons Ā· GitHub

Hello all, my first post here :slight_smile: .
Since the latest update of this addon 12.2.0 this addon stop working for me. The plugin is not able now to mount the disk and I get this error, does anyone have the same issue?

create_connection_session_info: user '_ha_mount_user_' (from session setup) not permitted to access this share (ELEMENTS)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[09:23:32] ERROR: Got unexpected response from the API: Mounting ELEMENTS did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-ELEMENTS.mount for details.
[09:23:32] WARNING: Error Automount ELEMENTS - Mount Manually!

Thanks!

---------------------------------------------------
[09:23:28] INFO: MediaLibrary option found!
---------------------------------------------------
[09:23:29] INFO: Available Disk Labels:
[09:23:29] INFO: 	Elements[ext4]
---------------------------------------------------
[09:23:29] INFO: MoreDisks to mount:

	Elements
[09:23:29] INFO: Automount is Enabled!
---------------------------------------------------
[09:23:29] INFO: Checking Mounting disks for reserved names:

	Elements
---------------------------------------------------
---------------------------------------------------
[09:23:29] INFO: Mounting disks:

	Elements
---------------------------------------------------
[09:23:29] INFO: Mounting Elements of type ext4 with options nosuid
[09:23:29] INFO: Mount Elements[ext4] Success!
s6-rc: info: service init-automount successfully started
s6-rc: info: service init-smartd: starting
s6-rc: info: service init-samba: starting
s6-rc: info: service hd-idle: starting
s6-rc: info: service hd-idle successfully started
[09:23:29] INFO: Hostname: homeassistant
[09:23:29] INFO: Interfaces: end0 
[09:23:30] INFO: Enabling S.M.A.R.T for /dev/sda
smartctl 7.4 2023-08-01 r5530 [aarch64-linux-6.1.70-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

[09:23:30] INFO: Docker Interface: hassio 172.30.32.0/23
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
Added user homeassistant.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
Added user _ha_mount_user_.
---------------------------------------------------
[09:23:30] 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  #
[ELEMENTS]              path = /mnt/Elements # 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 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.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
[09:23:30] INFO: Starting the AVAHI for homeassistant...
Waiting for daemon ...
[09:23:30] INFO: MQTT support not enabled in config
s6-rc: info: service init-mqtt successfully started
[09:23:31] INFO: Automount Shares...
[09:23:31] INFO: Starting the wsdd daemon for WORKGROUP/homeassistant...
SMART Enabled.
smbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.
[09:23:31] INFO: Interfaces: -i end0 
[09:23:31] INFO: Wait Samba Server to going up..(max 30s)
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.

s6-rc: info: service init-smartd successfully started
2024-01-09 09:23:31,918:wsdd INFO(pid 357): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2024-01-09 09:23:31,924:wsdd INFO(pid 357): joined multicast group 239.255.255.250 on 192.168.1.34%end0
2024-01-09 09:23:31,932:wsdd INFO(pid 357): scheduling Hello message via end0 to 239.255.255.250%end0
2024-01-09 09:23:31,946:wsdd INFO(pid 357): joined multicast group [ff02::c] on fe80::11ac:2a52:27ff:418b%end0
2024-01-09 09:23:31,949:wsdd INFO(pid 357): scheduling Hello message via end0 to ff02::c%end0

create_connection_session_info: user '_ha_mount_user_' (from session setup) not permitted to access this share (ELEMENTS)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[09:23:32] ERROR: Got unexpected response from the API: Mounting ELEMENTS did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-ELEMENTS.mount for details.
[09:23:32] WARNING: Error Automount ELEMENTS - 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 172.30.32.1

*****
1 Like

a bit offtopic, but samba is a bit of a resource user. Perhaps you could also give the choice to mount as NFS? then we probably get some higher speeds.
I will try this add-on probably tommorow or friday, itā€™s a great solution to the HAOS handicap of not able to directly use usb drives for media.

same for meā€¦ it no longer works.

I canā€™t get it working:
Getting the error: No MoreDisks to mount.
I am also not finding anything in /mnt or anything that shows HAOS recognises a drive being plugged in.

EDIT: Formatted and made a new partition with label, now it works, but getting the same error as people above:

create_connection_session_info: user '_ha_mount_user_' (from session setup) not permitted to access this share (FRIGATE)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[15:34:36] 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.
[15:34:36] WARNING: Error Automount FRIGATE - Mount Manually!

EDIT 2: It still works, also tested a reboot of home assistant. the above error can simply be ignored.

frigate is recording to the usb-connected drive now :partying_face:
Now hopefully NFS will one day be supported for a bit more lighter weight storage.

My storage just stopped working yesterday. Maybe with the HA update but Iā€™m not sure. Iā€™m not very good with networking, so is there something easy I need to change to get it working again?

	Thistle_NAS
---------------------------------------------------
---------------------------------------------------
[14:58:23] INFO: Mounting disks:

	Thistle_NAS
---------------------------------------------------
[14:58:23] INFO: Mounting Thistle_NAS of type ext4 with options nosuid
[14:58:23] INFO: Mount Thistle_NAS[ext4] Success!
s6-rc: info: service init-automount successfully started
s6-rc: info: service init-smartd: starting
s6-rc: info: service init-samba: starting
s6-rc: info: service hd-idle: starting
s6-rc: info: service hd-idle successfully started
[14:58:23] INFO: Hostname: homeassistant
[14:58:23] INFO: Interfaces: wlp0s20u3i2 eno1 
[14:58:23] INFO: Enabling S.M.A.R.T for /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.71-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

[14:58:23] INFO: Docker Interface: hassio 172.30.32.0/23
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Timers not supported

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.
[14:58:23] INFO: Enabling S.M.A.R.T for /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.71-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

Added user homeassistant.
Added user _ha_mount_user_.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
---------------------------------------------------
[14:58:23] 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  #
[THISTLE_NAS]           path = /mnt/Thistle_NAS # 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
[14:58:23] INFO: Automount Shares...
[14:58:23] INFO: Starting the AVAHI for homeassistant...
Waiting for daemon ...
[14:58:23] INFO: Starting the wsdd daemon for WORKGROUP/homeassistant...
[14:58:23] INFO: MQTT support not enabled in config
s6-rc: info: service init-mqtt successfully started
[14:58:23] INFO: Interfaces: -i wlp0s20u3i2 -i eno1 
[14:58:23] INFO: Wait Samba Server to going up..(max 30s)
SMART Automatic Timers not supported

SMART Automatic Offline Testing Enabled every four hours.
2024-01-10 14:58:24,036:wsdd INFO(pid 353): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2024-01-10 14:58:24,036:wsdd INFO(pid 353): joined multicast group 239.255.255.250 on 192.168.4.89%eno1
2024-01-10 14:58:24,038:wsdd INFO(pid 353): scheduling Hello message via eno1 to 239.255.255.250%eno1

s6-rc: info: service init-smartd successfully started
2024-01-10 14:58:24,091:wsdd INFO(pid 353): joined multicast group [ff02::c] on fe80::9fb5:2933:d86:5462%eno1
2024-01-10 14:58:24,092:wsdd INFO(pid 353): scheduling Hello message via eno1 to ff02::c%eno1
smbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
nmbd 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 (THISTLE_NAS)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[14:58:28] ERROR: Got unexpected response from the API: Mounting THISTLE_NAS did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-THISTLE_NAS.mount for details.
[14:58:28] WARNING: Error Automount THISTLE_NAS - 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 172.30.32.1

*****

I noticed that using this add-on for frigate, going to the frigate storage tab, storage is being used double as much. viewing the samba share with windows, i see that all files are present in the frigate folder, AND in the media/frigate folder. deleting one of those files deletes it in the other place as well, however frigate keeps seeing both files, so therefore can only use half of the drive.
is there a way to circumvent this?

Also, where is the hard drive mounted? cant find the drive anywhere with sshā€¦

Drive are mounted in /media if you enable media library so /media/frigate and /frigate are alias of the same disk. No waste of space or double write.

L

i see. but enabling or disabling the media library, i noticed i can still access the media folder through PC.
And frigate would still count double the data, because it sees all the files double.

The options donā€™t enable or disable the media share but enable or disable the the disk location mount path inside or outside media folder.
I donā€™t understand your configuration very well, I need more details about your sambanas and frigate configuration.
Also I suggest to reboot your host ( not the addon but the whole system ) if you switch the medialibrary options because if the share is in use the change canā€™t be made and is ignored

Feel free to open an issue on GitHub because here I canā€™t give you more support.

L

1 Like

i had the same issue and rolled back to the prior version of samba nas, which resolved it. one of the changes in the latest update was ā€œInternal HA Storage Mount is done with a generated superuser;ā€ if the superuser is ā€˜ha_mount_userā€™, that appears to be whatā€™s causing the issue given the log info under ā€˜create_connection_session_infoā€™

should mention that Iā€™m running supervised ha on a rpi fully updated as of this comment with media files on a usb-connected ssd formatted exfat / mbp

may be responsive to issues mentioned by @atxgu and @Sangoku given the log posted by the former

Great add-on! Just what Iā€™ve been looking for. I have the sensors working via MQTT, I cannot see a ā€œstatusā€ sensor though or a way of determining whether the NAS is mounted/functioning correctly or thereā€™s some kind of problem? Am I overlooking something?

Do you enable the ā€˜mqtt integrationā€™ option in config?

sorry, donā€™t think I explained myself well. I have all the MQTT sensors working ok. I just didnā€™t know which was the best one to use to verify that the drive has been mounted successfully?
I guess just check whether the entity sensor.sambanas_disk_xxxx_sambanas_mountpoints_xxxx exists?

Iā€™m having this problem with the latest version. An external USB disk canā€™t be mounted since version 12.1.0. Here is my log:

[16:10:24] INFO: Hostname: homeassistant
[16:10:24] INFO: Interfaces: eno1 
[16:10:24] INFO: Enabling S.M.A.R.T for /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.71-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

[16:10:24] INFO: Docker Interface: hassio 172.30.32.0/23
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Timers not supported

SMART Automatic Offline Testing Enabled every four hours.

[16:10:24] INFO: Enabling S.M.A.R.T for /dev/sdb
Added user ElMonty.
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.71-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

Added user _ha_mount_user_.
---------------------------------------------------
[16:10:24] 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  #
[BIBLIOTECA]            path = /mnt/Biblioteca # TM:true USAGE:media  FS:ext4  #
---------------------------------------------------
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
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
nmbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
[16:10:24] INFO: Automount Shares...
[16:10:24] INFO: Starting the AVAHI for homeassistant...
[16:10:24] INFO: Starting the wsdd daemon for REDCASA/homeassistant...
Waiting for daemon ...
smbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.
[16:10:24] INFO: Interfaces: -i eno1 
[16:10:24] INFO: Wait Samba Server to going up..(max 30s)
SMART Automatic Offline Testing Enabled every four hours.
s6-rc: info: service init-mqtt successfully started
2024-01-31 16:10:25,129:wsdd INFO(pid 378): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2024-01-31 16:10:25,130:wsdd INFO(pid 378): joined multicast group 239.255.255.250 on 192.168.1.4%eno1
2024-01-31 16:10:25,132:wsdd INFO(pid 378): scheduling Hello message via eno1 to 239.255.255.250%eno1
2024-01-31 16:10:25,178:wsdd INFO(pid 378): joined multicast group [ff02::c] on fe80::2b0f:60f5:5f10:439e%eno1
2024-01-31 16:10:25,179:wsdd INFO(pid 378): scheduling Hello message via eno1 to ff02::c%eno1

s6-rc: info: service init-smartd successfully started

Samba version 4.18.9
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
----------------------------------------------------------------------------------------------------------------------------------------
501     ElMonty      ElMonty      192.168.1.125 (ipv4:192.168.1.125:56352)  SMB3_11           -                    AES-128-GMAC         

Service      pid     Machine       Connected at                     Encryption   Signing     
---------------------------------------------------------------------------------------------
CONFIG       501     192.168.1.125 Wed Jan 31 16:10:25 2024 CET     -            AES-128-GMAC


Locked files:
Pid          User(ID)   DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
501          0          DENY_NONE  0x100081    RDONLY     NONE             /homeassistant   .   Wed Jan 31 16:10:25 2024
501          0          DENY_NONE  0x100081    RDONLY     NONE             /homeassistant   .   Wed Jan 31 16:10:25 2024

[16:10:26] ERROR: Got unexpected response from the API: Reloading BIBLIOTECA did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-BIBLIOTECA.mount for details.
[16:10:26] WARNING: Retry 1/3 Error Automount BIBLIOTECA Msg: {"name":"BIBLIOTECA","usage":"media","type":"cifs","server":"172.30.32.1","share":"BIBLIOTECA","username":"_ha_mount_user_","password":"********"}
[16:10:27] ERROR: Got unexpected response from the API: Reloading BIBLIOTECA did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-BIBLIOTECA.mount for details.
[16:10:27] WARNING: Retry 2/3 Error Automount BIBLIOTECA Msg: {"name":"BIBLIOTECA","usage":"media","type":"cifs","server":"172.30.32.1","share":"BIBLIOTECA","username":"_ha_mount_user_","password":"********"}
[16:10:28] ERROR: Got unexpected response from the API: Reloading BIBLIOTECA did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-BIBLIOTECA.mount for details.
[16:10:28] WARNING: Retry 3/3 Error Automount BIBLIOTECA Msg: {"name":"BIBLIOTECA","usage":"media","type":"cifs","server":"172.30.32.1","share":"BIBLIOTECA","username":"_ha_mount_user_","password":"********"}
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
[16:10:29] INFO: Starting the MQTT daemon for partitions info...
[16:10:29] INFO: Starting the MQTT daemon for disks info...
[16:10:29] INFO: MQTT integration
s6-rc: info: service legacy-services successfully started

In HA Logs, Host section:

Jan 31 15:10:28 homeassistant mount[3372354]: error 2 (No such file or directory) opening credential file /mnt/data/supervisor/.mounts_credentials/BIBLIOTECA
Jan 31 15:10:28 homeassistant systemd[1]: mnt-data-supervisor-mounts-BIBLIOTECA.mount: Mount process exited, code=exited, status=2/INVALIDARGUMENT
Jan 31 15:10:28 homeassistant systemd[1]: mnt-data-supervisor-mounts-BIBLIOTECA.mount: Failed with result 'exit-code'.
Jan 31 15:10:28 homeassistant systemd[1]: Failed to mount Supervisor cifs mount: BIBLIOTECA.

Any ideas? Should I open an issue with this?

Thanks

1 Like

Cheers. Firstly, I love your addon! I use it to mount my NAS as well as a second drive for Frigate. This however proves to be challenging ATM as the addon, while using Homeassistantā€™s new mounting system, capitalizes the names of the Folders instead of leaving them the way the drives are named. Frigate meanwhile expects itā€™s folder to be all small letters so ultimately I had to turn off mounting in the addon and instead do it manually. Obviously this is only a minor inconvenience but maybe a fix can be implemented some time!

Best regards

Hello, I am rather new to HA and this great Samba NAS Addon.

My problem is that I can not discover the USB driver I connected to my HA/Laptop Server.
It seems that it is because

[19:04:06] INFO: Protection Mode is true
[19:04:06] WARNING: MoreDisk and Automount ignored because of ADDON in Protected Mode!

I saw in this topic that some of the users were able just to turn this protection mode off. But I just do not have such an option at all.

I read HA documentation that suggests enabling Advanced Mode which is done by me too.

Any advice or hint would be really much appreciated.