-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Home Assistant: Python 3.9 piwheels Buster/Stretch mismatch #4928
Comments
I'm having issues with Home Assistant installation. After install, systemctl status shows it's using sqlite 3.27.2 and it wants at minimim 3.32.1. |
Pls open an own issue and fill the bug report with your system details. Thx for understanding. |
No need, I'm pretty sure it is exactly the issue I'm addressing here. You run a Stretch or Buster system with ARMv6 or ARMv7 architecture? |
Required
|
Specs
PSU SD Card Error
|
Fits very well. If you can wait until tomorrow, I'll ship a workaround then. The alternative would be to upgrade the system to Debian Bullseye: https://dietpi.com/blog/?p=811 |
Can you confirm whether or not Mopidy is working yet on Bullseye? Edit: It does not. Guess I'll wait. Thanks. |
Jep, Mopidy it works pretty well on Bullseye. |
Weird. |
As mentioned in the blog, the Mopidy repo does not have a Bullseye suite yet, but the Buster suite works pretty fine. In |
Looks like that worked to upgrade and fix Mopidy! (Will I need to change mopidy.list back to Bullseye when it has a Bullseye suite? Or will it do it automatically?) Trying to reinstall Home Assistant now, and will report back. |
We will adjust this on a future update automatically, once the suite is available. |
I can't reach the homeassistant webgui at http://ip:8123/ Edit: Unsure why Github is formatting the codeblock like that. Let me know if it is unreadable to you. |
Some pre-build Python 3.9 wheels provided by piwheels.org depend on external libraries of Debian Bullseye. There seems to be no check/field preventing the installation of those on Stretch/Buster systems, where older library versions are used. So we need to block Another solution is to upgrade the system to Debian Bullseye: https://dietpi.com/blog/?p=811 |
That is what I did I thought? apt update sed -i 's/buster/bullseye/g' /etc/apt/sources.list{,.d/*.list} apt update cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" |
Another solution would have been to install either Python 3.8 or Python 3.10, but:
@seniorm0ment dietpi-software reinstall 157 |
I had done an uninstall and install through dietpi-software |
This should work the same way. And it does still not work? |
It wasn't throwing the original sqlite error about being an outdated version. And I couldn't reach the webgui. Unless there was some other command I needed to run. It said the service was active. I'm not sure if it being unable to validate the db shutdown would cause the webgui to become unreachable? |
Please check |
Nope pretty much 0% cpu Edit: Yeah no, still can't reach web gui for some weird reason. No errors still. Edit2: I actually do see it, it shows as |
After CPU usage turned to 0% and only one HA process shown in systemctl restart home-assistant This is usually required once, still not sure why: home-assistant/core#28361 Yes the database unclean shutdown warning shouldn't break anything. Of course it is never good when database connection was lost uncleanly, but you'd see a real error if it was corrupted. |
Yeah nope. Gonna try rebooting the system. |
Upon rebooting, on boot, it complained 68 packages could be upgraded. Edit: It seems like Jellyfin doesn't want to find Mopidy running on the DietPi as well for some odd reason. Edit2: Edit3: I'm at a loss. |
Hmm, probably there is/was an issue on a different level. Can you check: dmesg -l emerg,alert,crit,err To check which services are listening, instead of ss -tlpn And the again HA logs: journalctl -u home-assistant |
Ok, I had to reinstall python3-pip and then reinstall Mopidy-Jellyfin and now THAT works.
|
Ah yes makes sense as pip + modules are no APT packages. I'll add those two to the reinstall list on the blog. So HA is running and listening and the web UI should hence be accessible. |
From the looks of it, yes. Which is what I don't understand. http://dietpiIP:8123/ doesn't work |
Did you try it from a different client? And what error message does it show? Does it work from the server itself? curl -IL http://127.0.0.1:8123 And to check for possibly unknown firewall rules: iptables -L |
For some reason, I had to go directly to ip:8123/onboarding.html and it works now. |
Hmm, such redirects should happen automatically. However, good that it works now. |
Thank you very much for your time and help :) |
Finally, solved with: 266a3cb That was a long process of trial and error 😄. I strongly recommend to upgrade to Bullseye with ARMv6 and ARMv7 systems when aiming to install or update Home Assistant. On Stretch and Buster it takes a long time since most Python modules now need to be compiled, including |
Sorry haven't gotten around to working on Home Assistant been busy lately. |
If you are on Bullseye, no need to change anything. This is only affecting Stretch and Buster systems. |
Hi, I don't know if that's the right issue to reopen but installing home assistant on a fresh version of bullseye I get multiple dependencies missing after the installation
DietPi version | cat /boot/dietpi/.version
Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
Kernel version | uname -a
SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
Edit: Nevermind, strange enough a reboot fixed the issue |
This is not related. Please restart the service: systemctl restart home-assistant Please see the first run notes on our docs: https://dietpi.com/docs/software/home_automation/#home-assistant |
Some pre-build Python 3.9 wheels provided by piwheels.org depend on external libraries of Debian Bullseye. There seems to be no check/field preventing the installation of those on Stretch/Buster systems, where older library versions are used. So we need to block
pip
from pulling those from piwheels.org to have them instead compiled against the actually present libraries.Another solution is to upgrade the system to Debian Bullseye: https://dietpi.com/blog/?p=811
The text was updated successfully, but these errors were encountered: