home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.75k stars 639 forks source link

Restart Command Fails #920

Closed ghost closed 5 years ago

ghost commented 5 years ago

@RonJ103 commented on Feb 10, 2019, 4:56 PM UTC:

Home Assistant release with the issue:

0.87.0

Last working Home Assistant release (if known): I have seen this error several times in the past.

Operating environment (Hass.io/Docker/Windows/etc.):

Hass.io

Component/platform:

N/A

Description of problem: Restarting from the frontend does not always work. Sometimes it works after a few tries, it usually works if I log in using Putty and restart from the command line.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

2019-02-10 11:49:07 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2019-02-10 11:49:07 ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: 
2019-02-10 11:49:08 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall homeassistant.restart (c:37eb1fe036054f799575ed2073b8c24e)>

Additional information:

This issue was moved by awarecan from home-assistant/home-assistant#20942.

ghost commented 5 years ago

@RonJ103 commented on Feb 10, 2019, 5:18 PM UTC:

I get this in the error log sometimes as well:

2019-02-10 12:16:35 ERROR (MainThread) [homeassistant.components.hassio.handler] /homeassistant/check return code 500.
2019-02-10 12:16:35 ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: 
2019-02-10 12:16:35 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall homeassistant.restart (c:693a9ee217fd4c0eb900c2e3384213e6)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError
ghost commented 5 years ago

@akpuggy commented on Feb 10, 2019, 5:24 PM UTC:

I have the same problem that always results in the following error when I attempt to restart. The only way for me to restart is to go to the Hass.io tab > System > Reboot. This is happening on 0.87.0 and was the same on all prior version in the last 6 months or so.

Log Details (ERROR)
Sun Feb 10 2019 12:20:19 GMT-0500 (Eastern Standard Time)
Error executing service <ServiceCall homeassistant.restart (c:24e30416053645eaa9094861ff5c5bca)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError
ghost commented 5 years ago

@awarecan commented on Feb 12, 2019, 12:57 AM UTC:

It should be a hassio issue

[homeassistant.components.hassio.handler] /homeassistant/check return code 500.

Restart was triggered from hassio component, not from HA. Configuration check failed so that the restart process abort. Maybe we should have better error log for failed configuration check.

ghost commented 5 years ago

@pavolholes commented on Feb 12, 2019, 10:00 AM UTC:

I'm having issues with restarting too. I'm running fresh installation of Hass.io with HA 0.87.1 at Raspberry Pi 1 (for now). In HA I go to Configuration > General. There I click at Check config and I get Configuration valid!. So I scroll a bit lower and click at RESTART button but nothing happens. In four minutes I can see below log in HA "About" screen:

2019-02-12 10:43:48 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2019-02-12 10:43:49 ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: 
2019-02-12 10:43:49 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall homeassistant.restart (c:d7b27c76f86e4032b1da0c2d129e59b2)> 
Traceback (most recent call last):
 File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute await self._execute_service(handler, service_call)
 File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service await handler.func(service_call)
 File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service error = await async_check_config(hass)
 File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config raise HomeAssistantError() from None
 homeassistant.exceptions.HomeAssistantError

When I go to HA Services and call service homeassistant.restart again nothing happens and in four minutes I see the same error log as above.

When I go to Hass.io > System and look into System log I don't see there any mention about restart.

When I go to Hass.io > Configurator add-on > Click three dots in top right corner and click at Restart HASS again nothing happens and in four minutes I see the same error log as above.

As akpuggy wrote, the only way to restart the HA is to go to Hass.io and reload the whole system which in my case (old RPi 1) takes almost forever...

If I can provide any more logs, can you please navigate me? I'm new in HA, I play with it for about two weeks. Thanks!

ghost commented 5 years ago

@RonJ103 commented on Feb 12, 2019, 11:57 AM UTC:

I was also getting a configuration valid message when checking. awarecan, are you saying this is posted in the wrong place? Is there a specific place for hassio vs home assistant?

ghost commented 5 years ago

@awarecan commented on Feb 12, 2019, 4:04 PM UTC:

pavolholes yours log shows similar error

[homeassistant.components.hassio.handler] Timeout on /homeassistant/check request

RonJ103 I am going to move this issue to hass.io repo

pavolholes commented 5 years ago

One small comment. Now I'm restarting Home Assistant using SSH connection and running command

hassio homeassistant restart

That works fine. Just from front-end it doesn't work.

RonJ103 commented 5 years ago

Frontend restarts seem to work sometimes. I just had a restart fail from the frontend. I verified that my config file is valid. I got the following errors:

2019-02-15 15:20:10 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2019-02-15 15:20:11 ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: 
2019-02-15 15:20:11 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall homeassistant.restart (c:2d08852d6d6e4c1dafd37d9df3cba6e2)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError
martinfrancois commented 5 years ago

Restarting in the frontend also doesn't work for me, getting the following error:

Error executing service <ServiceCall homeassistant.restart (c:5695cec9efb34120be034734d63a1a91)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError
Destix commented 5 years ago

Same problem on 2 instances:

System | HassOS 2.8 Version | 143 Home Assistant | 0.87.1 Configuration validation | Configuration valid! I can restart via SSH ( ha restart )

Error executing service <ServiceCall homeassistant.restart (c:1b2e8a5882fa493b9e8817de2be9bb32)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError
pvizeli commented 5 years ago

The system is singular. So if there is a process running on Home Assistant, you need to wait until that is done. Could take to 10min. Please post the hassio su logs. They should see the issue

Destix commented 5 years ago

I can't just exec hassio su logs from 22222 ssh. I can do docker exec -it homeassistant bash and run any command from container. But what is the difference with home-assistant.log file? Anyway here is log right after HassOS restart.

2019-02-19 19:29:34 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2019-02-19 19:29:34 WARNING (MainThread) [homeassistant.setup] Setup of frontend is taking over 10 seconds.
2019-02-19 19:29:54 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform systemmonitor is taking over 10 seconds.
2019-02-19 19:29:56 WARNING (MainThread) [homeassistant.components.switch] Setup of platform broadlink is taking over 10 seconds.
2019-02-19 19:29:56 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform mqtt is taking over 10 seconds.
2019-02-19 19:29:56 WARNING (MainThread) [homeassistant.components.light] Setup of platform mqtt is taking over 10 seconds.
2019-02-19 19:29:57 WARNING (MainThread) [homeassistant.components.switch] Setup of platform mqtt is taking over 10 seconds.
2019-02-19 19:30:02 ERROR (SyncWorker_1) [homeassistant.components.switch.broadlink] Failed to connect to device
2019-02-19 19:30:19 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2019-02-19 19:30:19 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.gym_tv is taking over 10 seconds
2019-02-19 19:30:21 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-02-19 19:30:22 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/options request
2019-02-19 19:31:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_humidity is taking over 10 seconds
2019-02-19 19:31:09 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/options request
2019-02-19 19:31:20 WARNING (MainThread) [homeassistant.components.sensor] Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
2019-02-19 19:31:23 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/info request
2019-02-19 19:31:23 WARNING (MainThread) [homeassistant.components.hassio] Can't read last version: 
2019-02-19 19:31:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from mikrotik took longer than the scheduled scan interval 0:00:10
2019-02-19 19:31:27 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-02-19 19:31:56 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from mikrotik took longer than the scheduled scan interval 0:00:10
2019-02-19 19:31:56 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-02-19 19:32:40 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-02-19 19:36:26 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from mikrotik took longer than the scheduled scan interval 0:00:10
2019-02-19 19:39:05 ERROR (MainThread) [homeassistant.components.hassio.handler] /homeassistant/check return code 500.
2019-02-19 19:39:06 ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: 
2019-02-19 19:39:06 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall homeassistant.restart (c:6148e13d0bc441e9bf30f5a29ef28c09)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1139, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1152, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError

Here is HassOS log:

19-02-19 16:26:46 INFO (MainThread) [__main__] Initialize Hass.io setup
19-02-19 16:26:48 INFO (MainThread) [__main__] Setup HassIO
19-02-19 16:26:48 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armhf-hassio-supervisor with version 143
19-02-19 16:26:48 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.systemd1 on /org/freedesktop/systemd1
19-02-19 16:26:49 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-02-19 16:26:49 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.hostname1 on /org/freedesktop/hostname1
19-02-19 16:26:50 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-02-19 16:26:50 INFO (MainThread) [hassio.utils.gdbus] Introspect de.pengutronix.rauc on /
19-02-19 16:26:50 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: de.pengutronix.rauc - /
19-02-19 16:26:50 INFO (MainThread) [hassio.host.info] Update local host information
19-02-19 16:26:50 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-02-19 16:26:50 INFO (MainThread) [hassio.host.services] Update service information
19-02-19 16:26:50 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-02-19 16:26:51 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
19-02-19 16:26:51 INFO (MainThread) [hassio.host.services] Reload local service hassos-apparmor.service
19-02-19 16:26:51 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-02-19 16:26:51 INFO (SyncWorker_1) [hassio.docker.interface] Attach to image homeassistant/raspberrypi-homeassistant with version 0.87.1
19-02-19 16:26:51 INFO (MainThread) [hassio.hassos] Detect HassOS 2.8 on host system
19-02-19 16:26:52 INFO (SyncWorker_0) [hassio.docker.hassos_cli] Found HassOS CLI homeassistant/armhf-hassio-cli with version 8
19-02-19 16:26:54 INFO (MainThread) [hassio.addons.git] Load add-on /data/addons/git/a0d7b954 repository
19-02-19 16:26:54 INFO (MainThread) [hassio.addons.git] Load add-on /data/addons/core repository
19-02-19 16:26:55 INFO (MainThread) [hassio.addons.git] Load add-on /data/addons/git/7ad98f9c repository
19-02-19 16:26:56 INFO (MainThread) [hassio.addons] Load add-ons: 55 all - 55 new - 0 remove
19-02-19 16:26:57 INFO (SyncWorker_0) [hassio.docker.interface] Attach to image hassioaddons/node-red-armhf with version v1.3.0
19-02-19 16:26:57 INFO (SyncWorker_4) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-configurator with version 1.2
19-02-19 16:26:57 INFO (SyncWorker_1) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-samba with version 8
19-02-19 16:26:57 INFO (SyncWorker_3) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-mosquitto with version 4
19-02-19 16:26:57 INFO (SyncWorker_2) [hassio.docker.interface] Attach to image homeassistant/armhf-addon-duckdns with version 1.5
19-02-19 16:26:57 INFO (MainThread) [hassio.updater] Fetch update data from https://s3.amazonaws.com/hassio-version/stable.json
19-02-19 16:26:58 INFO (MainThread) [hassio.snapshots] Found 2 snapshot files
19-02-19 16:26:58 INFO (MainThread) [hassio.discovery] Load 1 messages
19-02-19 16:26:58 INFO (MainThread) [__main__] Run Hass.io
19-02-19 16:26:58 INFO (MainThread) [hassio.misc.dns] Start DNS port forwarding for host add-ons
19-02-19 16:26:58 INFO (MainThread) [hassio.api] Start API on 172.30.32.2
19-02-19 16:26:58 INFO (MainThread) [hassio.addons] Startup initialize run 0 add-ons
19-02-19 16:26:59 INFO (MainThread) [hassio.addons] Startup system run 1 add-ons
19-02-19 16:27:05 INFO (SyncWorker_3) [hassio.docker.addon] Start Docker add-on homeassistant/armhf-addon-mosquitto with version 4
19-02-19 16:27:05 INFO (MainThread) [hassio.services.mqtt] Set core_mosquitto as service provider for mqtt
19-02-19 16:27:06 INFO (MainThread) [hassio.discovery] Duplicate discovery message from core_mosquitto
19-02-19 16:27:10 INFO (MainThread) [hassio.addons] Startup services run 2 add-ons
19-02-19 16:27:16 INFO (SyncWorker_2) [hassio.docker.addon] Start Docker add-on homeassistant/armhf-addon-samba with version 8
19-02-19 16:27:21 INFO (SyncWorker_0) [hassio.docker.addon] Start Docker add-on homeassistant/armhf-addon-duckdns with version 1.5
19-02-19 16:27:32 INFO (SyncWorker_4) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi-homeassistant with version 0.87.1
19-02-19 16:30:09 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-02-19 16:30:09 INFO (MainThread) [hassio.addons] Startup application run 1 add-ons
19-02-19 16:30:15 INFO (SyncWorker_2) [hassio.docker.addon] Start Docker add-on hassioaddons/node-red-armhf with version v1.3.0
19-02-19 16:30:20 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
19-02-19 16:30:20 INFO (MainThread) [hassio.core] Hass.io is up and running
19-02-19 16:31:01 INFO (MainThread) [hassio.api.security] /addons access from a0d7b954_nodered
19-02-19 16:31:31 INFO (MainThread) [hassio.api.security] /addons access from a0d7b954_nodered
19-02-19 16:31:49 INFO (MainThread) [hassio.api.security] /supervisor/info access from a0d7b954_nodered
19-02-19 16:32:00 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_nodered
19-02-19 16:32:07 INFO (MainThread) [hassio.api.security] /homeassistant/info access from a0d7b954_nodered
19-02-19 16:32:13 INFO (MainThread) [hassio.api.security] /supervisor/info access from a0d7b954_nodered
19-02-19 16:32:22 INFO (MainThread) [hassio.api.security] /supervisor/info access from a0d7b954_nodered
19-02-19 16:35:22 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-02-19 16:36:45 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-02-19 16:36:45 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-02-19 16:36:46 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request running
19-02-19 16:38:35 INFO (SyncWorker_4) [hassio.docker] Run command 'python3 -m homeassistant -c /config --script check_config' on homeassistant/raspberrypi-homeassistant
19-02-19 16:39:05 ERROR (MainThread) [hassio.utils] Can't execute execute_command while a task is in progress
19-02-19 16:39:05 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/local/lib/python3.7/site-packages/hassio/api/security.py", line 137, in token_validation
    return await handler(request)
  File "/usr/local/lib/python3.7/site-packages/hassio/api/utils.py", line 32, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/hassio/api/homeassistant.py", line 147, in check
    result = await self.sys_homeassistant.check_config()
  File "/usr/local/lib/python3.7/site-packages/hassio/homeassistant.py", line 357, in check_config
    if result.exit_code is None:
AttributeError: 'bool' object has no attribute 'exit_code'

Seems like system is busy, 19-02-19 16:39:05 ERROR (MainThread) [hassio.utils] Can't execute execute_command while a task is in progress but how can i figure out what with

RonJ103 commented 5 years ago

The system is singular. So if there is a process running on Home Assistant, you need to wait until that is done. Could take to 10min. Please post the hassio su logs. They should see the issue

I hit restart from the frontend one time only and just waited thinking I may have just been too impatient in the past. No restart occurred and after some time this showed up in my log file:

2019-02-21 16:28:53 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2019-02-21 16:28:54 ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: 
2019-02-21 16:28:54 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall homeassistant.restart (c:779e52f07ed14c24adddf61185f2753d)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1142, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1155, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/hassio/__init__.py", line 268, in async_handle_core_service
    error = await async_check_config(hass)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/hassio/__init__.py", line 148, in async_check_config
    raise HomeAssistantError() from None
homeassistant.exceptions.HomeAssistantError

I then used PUTTY to access hassio and ran the "hassio su logs" command. This is what came up:

Error decoding json invalid character '\x1b' looking for beginning of value: 19-02-21 20:49:37 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-02-21 21:23:53 INFO (SyncWorker_13) [hassio.docker] Run command 'python3 -m homeassistant -c /config --script check_config' on homeassistant/raspberrypi3-homeassistant
19-02-21 21:29:36 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-02-21 21:39:19 INFO (MainThread) [hassio.api.security] /supervisor/logs access from core_ssh
19-02-21 21:39:34 INFO (MainThread) [hassio.api.security] /supervisor/logs access from core_ssh
pvizeli commented 5 years ago

What docker version or OS do you run?

Destix commented 5 years ago

System HassOS 2.8 (will update to 2.10 today) on Raspberry Pi Zero W

# docker version
Client:
 Version:           v18.09.0
 API version:       1.39
 Go version:        go1.11.4
 Git commit:        v18.09.0
 Built:             unknown-buildtime
 OS/Arch:           linux/arm
 Experimental:      false

Server:
 Engine:
  Version:          18.09.0
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.11.4
  Git commit:
  Built:            Sun Feb  3 20:54:57 UTC 2019
  OS/Arch:          linux/arm
  Experimental:     false
RonJ103 commented 5 years ago

I am currently running HASSIO 0.88.0. on a Raspberry Pi 3B

martinfrancois commented 5 years ago

I was able to fix this issue by installing MariaDB first as an Addon through HassIO, then I followed this guide here: https://www.home-assistant.io/addons/mariadb/ to add it to my configuration. As a side effect, HASS is a lot faster now for me. If you also have this issue, I would recommend to try this as well.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.