Hass.io docker image on RHEL7 - Permission denied

I tried installing the hass.io container on my RHEL 7 server but keep getting the following error from the supervisor container:

Dec  1 14:49:44 tsrv01-rhel journal: starting version 3.2.2
Dec  1 14:49:44 tsrv01-rhel hassio-start: starting version 3.2.2
Dec  1 14:49:45 tsrv01-rhel hassio-start: #033[32m17-12-01 19:49:45 INFO (MainThread) [__main__] Initialize Hassio setup#033[0m
Dec  1 14:49:45 tsrv01-rhel journal: #033[32m17-12-01 19:49:45 INFO (MainThread) [__main__] Initialize Hassio setup#033[0m
Dec  1 14:49:45 tsrv01-rhel hassio-start: #033[32m17-12-01 19:49:45 INFO (MainThread) [hassio.bootstrap] Create Home-Assistant config folder /data/homeassistant#033[0m
Dec  1 14:49:45 tsrv01-rhel hassio-start: Traceback (most recent call last):
Dec  1 14:49:45 tsrv01-rhel hassio-start: File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
Dec  1 14:49:45 tsrv01-rhel hassio-start: "__main__", mod_spec)
Dec  1 14:49:45 tsrv01-rhel hassio-start: File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
Dec  1 14:49:45 tsrv01-rhel hassio-start: exec(code, run_globals)
Dec  1 14:49:45 tsrv01-rhel hassio-start: File "/usr/lib/python3.6/site-packages/hassio/__main__.py", line 26, in <module>
Dec  1 14:49:45 tsrv01-rhel hassio-start: config = bootstrap.initialize_system_data()
Dec  1 14:49:45 tsrv01-rhel hassio-start: File "/usr/lib/python3.6/site-packages/hassio/bootstrap.py", line 24, in initialize_system_data
Dec  1 14:49:45 tsrv01-rhel hassio-start: config.path_config.mkdir()
Dec  1 14:49:45 tsrv01-rhel hassio-start: File "/usr/lib/python3.6/pathlib.py", line 1227, in mkdir
Dec  1 14:49:45 tsrv01-rhel hassio-start: self._accessor.mkdir(self, mode)
Dec  1 14:49:45 tsrv01-rhel hassio-start: File "/usr/lib/python3.6/pathlib.py", line 390, in wrapped
Dec  1 14:49:45 tsrv01-rhel hassio-start: return strfunc(str(pathobj), *args)
Dec  1 14:49:45 tsrv01-rhel hassio-start: PermissionError: [Errno 13] Permission denied: '/data/homeassistant'

What could be causing this? Do I need any special packages to get this working? I’ve taken a look at the install script but can’t really find anything that would cause this.

Well, before anyone tries to diagnose this, I had 2 issues which I’m still working on. About permissions, selinux was the culprit; but I’m not sure why it would try to access /data/homeassistant instead of /usr/lib/hassio or something similar. The other issue is that RHEL 7’s Docker version is 1.12 which does not use the 1.25 API; I’ve installed docker-latest but am running into different issues now (unrelated to hass.io). Stay tuned…

Probably selinux. Run getenforce to see if it’s active, if so try disabling it temporary by: setenforce permissive and review the logs.

1 Like

Got the selinux situation under control - relabeled the appropriate dirs and modified the port policies. Question: which version of Docker API (or CS Docker engine) is supported for hass.io? See my earlier post…