Remote access suddenly doens't work anymore

basically what is the error messages thrown when you are trying to connect using domain

Believe it or not: it just started working again after 3 days…
No idea what changed…

Hi all,

Yay for Threesa, but I have a similar new issue today that persists; my RPi4 ethernet connected HASSOS platform “hung” today - only noticed when my sunset automations didn’t run tonight. No changes to any config in 3+ weeks, last rebooted maybe 2 months ago.

My WiFi router is not reporting HA as a connected device any more, so I can’t IP connect.

RPi4 rebooted, router rebooted, ethernet cable swapped, SD card reseated - no improvement. The ethernet LED on the board flickers green during the boot sequence then is OFF.

I connected a monitor and keyboard and booted again:

  • I see a heap of ‘DEPEND’ alerts during bootup starting with " Dependency failed for HASSOS overlay partition".
  • There is a “FAILED” alert for “Failed to start HassOS overlay setup”.
  • After the “Welcome to Home Assistant” prompt appears I can login as root (no password) but not using my personal login. BUT there is no prompt after this, and aside from keyboard echo nothing much happens.
  • After the login prompt is displayed there are a few alerts like “Got data interrupt 0x00000002 even though no data operation was in progress”, every 25-30 seconds.

Any thoughts or hints on what I should look at next?

1 Like

are you using SSD or microSD? most problem occurs when the microSD get corrupted.

I’m using a Kingston MicroSD, 64GB.

if you have an extra microSD rebuilt your HA and restore… if it working then your old microSD is toast.

I’d also say that your SD card is corrupt.
If you manage to get it working again, don’t forget to add this to your configuration.yaml as to releave some stress on the SD card:

recorder:
  purge_keep_days: 31
  commit_interval: 10
1 Like

You may be onto something. I pulled the SD out and plugged into my Win10 PC, which says the E: drive is corrupt and needs formatting. Maybe a Win10 thing - does this sound normal? There is an F: drive with a few .dtb and .txt files and an /overlays directory, but nothing that looks like my config.

I’m reasonably new at this, I know I’ve made several image backups via HA (including one after the last ESPHome devices were added). Are backups stored somewhere by default? I don’t recall setting a specific location up.

Thanks - will do.

If that is the problem you should considered running HA using USB SSD. Its much faster and unlike microSD which easily corrupted being bombarded with the read/write access.

Thanks for the assist - I’ve not had an SD card fail before, but then again this is the first one I’ve used on a system with frequent read/write cycles.

no worried my friend… you are not the first one. If you search you will see so many people have their microSD fried within months sometime weeks.

Hey,

That notification is normal in Windows!
As the Home Assistant OS is Linux based, it uses Linux partitions and Windows doesn’t recognise this by default, so it’s says it’s corrupt. So not a proper way to determine I’m afraid.

Ah, I wondered if that could be the case. I’ll reconnect my linux PC tomorrow and see if I can read the SD card on it. Fingers crossed, not looking forward to completely rebuilding (and hoping I can recover all the configs). Then again in locked down Sydney it’s not like I can really go out anywhere for the weekend :-(.

That sucks indeed :-s
However if you manage to fetch some files from the old SD card, or even just your snapshots it might already gain you quite some time!

Couple of things,

Gparted has a usb stick bootable version, can repair/extract data from linux file systems
https://gparted.org/livecd.php

Windows terminal now lets you install linux terminals ubuntu/debian/etc. If you’re comfortable working from a command line you can access linux files from there.
https://ubuntu.com/wsl

Finally auto back-ups saved to a google drive.

2 Likes

Thanks @Mikefila! I eventually worked out I needed to update my old Ubuntu laptop to read exFAT (which Ubuntu says the SD card is formatted for, but isn’t loaded by default!) and can now mount the SD card - but can only read one partition that only has two system files in it. So no real luck there in retrieving anything of merit.

I’ll try gparted first and see how I go.

Hey @Mikefila, have you any experience with gparted on a Dell (Win10 i7) laptop? I created a boot USB and tried booting on my Dell Latitude with the gparted imaged USB installed, but after a complete system scan the laptop goes into a system recovery mode and wants to download & run Dell recovery software - and doesn’t execute gparted. The laptop is running perfectly when I do a normal Win10 boot!

Second question - to use WSL | Ubuntu, if I’m reading the instructions correctly I need to join
a Windows insiders program and download a new preview version of Win10 first? Did you have to do this? Keen to avoid mass changes to my primary work tool if I can get away with it…may have to build up another laptop first if this is the case.

Starting from a usb is sometimes blocked by default it may need to be enabled in the bios. You could first try shut down, press the start button and start pressing f8. See if it gives you an option for boot from usb. If not you’ll have to google the specific model and enable usb boot.

I first installed windows power shell 7 and then added the desktop environments from the windows store application. There was just a minimum version req for windows. When I checked, I was already using a newer version.

I think when it was first released you had to use the preview version to get access to it.

Thanks - I was using the boot menu to enable USB boot (off by default). I realised I had a Sandisk recovery licence and tried using their tool, which seemed to confirm there was a partition fault on the SD card.

I’ve given up and started rebuilding my HA config now; aside from ESPHome and YAML config it’s pretty smooth going so far (certainly a lot easier than the first build a couple of years ago!). Google Drive back-up was the first integration I added…not going to get burnt a second time.

The WSL | Ubuntu shell still looks interesting, will give it a go once the rebuild is complete.

1 Like