#Home Assistant CLI not starting! Jump into emergency console

1 messages ยท Page 1 of 1 (latest)

ionic heart
#

I'm using PI4 boot from. Kingston 2.5" SATA SSD been fine for about 2 weeks I had ssl handshake error so I turned pi off and on
Now I'm getting
[WARN] Home Assistant CLI not starting! Jump into emergency console

alpine oasis
#

What happens in the console?

honest drift
#

Got the same issue, pi was unpowered for few weeks and now when powering it up it does this

#

Might try enabling wifi as some ppl had success with that

#

Oh

#

I think i know what my issue is

#

Trying wifi to see if that works

#

Nope, it does get an ip tho

#

Doesn't work after reboot either

clever bobcat
#

Is that SSD connected via a powered USB HUB?
Please try

journalctl -ru hassos-supervisor.service
journalctl -ru docker.service
journalctl -rk
honest drift
#

It's just usb to sata cable directly connected to the pi

clever bobcat
#

That often causes corruption because the pis seem to be very bad at providing reliable USB power. I don't know why.

honest drift
#

Dang

#

Worked fine until it was powered off for a while

#

I can access the files on my pc if i need to

clever bobcat
#

Let's check the logs first.

honest drift
#

Will do when i come back from da store

ionic heart
#

Seems we have similiar issue, I am using SSD to USB3

honest drift
#

So we have the same setup ๐Ÿ˜…

#

And same issue ๐Ÿคฃ

ionic heart
clever bobcat
#

I should have probably told you tomscroll to the newest logs.

ionic heart
#

my bad, does that mean just scroll to end?

#

or do I use something like -XE or something

clever bobcat
#

Wherever is newest. By default it's usually at the end.
I think we concentrate on the supervisor for now as it has a dependency error.

#

Or at least had. Seems to have fixed itself?

ionic heart
#

I'll get logs now from newest, but I've just tried to run login

#

see if anything happens

clever bobcat
#

login is only needed in the HA CLI, not the emergency console. It's what puts you into the "emergency console".

ionic heart
#

Oh my bad, okay

#

some other things when i Run
'Date'
it says Mon May 27

clever bobcat
#

I edited the commands above so the newest logs will be at the top now. Reverse order. Might be easier that way.

honest drift
#

Docker seems to have issues ๐Ÿ˜…

ionic heart
#

This is
Systemctl status hassos-overlay.service

clever bobcat
#

Yep. The supervisor seems to have major issues. I'd try to manually recreate it. Give me a second to find my post. I helped someone else with this a while ago.

#

But these overlay issues you see above are not a good sign. The OS is mostly read only but some things are not and those errors are not normal.

ionic heart
#

โœ”๏ธsystemctl stop hassos-supervisor
โœ”๏ธdocker stop hassio_supervisor hassio_cli
โœ”๏ธdocker rm hassio_supervisor hassio_cli
โœ”๏ธdocker system prune -af
/usr/sbin/hassos-supervisor

#

On last command, I get this

clever bobcat
#

I'd probably recommend a reflash and restore at this point.

ionic heart
#

is there anyway to get my back up?

#

or are those all within the 'docker'

clever bobcat
#

They are in the last partition of the disk in a supervisor/backup/ directory.
Backups are meant to save you from, among other things, disk failure/corruption, so storing them on that very same disk is ill advised ๐Ÿ˜„

honest drift
clever bobcat
#

/usr/sbin/hassos-supervisor was not meant as an argument to that docker command. It's its own command.

honest drift
#

Oops ๐Ÿคฃ

clever bobcat
#

I can't remember why I shared the full path rather than just hassos-supervisor but I probably had a reason.

ionic heart
#

haha

#

So this bit
/usr/sbin/hassos-supervisor

#

should be docker /usr/sbin/hassos-supervisor ?

clever bobcat
#

You can also just run hassos-supervisor. Above is just the full path to that binary/script.

honest drift
#

Les go and ummmm.....

#

Got ha cli now

clever bobcat
#

Seems to be WiFi related.

ionic heart
#

when i run "hassos_supervisor"
I get
/bin/ash: hassio_supervisor: not found

clever bobcat
#

It's a -, not a_.

honest drift
#

๐Ÿ‘

clever bobcat
#

If you get the CLI back I'd also run ha supervisor repair and ha host reboot. I don't trust the system yet And as the message said, give it some time. Pis are not the fastest devices.

ionic heart
#

Yeah when I run hassos-supervisor
jq: error: Could not open file /mnt/data/supervisor/updater.json

clever bobcat
honest drift
#

have had to wait few times for it to do its thing

ionic heart
#

Yeah, nothing with reboot

#

when I sun status on hassos-overlay I'm gettingl ogs like
can't create /mnt/overlay read-only file system

clever bobcat
#

I'd recommend a re-flash then. Having to muck around in the OS can sour you on the HAOS experience ๐Ÿ™‚

ionic heart
#

Thanks for the help, I'm gonna try mess around with it in breaks of work whilst I wait for weekend so I get full day to reset it up and reflash all lightbulbs

#

the fact date us Mon May 27 is probably a problem too

clever bobcat
#

But if you do want to play around. You can see the service file with systemctl cat hassos-overlay and cat /usr/libexec/hassos-overlay shows you what the script it executes does.

ionic heart
#

"usr/libexec/hassos-overlay" no such file ๐Ÿ˜ฆ

clever bobcat
#

Yeah it seems like it can't mount the disk or the mount point does not exist.
You can check findmnt -T /mnt/data/supervisor.

#

You need to write it with the slash just like me.

ionic heart
#

Oh yeah my bad

clever bobcat
#

As for the data mount you can also check systemctl status mnt-data.mount and systemctl --failed.
But like I said, this would be running an armada of commands and there's no guarantee for a fix.

ionic heart
#

Ah so basically look a the files and try to execute them one by one

#

in hope it fixes?

clever bobcat
#

No.

ionic heart
#

oh haha my bad

honest drift
#

thx, working again

clever bobcat
#

Yay. I'd recommend you get a powered USB HUB and set up backups to remote storage so in case something like this happens again you can restore things.

honest drift
#

maybe i do have to ๐Ÿ˜…

#

well i do have a usb hub but its currently hooked to my pc ๐Ÿ˜… and its not small either ๐Ÿคฃ

#

i do have smaller one somewhere

#

idk where the power cord is tho xd

clever bobcat
#

What matters is that's it provides power itself.

honest drift
#

nvm, found the hub but the power cord is somewhere ๐Ÿ˜…

ionic heart
#

I thought the sata cable itself was fine, as this issue doesn't seem to be related? I don't think the Sata 2.5" SSD require as much power as the little tiny ones

clever bobcat
ionic heart
#

Ah

#

Aren't there any cases more suitable? haha

honest drift
#

i will host ha on somehere else eventually but this is what i had on hand ๐Ÿ˜…

clever bobcat
ionic heart
#

Ah

clever bobcat
# ionic heart

Seems like your network is not working either. Is it connected via ethernet?

ionic heart
#

No WIFI

clever bobcat
#

Hmm. I'd recommend you try with ethernet.

ionic heart
#

I can't at the moment, I'll just flash it over weekend

#

that hassos thing wants to make a directory
"mkdir -p /mnt/overlay/etc/"
but when I run that it says
"Read-only file system can't do that so seems my mnt is wrong ๐Ÿ˜ฆ