Hi all, tried installing and reinstalling many times but didn’t work.
Can someone please help? Attaching the log here.
Thanks.
log.txt (2.28 KB)
Many thanks for your report.
/mnt/dietpi_userdata/homeassistant is missing, but this directory is actually created during install. Can you run and paste the output of:
ls -l /mnt/dietpi_userdata
Thanks. Its this:
root@DietPi:~# ls -l /mnt/dietpi_userdata/homeassistant/
total 0
lrwxrwxrwx 1 homeassistant homeassistant 14 Jun 20 21:32 homeassistant -> /homeassistant
root@DietPi:~#
Hi,
you have a link from /mnt/dietpi_userdata/homeassistant/ to /homeassistant. This is basically incorrect. There shouldn’t be any link. Did you created the link yourself? I would recommend to remove the link and perform the installation again.
Thanks. No idea, I must have done it while trying to fix it using another forum post.
Anyway, now I have uninstalled, deleted any leftover folders and then reinstalled it. Now
I can see that there is one directory /home/homeassistant
root@DietPi:/mnt/dietpi_userdata# ls -l homeassistant/
total 0
and there is /mnt/dietpi_userdata/homeassistant
root@DietPi:/mnt/dietpi_userdata/homeassistant# ls -l
total 0
However, I am still getting the weird error that there is no directory in userdata (please check the log I am attaching).
Any ideas?
Thanks.
log.txt (1.34 KB)
Can you please check the parent directory:
ls -al /mnt/dietpi_userdata
Yes sure. Here it is. Thanks.
root@DietPi:/mnt# root@DietPi:/mnt# ls -al /mnt/dietpi_userdata
total 60
drwxrwx--- 15 dietpi dietpi 4096 Jun 21 19:55 .
drwxr-xrwx 11 root dietpi 4096 May 2 00:22 ..
drwxrwx--- 4 dietpi dietpi 4096 Mar 8 00:12 deluge
drwxrwxr-x 8 dietpi dietpi 4096 Jun 21 20:12 downloads
drwxr-xr-x 2 homeassistant homeassistant 4096 Jun 21 19:55 homeassistant
drwxr-x--- 9 jellyfin jellyfin 4096 Mar 18 00:06 jellyfin
drwxrwx--- 2 dietpi dietpi 4096 Mar 8 00:13 lost+found
drwxrwxr-x 2 dietpi dietpi 4096 Mar 8 00:35 Music
drwxrwx--- 3 dietpi dietpi 4096 Mar 8 00:13 mysql
drwxrwx--- 4 dietpi dietpi 4096 Mar 8 00:13 nzbget
drwxrwxr-x 2 dietpi dietpi 4096 Mar 8 00:11 Pictures
drwxrwx--- 7 dietpi dietpi 4096 Jun 21 20:28 radarr
drwxrwx--- 6 sonarr dietpi 4096 Jun 21 20:14 sonarr
drwxrwx--- 6 dietpi dietpi 4096 Mar 8 00:35 ubooquity
drwxrwxr-x 2 dietpi dietpi 4096 Mar 8 00:11 Video
root@DietPi:/mnt#
you could try to remove HomeAssistent
dietpi-software uninstall 157
and perform a new install
dietpi-software install 157
Pls share the whole installation log afterwards
As well pls share the device you are running as well as your DietPi version
Yes thanks. But can you please let me know where to find the installation log?
simply copy the output from your SSH terminal
Its RPi 4 Model B and dietpi v7.2.3
Just finished reinstall with same error. Please check the attachment.
Many thanks.
install.txt (21.5 KB)
can you do a reboot and share following
journalctl -u home-assistant.service
ls -la /home/homeassistant/
is following working
cd /home/homeassistant/.homeassistant
Yes, sure.
root@DietPi:~# journalctl -u home-assistant.service
-- Logs begin at Thu 2019-02-14 21:11:58 AEDT, end at Mon 2021-06-21 23:51:25 AEST. --
Jun 21 23:51:02 DietPi systemd[1]: Started Home Assistant (DietPi).
Jun 21 23:51:12 DietPi homeassistant[977]: Fatal Error: Specified configuration directory /mnt/dietpi_userdata/homeassistant does not exist
Jun 21 23:51:12 DietPi systemd[1]: home-assistant.service: Main process exited, code=exited, sta
tus=1/FAILURE
Jun 21 23:51:12 DietPi systemd[1]: home-assistant.service: Failed with result 'exit-code'.
root@DietPi:~# ls -la /home/homeassistant/
total 32
drwxr-xr-x 4 homeassistant homeassistant 4096 Jun 21 21:38 .
drwxr-xr-x 5 root root 4096 Jun 21 21:22 ..
drwxr-xr-x 3 homeassistant homeassistant 4096 Jun 21 21:30 .cache
lrwxrwxrwx 1 root mediamgmt 34 Jun 21 21:38 .homeassistant -> /mnt/dietpi_userdata/homeassistant
-rwxr-xr-x 1 root mediamgmt 102 Jun 21 21:38 homeassistant-start.sh
-rwxr-xr-x 1 root mediamgmt 125 Jun 21 21:38 homeassistant-update.sh
drwxrwxr-x 12 homeassistant homeassistant 4096 Jun 21 21:23 .pyenv
-rw-r--r-- 1 root mediamgmt 311 Jun 21 21:23 pyenv-activate.sh
-rw-r--r-- 1 homeassistant homeassistant 7 Jun 21 21:30 .python-version
root@DietPi:/home/homeassistant/.homeassistant# ls -la
total 8
drwxr-xr-x 2 homeassistant homeassistant 4096 Jun 21 19:55 .
drwxrwx--- 15 dietpi dietpi 4096 Jun 21 19:55 ..
Any ideas folks?
MichaIng
any idea how it could happen that an existing directory /mnt/dietpi_userdata/homeassistant is not detected correctly?
I think the issue is access permissions here, as the homeassistant user is not member of the dietpi group and the userdata dir has 770 mode. Try to solve it via:
chmod +x /mnt/dietpi_userdata
A bit misleading error message of HA.
Thanks a lot MichaIng and Joulinar This seems to have fixed it and I am now in the process of slowly setting it up. Yes my permissions are a mess as over the years, I have followed advice from different sources. Don’t know how to revert back to standard permissions but may be that’s something for the future
Thanks again for your help and support and keep up the good work!!!
good it is solved now.
Great. Yeah something to keep in mind: When any non-root user wants to access a file, it requires at least execute permissions for every directory and sub directory down to that file. So to access /a/b/c/d/file, execute permissions are required for /, /a, /a/b, /a/b/c and /a/b/c/d. So if a directory is not world-executable, most users are not able to see or access anything inside.
Thanks a lot MichIng and sorry for the late response. I ended up running HA on its own RPi as the version on offer within Dietpi is limited. Thanks for your help anyway