supervisor: connection refused to hassio
any idea why there is no access to the service from the hassio-CLI?
hassio > ha info
The HTTP request failed with the error: Get http://hassio/homeassistant/info: dial tcp 192.168.1.226:80: getsockopt: connection refused
hassio > ne info
The HTTP request failed with the error: Get http://hassio/network/info: dial tcp 192.168.1.226:80: getsockopt: connection refused
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 59 (9 by maintainers)
I’m encountering this same issue. I’m unable to ssh into my Raspberry Pi at all, I had to plug it into a monitor and keyboard and access the console directly. Which reminds me, for anyone else that comes along, and is frustrated by the console spam do the following:
root
as the loginlogin
to get access to a shell prompt.dmesg -n 1
will stop the spam.exit
will put you back into thehassio
login.When I do
journalctl -fu hassos-supervisor
I get output very similar to @Megachip, but the version is165
and not155
. That is,hassos-supervisor.service
is constantly existing withstatus=1/FAILURE
and restarting.My
/mnt/data/hassos.json
is identical to the one posted by @dzerovibe.All the
hassos
/hassio
commands in the console (likesupervisor logs
fail withGet http://hassio/supervisor/logs: dial tcp 192.168.1.34:80: connect: connection refused
.date
returns the correct date and time.I’m able to ping IP addresses and domain names, so I’ve got DNS and wireless connectivity.
At this point I have no idea what else to do other than pop in a new microSD card and start over. Open to suggestions!
@Fusseldieb I have wrong time on freshly flashed hassio , cca Jan 28 2018 16:00 and there are errors - due to certificate validity -
journalctl -fu hassos-supervisor
=... certificate has expired or is not yet valid ... Fails install landingpage, retry after 60sec
… . Commanddate -s "2018-11-18 18:38"
solved my problem.Forgot to say I’ve been running fine for months and it just stopped working for no discernible reason.
You’ll probably have other problems with it, I guess. No project is perfect.
I think we should fix this together and stay strong 😃
Same Problem with 0.88.1
docker.errors.APIError: 500 Server Error: Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument")
@loopforever Log in as root (#) and type in “date”. Do you get todays date?
THANK YOU!!! exactly that happened. after setting right time it starts ))))
Hey,
I stuck the sd card in my windows system and whent trough the files and found my samba login and logs. So booted back up and after 10+ reboots i came in with Samba. Fixed my config.yaml and now kicking! Just configured my second Floor with floorplan. Thanks for your help, you are one of the people communities like this need.
In the cli it should work.
If it doesn’t, try to log into the host system using the command
login
and then when it prompts you username and password, type inroot
androot
. It should then log you in.When you’re logged in, (I think) because you’re in the host system (and not in the frontend container where your config folders are), you won’t be able to see your files in
/config/
, but in any other folder. Each container has it’s own folder structure, independent from the others. Try searching for it. I’m not sure if you can search in this minimal linux disto, but try typingfind * | grep configuration.yaml
in the main folder (/
).Basically in this way (pseudolog, I’m not in front of a RPi nor Linux right now):
I’ve identified myself here. Also using Hassio on the entire home and bad things would happen if it stops out of a sudden (Water tanks would not fill anymore, switches would not synchronize anymore, etc). Since I have no problem right now, I’ll try to help you.
So, to your problem… Try to hook a HDMI monitor to your Raspberry Pi and then restart it (In this order!). You should see linux starting up. If you don’t, your SD card is probably corrupted or fried - always make backups via the Web Interface or manually! If you didn’t make a backup, try hooking the card up to a linux computer (or starting a Linux Live USB stick). If it still doesn’t recognize it there, you’re probably out of luck and you’ll need to begin from scratch! Always backup! Two SD cards of mine failed, and once I lost everything! It lasted 6 months. Don’t be the next to suffer. If it still works somehow, immediately save your configs, as it could be the first signs of corruption (if you did nothing wrong with your configs)! With Win32DiskImager you can do a exact backup of your card - byte per byte.
If it boots up, hook up a USB keyboard and then in the console check for every log you can. There should be an error somewhere. Try
hassio ha logs
,hassio su logs
, etc.Once you’ve found the error, you can try to edit files and things directly from your RPi with the “vi” editor (Look on Google on how to use it, it’s quite unique to use). Change folders with
cd
- Basic Linux commands. Or you can edit them on your computer. You should use linux for this. If you use windows, try booting a live linux from a USB stick, for that download something like Ubuntu and put it on a USB drive. Google for tutorials. Don’t want to Google? Sigh Okay, here!Quick crash course on how to use “vi”:
:wq
which means write and quit. The command inserted should appear on the bottom left of the screen.:q
means only quit. If you have unsaved changes, you must do:q!
. The exclamation is to force something.Note: Sometimes while editing with “vi” directly on the RPi and having your Ethernet cable plugged in, Hassio will spit out logs in the console which overwrites the vi window and your text becomes quite messy. Don’t panic - it won’t mess up your document, just continue writing as if nothing happened and ignore the mess, or
:wq
(write & quit) and enter vi again,Note: Some televisors turn the screen off when the screen is mostly black (which vi is) - cough LG cough . If this happens, open your TV’s menu and let it sit there and it won’t turn off.
All these notes were once sleepless nights. Sharing my experience and tips here…
Sorry for my bad english and I hope I helped something.
@loopforever Hmmm, strange.
Look at running docker container and see what each “status”/log reports.
Some container probably has some error in it and you can see it going through each and look for errors.
Google may help you with the commands to view containers and stuff.
Any help just let me know.
EDIT: Look for the supervisor container first. On mine the error was there (Certificate error downloading stuff due to wrong date - but that’s not your case).
Looks as if the supervisor is running based upon output of
journalctl -fu hassos-supervisor
but keeps restartingjournalctl -fu hassos-supervisor
Look like the supervisor is not running. Try to run it manual with:
systemctl start hassos-supervisor
confirm issue. try 32 and 64 bit for Raspberry Pi 3 - several times re-flash/reinstall. each try - connection refuse. first time try to wait more than 4 hours - result same.