Hello everyone,
Yesterday I restarted my hassio instance and didn’t get it back up. Looking into the log’s i found the errors described in the topic.
I’ve tried to reinstall hassio all together (disabling services, completely removing the docker files and reinstall using Frenck’s code.) A fresh instance of hassio does load and I can configure it.
When I restore my snapshot it stops working again. I’ve tried ‘wipe and restore’ and also ‘restore selected’.
When I use ‘restore selected’ all works fine, no errors in the ‘check config’ show up, but when I restart home assistant it breaks again.
Home assistant does seem to run (samba is accessible).
Hassio is running the latest version inside docker on Ubuntu on a NUC.
Supervisor log:
19-09-03 14:08:54 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:08:54 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
19-09-03 14:13:59 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:13:59 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
19-09-03 14:19:04 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:19:04 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
19-09-03 14:24:09 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:24:09 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
19-09-03 14:28:52 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository,
19-09-03 14:28:52 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository,
19-09-03 14:28:52 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/hassio-addons/repository repository,
19-09-03 14:28:53 INFO (MainThread) [hassio.store] Load add-ons from store: 61 all - 0 new - 0 remove,
19-09-03 14:29:14 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:29:14 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
19-09-03 14:34:20 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:34:20 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
19-09-03 14:39:25 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused],
19-09-03 14:39:25 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale,
Home assistant log:
2019-09-03 17:43:03 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /supervisor/options request Cannot connect to host 172.30.32.2:80 ssl:None [Connect call failed ('172.30.32.2', 80)]
2019-09-03 17:43:04 WARNING (MainThread) [homeassistant.components.sensor] Platform tautulli not ready yet. Retrying in 30 seconds.
2019-09-03 17:43:05 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /homeassistant/info request Cannot connect to host 172.30.32.2:80 ssl:None [Connect call failed ('172.30.32.2', 80)]
2019-09-03 17:43:05 WARNING (MainThread) [homeassistant.components.hassio] Can't read last version:
2019-09-03 17:43:05 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /ingress/panels request Cannot connect to host 172.30.32.2:80 ssl:None [Connect call failed ('172.30.32.2', 80)]
2019-09-03 17:43:05 ERROR (MainThread) [homeassistant.components.hassio.addon_panel] Can't read panel info:
2019-09-03 17:43:06 ERROR (MainThread) [homeassistant.components.sensor] postnl: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 316, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7ffb42f15dd0>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jouw.postnl.nl', port=443): Max retries exceeded with url: /mobile/api/letters/%5E1%5E550%5E20190826161234286 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ffb42f15dd0>: Failed to establish a new connection: [Errno -3] Try again'))
Config.yaml:
homeassistant:
customize: !include customize.yaml
auth_providers:
- type: homeassistant
- type: legacy_api_password
api_password: !secret http_password
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
whitelist_external_dirs:
- "/config/tts"
hassio:
#Home assistant cloud (Nabu Casa)
cloud:
# Enables the frontend
frontend:
themes: !include themes.yaml
javascript_version: latest
extra_html_url:
- /local/custom_ui/state-card-floorplan.html
#lovelace:
# mode: yaml
system_health:
# Enables configuration UI
config:
http:
base_url: !secret base_url
ssl_certificate: /ssl/fullchain-duckdns.pem
ssl_key: /ssl/privkey-duckdns.pem
cors_allowed_origins:
- https://cast.home-assistant.io
updater:
# Optional, allows Home Assistant developers to focus on popular components.
include_used_components: true
#Home Assistant Control Station (HACS)
#hacs:
# token: !secret hacs_token
# Discover some devices automatically
discovery:
ignore:
- igd
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
#HASS DB
recorder:
db_url: !secret db_mysql
purge_keep_days: 90
# Track the sun
sun:
#WOL Service
wake_on_lan:
# Text to speech
tts:
- platform: google_translate
service_name: google_say
language: nl
base_url: !secret base_url
cache: true
cache_dir: /config/tts
time_memory: 300
#configurator
panel_custom:
- name: Floorplan
sidebar_title: Floorplan
sidebar_icon: mdi:home
url_path: floorplan
config: !include floorplan.yaml
#MQTT
mqtt:
broker: 172.17.0.1
port: 1883
discovery: true
username: !secret mqtt_username
password: !secret mqtt_password
#Media players
media_player:
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
#IFTTT
ifttt:
key: !secret ifttt_key
#Device Trackers
device_tracker:
# TADO (HASSIO)
- platform: tado
username: !secret amazon_user
password: !secret tado_password
home_id: !secret tado_home_id
#NMAP
- platform: nmap_tracker
hosts: 192.168.1.50-200
home_interval: 10
exclude:
- 192.168.1.1
scan_options: " --privileged -sP "
interval_seconds: 30
new_device_defaults:
track_new_devices: true
hide_if_away: true
#Bluetooth
- platform: bluetooth_tracker
interval_seconds: 30
new_device_defaults:
track_new_devices: true
hide_if_away: true
- platform: bluetooth_le_tracker
interval_seconds: 30
new_device_defaults:
track_new_devices: true
hide_if_away: true
#SIMULATED
- platform: mqtt
devices:
babysitter: 'smartthings/Oppas'
#Lights
light: !include config_lights.yaml
yeelight: !include config_yeelight.yaml
switch: !include config_switches.yaml
#Sensors
sensor: !include config_sensors.yaml
#Sensors
binary_sensor: !include config_binary_sensors.yaml
#Groups
group: !include groups.yaml
#Automations
automation: !include automations.yaml
#Scripts
script: !include scripts.yaml
#Persons
person: !include config_person.yaml
#RESTful commands
rest_command: !include config_REST.yaml
### Bedroom TV Commands ###
shell_command:
bedroom_tv_turn_off: 'curl -X POST -H "Content-Type: application/json" -d "{ \"key\": \"Standby\" }" http://192.168.1.108:1925/1/input/key'
### Xiaomi Vacuum ###
vacuum:
- platform: xiaomi_miio
host: 192.168.1.249
token: !secret monica_token
name: Monica
input_select:
vacuum_room:
name: Choose a room to clean
options:
- Select Input
- Dining Room
- Hallway
- Kitchen
- Living Room
- Bunnies
initial: Select Input
### Xiaomi Vacuum ###
# Thermostaat #
tado:
username: !secret amazon_user
password: !secret tado_password
# NEST Account
nest:
client_id: !secret nest_client_ID
client_secret: !secret nest_secret
# Weer door Buienradar
weather:
- platform: buienradar
name: 'hoogland'
#Inputs
var:
monica_last_cleaning:
restore: true
monica_last_zone:
restore: true
simulate_presence:
restore: false
test_value:
restore: false
initial_value: 0
tmp:
restore: false
initial_value: 0
#Wordt gebruikt voor tijdelijke value's in o.a. alarmsysteem.
phone_notify:
restore: true
rova:
restore: true
icon: 'mdi:delete'
postnl_package:
restore: true
friendly_name: 'PostNL Pakket'
value_template: >-
{% if states.sensor.postnl_delivery.state|int > 0 %}
{% set s= states.sensor.postnl_delivery.attributes.shipments[0]['status']['formatted']['short'] %}
{% set t1 = (s|regex_findall_index('time:[^T]*T[^+-]*',0)).replace('time:','') %}
{% set d = t1.split('T')[0] %}
{% set t1 = t1.split('T')[1].rsplit(':',1)[0] %}
{% set t2 = (s|regex_findall_index('time:[^T]*T[^+-]*',1)).replace('time:','').split('T')[1].rsplit(':',1)[0] %}
Er is {{ states.sensor.postnl_delivery.state }} pakketje onderweg van {{ states.sensor.postnl_delivery.attributes.shipments[0]['title'] }}. Bezorgtijd op {{ d }} tussen {{ t1 }} en {{ t2 }}.
{% else %}
Er wordt geen pakket verwacht.
{% endif %}
icon: 'mdi:email'
input_boolean:
vacuum_ready:
name: Monica cleaned while away
backdoor_light_auto_on:
name: Backdoor turned on lights
input_number:
pokon_latest:
name: Plant pokon laatste melding
initial: 250
min: 0
max: 250
step: 1
water_latest:
name: Plant water laatste melding
initial: 100
min: 0
max: 100
step: 1
#Camera's
camera: !include config_cameras.yaml
#Alarmsysteem
alarm_control_panel:
platform: manual
name: Thuis
code: !secret alarm_code
code_arm_required: false
pending_time: 0
#Enable streaming
stream:
#For calendar
google:
client_id: !secret google_client_id
client_secret: !secret google_client_secret
Hope someone can help me out.