Can't resolve host

Hi all

I had to turn off the power to my house last night to replace a faulty socket, when I turned everything on, my Hass.io, tradfri lights and Espurna sockets were working fine

So I went to bed…woke up this morning to an unresolvable host. Im running a Pi 3B+ which will reply to pings and appears on my network. I just can’t get to the config page.

The trouble is (and yes, I’m kicking myself!), I disabled auto running of the SSH add on and Samba add on and I think it has updated/rebooted overnight. The only thing I can do is ping the pi.

Is there any other way into Hass.io? Can I get a physical console by plugging in a monitor, keyboard and mouse? I kinda got a feeling I need to start again.

Please help :blush::rofl:

Thanks

You can plugin a keyboard & monitor. If you installed the Hassio image or installed on Raspbian Lite, the mouse should not be needed.

If this is the Hassio image, you want to log in as root for the user with no password. At the prompt you can then type login to get out of hassio and into the OS.

Thanks for the reply :+1:

I’ve given that a go but just get the attached scrolling text. Not getting an option to log in. Maybe there’s a key combo I need to do to interrupt this and log in?

I guess my next option is to plug the SD into a computer.

Btw, I installed this by flashing the hass.io image, not via Raspbian

Thanks for your help :blush:

Are you running IPv6 on your network?
I do not know if Docker supports that,

No, my internal is ipv4. Thanks :blush:

I see what you mean now …I can hit enter and log in but the scrolling text is a nightmare

I’ve managed to access the file system…is there a specific log file I can look at?

Thanks :+1::blush:

There would be the home assistant log. Is it down the tree /usr/share/hassio/config ?

Does ip addr command show its ip address on your home network? There will be other 172. addresses used by Hassio too.

Hi bosborne

I have this at /hassos-data/supervisor/homeassistant/home-assistant.log

2019-04-15 20:35:40 ERROR (SyncWorker_0) [homeassistant.util.yaml] YAML file /config/configuration.yaml contains duplicate key "automation". Check lines 38 and 41.
2019-04-15 20:35:52 WARNING (MainThread) [homeassistant.config] Incomplete core configuration. Auto detected latitude: 51.7247, longitude: -3.0635, name: Pontypool, elevation: 0
2019-04-15 20:35:57 ERROR (MainThread) [homeassistant.components.mqtt.light.schema_basic] Exception in rgb_received when handling msg on 'ESP2/rgb': '#190000'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mqtt/light/schema_basic.py", line 317, in rgb_received
    rgb = [int(val) for val in payload.split(',')]
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mqtt/light/schema_basic.py", line 317, in <listcomp>
    rgb = [int(val) for val in payload.split(',')]
ValueError: invalid literal for int() with base 10: '#190000'

2019-04-15 20:40:40 ERROR (MainThread) [homeassistant.components.mqtt.light.schema_basic] Exception in rgb_received when handling msg on 'ESP2/rgb': '#190000'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mqtt/light/schema_basic.py", line 317, in rgb_received
    rgb = [int(val) for val in payload.split(',')]
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mqtt/light/schema_basic.py", line 317, in <listcomp>
    rgb = [int(val) for val in payload.split(',')]
ValueError: invalid literal for int() with base 10: '#190000'

The last section, beginning from the date kept repeating but I haven’t included it due to space…

I’ve had a look in my configuration.yaml file at line 38 and 41 but there’s just empty lines and all of my YAML files are showing as okay when put through a YAML validator.

Thanks :slight_smile:

It seems to be complaining about something in mqtt. Is it possible to comment out or remove the mqtt pieces to see if that gets things running?

“Automation” has been declared twice in your config, check all your configs.

1 Like

Don’t know what I’m doing wrong here.

I’ve just spent hours starting from scratch.

Got it all running perfectly. All my yaml validating okay.

I shut down the server…and now it’s gone again.

Don’t know where I’m going wrong.