I am running Home assistant on a virtual mahine installed on a Synology Nas. On the the same Nas I have a folder containing music files.
Now I want to add this folder to the media storage of Home assistant. However I get an error “not a valid value for dictionary value @ data[‘type’]. Got ‘nfs’ required key not provided @ data[‘share’]. Got None”
What do I have to add to this ip-address. I tried various options but no luck.
You didnt fill ‘remote share path’. And in ‘Server’ probably is only the IP address
Did not help much:
Log says: Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:138
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: September 22, 2023 at 8:39:23 PM (39 occurrences)
Last logged: 5:02:47 PM
Failed to to call /mounts - required key not provided @ data[‘share’]. Got None
Failed to to call /mounts - not a valid value for dictionary value @ data[‘type’]. Got ‘nfs’ not a valid value for dictionary value @ data[‘version’]. Got ‘auto’ required key not provided @ data[‘share’]. Got None
Failed to to call /mounts - does not match regular expression ^[^\/]+ for dictionary value @ data[‘server’]. Got ‘\\thuisnas\Muziek/muziek’ not a valid value for dictionary value @ data[‘type’]. Got ‘nfs’ not a valid value for dictionary value @ data[‘version’]. Got ‘auto’ required key not provided @ data[‘share’]. Got None
Failed to to call /mounts - Mounting MusicOnNas did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-MusicOnNas.mount for details.
Failed to to call /mounts - Mounting MuziekOnNas did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-MuziekOnNas.mount for details.
I faced exactly the same issue with the same error message. I tried several attempts, no success so far. I’m running HA on a dedicated NUC machine, Synology NAS is also separate device. Both are connected to the same LAN.
Asking kindly if anyone may guide me, please?
I am also having the same issue, trying to enable a share to keep backups on my synology DS. The error is:
“Not a valid value for dictionary value @ data[‘type’]. Got ‘nfs’ required key not provided @ data[‘share’]. Got None required key not provided @ data[‘usage’]. Got None”
Does anyone know how the credentials to mount the NFS share need to be specified?
Or how to enable the root account on HAOS in the Synology DSM?
nfs is easy, but gives full access to the complete shared folder on the NAS. I was not able to bring it down to subfolder access.
server
ip address of your nas: for example 192.168.1.11
remote share path:
/volume1/… for example /volume1/music/mysharemusicsubfolder
On your nas go to file services in control panel and enable NFS(all default settings)
then go to Edit of the shared folder in Control Panel and go to the last tab ‘nfs permissions’.
Create a new entry with the ip address of your Homeassistant device. Leave all settings default.
I don’t like that I have to give full access on IP base to the whole Shared Folder. So I want to go with the SAMBA/Windows(CIFS SMB) share, but have not figured out the rights syntax.
Synology resource for getting NFS right:
How_to_access_files_on_Synology_NAS_within_the_local_network_NFS
After long trial and error I found the reason why SAMBA/Windows(CIFS SMB) kept giving me the following errors:
2025-01-03 20:47:18.447 homeassistant systemd[1]: mnt-data-supervisor-mounts-FlohomestationBackup.mount: Failed to open /run/systemd/transient/mnt-data-supervisor-mounts-FlohomestationBackup.mount: No such file or directory
2025-01-03 20:47:18.471 homeassistant systemd[1]: Mounting Supervisor cifs mount: FlohomestationBackup...
2025-01-03 20:47:18.483 homeassistant kernel: CIFS: Attempting to mount //192.168.1.11/Docs/Werkset/Homeassistant/BackupHassio
2025-01-03 20:47:18.491 homeassistant kernel: CIFS: VFS: \\192.168.1.11 Dialect not supported by server. Consider specifying vers=1.0 or vers=2.0 on mount for accessing older servers
2025-01-03 20:47:18.492 homeassistant kernel: CIFS: VFS: cifs_mount failed w/return code = -95
2025-01-03 20:47:18.492 homeassistant mount[4838]: mount error(95): Operation not supported
2025-01-03 20:47:18.492 homeassistant mount[4838]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
2025-01-03 20:47:18.497 homeassistant systemd[1]: mnt-data-supervisor-mounts-FlohomestationBackup.mount: Mount process exited, code=exited, status=32/n/a
2025-01-03 20:47:18.501 homeassistant systemd[1]: mnt-data-supervisor-mounts-FlohomestationBackup.mount: Failed with result 'exit-code'.
2025-01-03 20:47:18.502 homeassistant systemd[1]: Failed to mount Supervisor cifs mount: FlohomestationBackup.
It turned out you have to change the maximum SMB protocol under File Services > SMB/AFP/NFS > Advanced Settings from SMB2 to ‘SMB2 and Large MTU’ minimal. Setting to SMB3 will work as well.
this is on DSM 6.2.x (last 6.2) (waiting for a good reason to go to 7.x)
Although the log shows ‘/’(forward slashes), you have to provide backward slashed and no backward slash in front of the share path;