Frontend not showing up after latest update to 0.68.1

Hello all-

Running home assistant in a virtual environment on a raspberry pi 3.
After an update to the latest version (to fix the Lutron Caseta breaking change), home assistant ran fine for a day or so (Although Phillips Hue stopped working). Now though, I don’t have a frontend, however it appears to still be running. So far I have started and stopped the service a few times as well as rebooted the pi. Does anyone have any suggestions as to how I might problem solve this? Here is a status check from terminal:

pi@HA:/home/homeassistant/.homeassistant $ sudo systemctl status [email protected] -l
● [email protected] - Home Assistant
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
   Active: active (running) since Thu 2018-05-03 09:33:16 EDT; 9min ago
 Main PID: 743 (hass)
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           └─743 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant

May 03 09:33:43 HA hass[743]: from ...orm import synonym as _orm_synonym, \
May 03 09:33:43 HA hass[743]: File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/orm/__init__.py", line 46, in <module>
May 03 09:33:43 HA hass[743]: from .relationships import RelationshipProperty
May 03 09:33:43 HA hass[743]: File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/orm/relationships.py", line 21, in <module>
May 03 09:33:43 HA hass[743]: from . import dependency
May 03 09:33:43 HA hass[743]: File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/orm/dependency.py", line 13, in <module>
May 03 09:33:43 HA hass[743]: from . import attributes, exc, sync, unitofwork, \
May 03 09:33:43 HA hass[743]: ValueError: source code string cannot contain null bytes
May 03 09:33:43 HA hass[743]: 2018-05-03 09:33:43 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
May 03 09:33:43 HA hass[743]: 2018-05-03 09:33:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1525354423.4189913, level=WARNING, message=Setup of recorder is taking over 10 seconds., exception=, source=bootstrap.py>

And here is terminal if I manually boot HA:

pi@HA:/home/homeassistant/.homeassistant $ sudo su -s /bin/bash homeassistant
homeassistant@HA:~/.homeassistant $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@HA:~/.homeassistant $ hass --script check_config
Testing configuration at /home/homeassistant/.homeassistant
(homeassistant) homeassistant@HA:~/.homeassistant $ hass
Config directory: /home/homeassistant/.homeassistant
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=check_config>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=dismiss>
2018-05-03 10:20:54 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=mqtt, service=publish>
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=mqtt>
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.setup] Setting up recorder
2018-05-03 10:20:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=recorder, service=purge>
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setting up http
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=system_log, service=clear>
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=system_log, service=write>
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=system_log>
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setting up api
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2018-05-03 10:20:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
2018-05-03 10:20:56 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
Exception in thread Recorder:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/recorder/__init__.py", line 189, in run
    from .models import States, Events
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/recorder/models.py", line 9, in <module>
    from sqlalchemy.ext.declarative import declarative_base
  File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/ext/declarative/__init__.py", line 8, in <module>
    from .api import declarative_base, synonym_for, comparable_using, \
  File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/ext/declarative/api.py", line 11, in <module>
    from ...orm import synonym as _orm_synonym, \
  File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/orm/__init__.py", line 46, in <module>
    from .relationships import RelationshipProperty
  File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/orm/relationships.py", line 21, in <module>
    from . import dependency
  File "/srv/homeassistant/lib/python3.6/site-packages/sqlalchemy/orm/dependency.py", line 13, in <module>
    from . import attributes, exc, sync, unitofwork, \
ValueError: source code string cannot contain null bytes

2018-05-03 10:20:56 INFO (MainThread) [homeassistant.setup] Setting up frontend
2018-05-03 10:20:58 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 1.8 seconds.
2018-05-03 10:20:58 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
2018-05-03 10:20:58 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2018-05-03 10:21:00 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2018-05-03 10:21:02 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2018-05-03 10:21:04 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2018-05-03 10:21:05 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2018-05-03 10:21:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1525357265.6604707, level=WARNING, message=Setup of recorder is taking over 10 seconds., exception=, source=bootstrap.py>
2018-05-03 10:21:06 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2018-05-03 10:21:08 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2018-05-03 10:21:10 INFO (Thread-2) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2

Any pointers appreciated,

R

what does the home-assistant.log say?

from this directory:

pi@HA:/home/homeassistant/.homeassistant $ 

just this:

2018-05-03 10:21:05 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.

Same here.
Removing recorder: and history: from conf make ha starts.
Need to downgrade to 67 :cry:

1 Like

Glad I haven’t updated yet…

Aha. Weird that it worked perfectly for a few days… also, interesting that this is not a beta release if such core functionality such as history and recorder don’t work. I suppose it’s unique to my (our) specific installations, and as such not a widespread phenomenon.

for me too. It works until first restart…
Until now, I jumped on each new release. Now I will think two times before updating…