Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Technofreak

6656 posts

Uber Geek
+1 received by user: 3474

Trusted

#298897 25-Jul-2022 22:40
Send private message

I went to do an update on Home Assistant today, there was a couple available, Core and Supervisor I think. The first one I did which I think was for Supervisor,  just sat there for ages doing nothing. The upshot is I now cannot access Home Assistant. The local URL won't connect.

 

I've got the pi now set up in console mode and can SSH in. If I run the logs for the Core and Supervisor there is a host of errors for both of them.

 

My plan was to rollback or down grade the update but each time I try I get Error No supervisor update available - 2022.07.0

 

I've found info like this but no luck in getting it to work. https://community.home-assistant.io/t/how-to-install-hassio-specific-version-includes-downgrade/54954 

 

Any ideas?





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


Create new topic
timmmay
20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #2946369 26-Jul-2022 06:56
Send private message

I run HA Core which doesn't have supervisor. Here's how I did a downgrade recently when 2022.07 caused problems (2022.07.03 or so is fine). I'm not sure this will help with supervisor, but maybe it'll be a clue?

 

If you have a backup of your configuration you could reinstall HA and then import your config.

 

 

 

sudo systemctl stop home-assistant@homeassistant

 

sudo -u homeassistant -H -s

 

source /srv/homeassistant/bin/activate
pip3 install homeassistant==2022.6.6 # this does the downgrad
# pip3 install --upgrade homeassistant # This does the upgrade

 

sudo systemctl start home-assistant@homeassistant

 

 




PANiCnz
999 posts

Ultimate Geek
+1 received by user: 161


  #2946370 26-Jul-2022 06:57
Send private message

Core, Supervisor and Hass.io are all very different, I doubt there is a way to reverse the upgrade. What installation method did you use originally? Given you're using a PI I'm guessing its Hass.io.

 

I suspect you'll need to do a clean install. Did you make a backup before doing the upgrade?


Talkiet
4819 posts

Uber Geek
+1 received by user: 3934

Trusted

  #2946424 26-Jul-2022 09:48
Send private message

Home Assistant is the worst example I have seen of software that purports to be useful but is in actuality mainly an exercise in teaching people why reading every line in every change log is critical... "Oh, we broke core functionality in this upgrade with no way to fix it? Guess you should have read the Breaking Changes part of the changelog - Whoops!"

 

It's unsuitable for all but the most hardcore of linux enthusiasts.

 

Cheers - N





Please note all comments are from my own brain and don't necessarily represent the position or opinions of my employer, previous employers, colleagues, friends or pets.




fearandloathing
537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

  #2946525 26-Jul-2022 13:16
Send private message

Copy off the backup, reinstall and restore from backup. If you don’t have a backup, copy off your config files and reinstall. Then reinstate the config files.

The recorder database likely has caused issues on the sdcard. I would get a new sdcard, before reinstalling.

Technofreak

6656 posts

Uber Geek
+1 received by user: 3474

Trusted

  #2946690 26-Jul-2022 18:55
Send private message

Thanks for the replies.

 

I was able to down grade Supervisor after first running the Stop command and then using this command,  ha core update --version x.y.z

 

So far I haven't been able to down grade Core.

 

When I run Supervisor logs now there are no errors which makes me think the update I did yesterday was indeed the problem.  There's still errors in the Core logs. There's also a warning in the Core log around not being able to validate the squlite3 database was shutdown cleanly and immediately below that warning there's another one about an unfinished session which occurred yesterday probably about the time I tried to do the update.

 

Running a Core check times out.

 

So I've made some progress, I think. I still cannot access the Pi via its IP address which makes me think there's a DNS issue some where.

 

The Pi shows up when I run a scan using Advanced IP Scanner.

 

I have another card so will have a go at a new install and copy across the config files though I expect I'll still have to do some configuration around MQTT and PAI (Paradox Alarm Interface) :(

 

I'll also continue try to find a way to down grade Core in the hope I have the same success as I did with Supervisor





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


fearandloathing
537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

  #2946699 26-Jul-2022 19:36
Send private message

Technofreak:

 

I still cannot access the Pi via its IP address which makes me think there's a DNS issue some where.

 

 

Check 'ip_bans.yaml'


 
 
 
 

Shop now for Dyson appliances (affiliate link).
Technofreak

6656 posts

Uber Geek
+1 received by user: 3474

Trusted

  #2946713 26-Jul-2022 20:44
Send private message

fearandloathing:

 

Technofreak:

 

I still cannot access the Pi via its IP address which makes me think there's a DNS issue some where.

 

 

Check 'ip_bans.yaml'

 

 

Forgive my ignorance. How/where would I find that. Currently I only have access via the ha command prompt. I don't have access to any GUI. I know how to look at the yaml files using the HA dashboard  but how do I find them otherwise?





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


Technofreak

6656 posts

Uber Geek
+1 received by user: 3474

Trusted

  #2946743 26-Jul-2022 22:17
Send private message

fearandloathing:

 

Technofreak:

 

I still cannot access the Pi via its IP address which makes me think there's a DNS issue some where.

 

 

Check 'ip_bans.yaml'

 

 

Found that "login" gets me to the # prompt, was able to find the configuration yaml. Did a search for ip_bans.yaml and got No such file or directory





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


fearandloathing
537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

  #2946751 26-Jul-2022 22:38
Send private message

As far as I am aware the ip_bans.yaml is generated automatically in the same location as your configuration.yaml, you could get around the IP ban (if it is the issue) by changing the IP address of the device you are connecting from.

 

However, if I was going to guess at your issue your sdcard is failing. I think the last time my sdcard failed it seemed like a DNS issue, my memory is vague there.

 

 


Technofreak

6656 posts

Uber Geek
+1 received by user: 3474

Trusted

  #2946752 26-Jul-2022 22:41
Send private message

The SD card is about 3 months old San Disk card

 

 





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


mattenz
195 posts

Master Geek
+1 received by user: 48


  #2946784 27-Jul-2022 08:27
Send private message

Using an SD card is asking for trouble, might be a good opportunity to get an external drive.


 
 
 

Support Geekzone with one-off or recurring donations Donate via PressPatron.
timmmay
20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #2946787 27-Jul-2022 09:00
Send private message

I got a high endurance SD card, 64GB to spread the load. It's only been six months but it's ok. I also got a spare, and I image the SD card occasionally so if it fails I have a fairly recent backup. I also run nightly backups with Restic to S3 and a cron job. I've disabled all the logging I reasonably can as well - Pi Hole, OS, HA, etc.

 

If the first SD card fails I'll probably get an SSD for my Pi4.


Technofreak

6656 posts

Uber Geek
+1 received by user: 3474

Trusted

  #2946814 27-Jul-2022 10:04
Send private message

An external drive isn't really a suitable option for this scenario as the pi is mounted inside the alarm panel and space is at a premium. Also all it's doing is providing remote monitoring and control of the house alarm. There's not a lot of reading writing going on. From what I can find out the SD card option works quite satisfactorily for this set up.

 

I'm pretty sure the issue was a failed update and not a card problem. I shouldn't have been too lazy and done a back up first.





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.