Allowlist_external_dirs directory not permitted

Hi all,

I’m trying to move a database file from the current location ( that now, on my Hassos on NUC is under /share/hasio_db ) to the new location /database ( the to avoid to take backups of it ).

I’m trying to set the Allowlist_external_dirs but I got the error sayingg the there is no dir …

Schermata 2021-12-13 alle 15.15.45

the configuration is :

  allowlist_external_dirs:
    - /config
    - /share/hassio_db
    - /share
    - /database

all works excepts the last one.

the content of the haasio disk is :

[core-ssh ~]$ ls -l /
total 108
...
drwxr-xr-x   26 root     root          4096 Dec 13 12:44 config
...
drwxrwxrwx    2 root     root          4096 Dec 13 12:27 database
...
drwxr-xr-x    4 root     root          4096 Aug 19 11:41 share
...

I want to use that directory !

many thanks in advance…

I have the same issue (but with HA Container).

Did you find an answer?

edit: Clarification

Home Assistant core via OS or Container is a docker image. The /database folder needs to be mounted to the container. You can’t just tell a running docker image to access any folder on the hard drive, the folder has to be mapped using the -v command line option when creating the container.

1 Like

that did it - thanks!