No UI after recovering from backup

Hi all,

It’s been quite a week or so with HA. I had a SD card go “read only” on me even after trying to use partition editors etc, so I decided to try a fresh install and recovery from backup. All went according to plan until I tried to restart HA for the first time after the recovery.

Before restarting, I checked my config and it came back as valid. FYI, I did delete home-assistant_v2.db before restarting, but I’ve done that before after recoving a backup because otherwise logging is out-of-sync/fills the log with errors.

After the restart I have no UI. I can SSH in, so I know the server is running, but no frontend. I believe I have Samba access as well, but only from my phone (not ideal), but I’ve seldom been able to “see” HASSIO from my Win10 box even after enabling CIFS, etc.

Here’s the error log I pull via SSH:

core-ssh:~# hassio ha logs
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/__main__.py", line 397, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/homeassistant/__main__.py", line 371, in main
    args = get_arguments()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/__main__.py", line 103, in get_arguments
    import homeassistant.config as config_util
  File "/usr/local/lib/python3.7/site-packages/homeassistant/config.py", line 31, in <module>
    from homeassistant.util.yaml import load_yaml, SECRET_YAML
  File "/usr/local/lib/python3.7/site-packages/homeassistant/util/yaml.py", line 11, in <module>
    import keyring
  File "/usr/local/lib/python3.7/site-packages/keyring/__init__.py", line 3, in <module>
    from .core import (
  File "/usr/local/lib/python3.7/site-packages/keyring/core.py", line 189, in <module>
    init_backend()
  File "/usr/local/lib/python3.7/site-packages/keyring/core.py", line 93, in init_backend
    keyrings = filter(limit, backend.get_all_keyring())
  File "/usr/local/lib/python3.7/site-packages/keyring/util/__init__.py", line 21, in wrapper
    func.always_returns = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/keyring/backend.py", line 207, in get_all_keyring
    _load_plugins()
  File "/usr/local/lib/python3.7/site-packages/keyring/backend.py", line 190, in _load_plugins
    entry_points = entrypoints.get_group_all(group=group)
  File "/usr/local/lib/python3.7/site-packages/entrypoints.py", line 236, in get_group_all
    for config, distro in iter_files_distros(path=path):
  File "/usr/local/lib/python3.7/site-packages/entrypoints.py", line 202, in iter_files_distros
    cp.read([path])
  File "/usr/local/lib/python3.7/configparser.py", line 696, in read
    self._read(fp, filename)
  File "/usr/local/lib/python3.7/configparser.py", line 1079, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/usr/local/lib/python3.7/site-packages/vultr-0.1.2.dist-info/entry_points.txt', line: 6
'from netaddr.ip import IPNetwork, cidr_exclude, cidr_merge\n'
core-ssh:~#

Anyway, I’m hoping someone can help.

Thanks.

1 Like

What version are you on? Got the same error when updating from 0.91.4 to 0.92.2
There is another issue with same error. Same cause? Broken python file?

@jakob.tewes: Just to circle back on this situation - I ended up with a new install and copying over configuration.yaml and some other files over manually. Do you have a backup file from before the issue occurred?

I’m having the same issue. No UI. tells me to reload Lovelace but the button doesn’t appear to do anything. Can not access the add on store either. Just says “failed to fetch add on info”