Cannot reinstall Home Assistant Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Bernie V
Posts: 18
Joined: Thu Jan 05, 2017 8:07 pm

Cannot reinstall Home Assistant

Post by Bernie V »

After some years running Home Assistant on DietPi, I had some issues with Home Assistant and tried to reinstall Home Assistant with dietpi-software reinstall id 157

The installation is stucked on Installing Python-3.8.8.. for some hours now and I tried several times.
What can I try to reinstall? Thx for advice....

------------------------------------------------------------------
INSTALL LOG
-----------------------------------------------------------------

Code: Select all

[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated reinstall

[  OK  ] DietPi-Software | Reinstalling Home Assistant: open-source home automation platform
[  OK  ] DietPi-Software | Free space check: path=/ | available=50372 MiB | required=500 MiB
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Software | Checking network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] Network time sync | Completed
[ SUB1 ] DietPi-Services > unmask
[  OK  ] DietPi-Services | unmask : avahi-daemon
[  OK  ] DietPi-Services | unmask : home-assistant
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : home-assistant
[  OK  ] DietPi-Services | stop : avahi-daemon
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 https://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Checking for prerequisite software


 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Installing Home Assistant: open-source home automation platform

[ INFO ] DietPi-Software | Home Assistant user:  homeassistant
[ INFO ] DietPi-Software | Home Assistent home:  /home/homeassistant
[ INFO ] DietPi-Software | pyenv activation:     ". /home/homeassistant/pyenv-activate.sh"
[ INFO ] DietPi-Software | pyenv Python version: 3.8.8
[  OK  ] DietPi-Software | Verifying user "homeassistant" to run Home Assistant
[  OK  ] DietPi-Software | usermod -aG dialout,gpio,i2c -d /home/homeassistant -s /usr/sbin/nologin homeassistant
[  OK  ] DietPi-Software | mkdir -p /home/homeassistant
[  OK  ] DietPi-Software | Checking URL: https://github.com/pyenv/pyenv/archive/master.tar.gz
[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[ INFO ] DietPi-Software | G_THREAD_START_0 | curl -sSfL https://github.com/pyenv/pyenv/archive/master.tar.gz -o master.tar.gz
[ INFO ] DietPi-Software | APT install for: gcc libc6-dev make zlib1g-dev libbz2-dev libreadline-dev libssl-dev libsqlite3-dev libffi-dev libjpeg-dev, please wait...
[  OK  ] DietPi-Software | APT install for: gcc libc6-dev make zlib1g-dev libbz2-dev libreadline-dev libssl-dev libsqlite3-dev libffi-dev libjpeg-dev
[  OK  ] DietPi-Software | G_THREAD: All threads finished
[  OK  ] DietPi-Software | tar xf master.tar.gz
[  OK  ] DietPi-Software | rm master.tar.gz
[  OK  ] DietPi-Software | mv pyenv-master /home/homeassistant/.pyenv
[  OK  ] DietPi-Software | chown -R homeassistant:homeassistant /home/homeassistant
[ INFO ] DietPi-Software | Installing Python with Home Assistant module into pyenv, please wait...
WARNING: `pyenv init -` no longer sets PATH.
Run `pyenv init` to see the necessary changes to make to your configuration.
Downloading Python-3.8.8.tar.xz...
-> https://www.python.org/ftp/python/3.8.8/Python-3.8.8.tar.xz
Installing Python-3.8.8...


------------------------------------
HTOP
-----------------------------------

Code: Select all

htop

  1  [|||||||||||                                                                                   8.8%]   Tasks: 39; 1 running
  2  [|||||||||||||||||                                                                            16.2%]   Load average: 27.04 26.60 25.91
  3  [|||||||||||||||||                                                                            15.4%]   Uptime: 03:46:34
  4  [|||||||||||||||                                                                              13.5%]
  Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||647M/684M]
  Swp[                                                                                             0K/0K]

USER       NI CPU% MEM%   TIME+  Command
root        0  4.3 39.4 16:53.72 /usr/lib/arm-linux-gnueabihf/kodi/kodi-rbpi_v7 --lircdev /var/run/lirc/lircd --standalone
root        0  0.3  0.2  0:55.88 htop
root        0  0.3  0.2  0:40.68 /sbin/init
homeassis   0  0.3  2.9  0:53.46 /usr/lib/gcc/arm-linux-gnueabihf/6/cc1 -quiet -I ./Include/internal -I . -I ./Include -I /home/homeassistant/.pyenv/versions/3.8.8/include -I /home/homeassistant/.pyenv/versions/3.8.8/
homeassis   0  0.2 15.8  2:08.29 /usr/lib/gcc/arm-linux-gnueabihf/6/cc1 -quiet -I ./Include/internal -I . -I ./Include -I /home/homeassistant/.pyenv/versions/3.8.8/include -I /home/homeassistant/.pyenv/versions/3.8.8/
homeassis   0  0.2  4.7  0:59.31 /usr/lib/gcc/arm-linux-gnueabihf/6/cc1 -quiet -I ./Include/internal -I . -I ./Include -I /home/homeassistant/.pyenv/versions/3.8.8/include -I /home/homeassistant/.pyenv/versions/3.8.8/
homeassis   0  0.2  7.3  1:13.35 /usr/lib/gcc/arm-linux-gnueabihf/6/cc1 -quiet -I ./Include/internal -I . -I ./Include -I /home/homeassistant/.pyenv/versions/3.8.8/include -I /home/homeassistant/.pyenv/versions/3.8.8/
root        0  0.2  0.0  0:02.84 /usr/sbin/sshd -D -R
root        0  0.2  0.0  0:02.89 /usr/sbin/sshd -D -R
root        0  0.0  0.0  0:03.66 /usr/sbin/rngd -r /dev/hwrng
root        0  0.0  0.1  0:08.97 sshd: root@pts/1
root        0  0.0  0.1  0:03.41 /lib/systemd/systemd-logind
root        0  0.0  0.1  0:01.94 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root        0  0.0  0.1  0:00.62 /sbin/rpcbind -f -w
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot reinstall Home Assistant

Post by Joulinar »

I guess it's same issue as this one https://github.com/MichaIng/DietPi/issues/4372
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Bernie V
Posts: 18
Joined: Thu Jan 05, 2017 8:07 pm

Re: Cannot reinstall Home Assistant

Post by Bernie V »

Joulinar wrote: Sat May 15, 2021 5:23 pm I guess it's same issue as this one https://github.com/MichaIng/DietPi/issues/4372
Thx! This solved my issue.
User avatar
WarHawk
Posts: 730
Joined: Thu Jul 20, 2017 8:55 am

Re: Cannot reinstall Home Assistant

Post by WarHawk »

Boy howdy I bet that poor maxed out RAM SBC could benefit from ZRAM compression just for a little bit of SWAP space

However his problem was solved, but I bet a bit more RAM/SWAP couldn't hurt
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot reinstall Home Assistant

Post by Joulinar »

this has nothing to do with RAM/memory. Simply pyenv init no longer sets a PATH. This will be corrected on next release.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply