#Docker debugging
1 messages ยท Page 1 of 1 (latest)
These are separate commands, hence they are in their own code block separated by a ,.
First command;
docker logs -t hassio_cli
Error response from daemon: No such container: hassio_cli
journal is abit long , any way to export it?
or any part you need particular?
The top has the newest information. It's sorted reverse by date. Just share that for now.
q.
Ah. It's cut off. Try journalctl -ru docker.service | less, journalctl -ru hassos-supervisor.service | less.
You shared the same picture twice.
Now you shared the same ljnk three times.
Shows different things now and the old pictures are removed.
I wanted to see that ./run ... ex... message in more detail.
Tell me what you need right now,
I ran the 2 commands
2 pictures from the commands
Command 1;
https://imgur.com/9Iy0IAe
command 2;
https://imgur.com/dIFBlHk
Try to scroll a bit down with the arrow keys for command 1.
ok
how long should I scroll, looks the same all the time
ok found something
Thats something you need?
Yeah that's what i wanted to see.
๐
Alright. Do a snapshot and we get to work.
Did one
Show me docker ps -a | grep superv.
Let me test if what I was trying to do works first.
Okay this is a bit hacky but here we go
systemctl stop hassos-supervisor
docker stop hassio_supervisor hassio_cli
docker rm hassio_supervisor hassio_cli
docker system prune -af
/usr/sbin/hassos-supervisor
Let the last part run until you see hassio_supervisor. Then press CTRL+C and reboot.
Will do
rebooting
ah fuck it rebooted to rescure shell, hold on
ok waiting for sueprvisor to start up
That procedure should completely recreate the supervisor and the CLI images and containers.
And also remove a bunch of junk, unused networks, images, containers and so on.
That is further than I got yesterday, it always crashed on "warn cli emergency" thing
We got an error
System information
error returned from supervisor: System is not ready with state: setup
ha >
At least you got the CLI now.
yes
Check ha supervisor logs.
Exact same message;
{"result":"error","message":"System is not ready with state: setup"}
That's all it says?
yes
Because that on its own is not relaly all that helpful.
Yeah something is still not right. That should not be in JSON format.
Try ha supervisor repair.
Wait a few minutes, then try a reboot again and see if anything changed.
ok
Rebooting
what is the command for rebooting inside HA?
successfully rebooted
looks like it was successful? ๐
Seems like I can access home assistant via the app again and everything looks good!
Sorry, was busy. You can run ha host reboot. In the normal shell you can run reboot.
That's great to hear. I strongly recommend you utilize VM snapshots and backups from now on.
- https://www.home-assistant.io/common-tasks/os/#backups
- https://github.com/jcwillox/hass-auto-backup
Make sure you store the backup outside of the VM ๐
I had autobackup to google drive ๐ฆ but it malfunctioned for 2 years apparently...
Now my VMware is crashing and wont let me snapshot.. hahah omg
But you use Virtualbox?
yes oracle virtualbox
Hmm.