opened
abhinavsingh
username_0
<!-- READ THIS FIRST:
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
- Frontend issues should be submitted to the home-assistant-polymer repository: https://github.com/home-assistant/home-assistant-polymer/issues
- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components
- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests
- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!
-->

**Home Assistant release with the issue:**
<!--
- Frontend -> Developer tools -> Info
- Or use this command: hass --version
-->

0.84.6

**Last working Home Assistant release (if known):**

None

**Operating environment (Hass.io/Docker/Windows/etc.):**
<!--
Please provide details about your environment.
-->

macOS Mojave 10.18.2
Python 3.7.1
pip 10.0.1

Commands used to setup hass:

$ python3 -m venv .
$ source bin/activate
$ pip3 install homeassistant
$ hass --open-ui
.... no ui, exception on console ...

**Component/platform:**
<!--
Please add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question.
-->

None, UI doesn't show up.

**Description of problem:**

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

No changes done here, using default config.

```yaml
homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 0
  longitude: 0
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: UTC
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Sensors
sensor:
  # Weather prediction
  - platform: yr

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
```

**Traceback (if applicable):**
```
2019-01-05 14:35:10 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform songpal
Traceback (most recent call last):
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/homeassistant/components/media_player/songpal.py", line 68, in async_setup_platform
    await device.initialize()
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/homeassistant/components/media_player/songpal.py", line 122, in initialize
    self._sysinfo = await self.dev.get_system_info()
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/songpal/device.py", line 174, in get_system_info
    return Sysinfo.make(**await self.services["system"]["getSystemInformation"]())
KeyError: 'system'
```

**Additional information:**
No UI: KeyError: 'system'
issue
created
ReneNulschDE
username_1
looks like the songpal discovery is a problem here. First let us try to disable the discovery of songpal devices. Change your config and add the ignore part.
```
discovery:
  ignore:
    - songpal
```
comment
created
abhinavsingh
username_0
Thanks, @username_1 that helped in getting past the fatal exception but I still don't see a UI :(

It rolls up till here:
```
2019-01-06 11:25:10 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-01-06 11:25:10 INFO (MainThread) [homeassistant.core] Timer:starting
```

then it does the service discovery
```
2019-01-06 11:25:23 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: homekit {'host': '10.0.0.143', 'port': 8080,
..
..
..
2019-01-06 11:25:23 WARNING (MainThread) [homeassistant.components.hue] Connected to Hue at 10.0.0.143 but not registered.
```

but a UI never opens up.  Also tried destroying the virtualenv and re-installing everything.
comment
created
abhinavsingh
username_0
Might be helpful for debugging.  After 10 minutes or so, it eventually failed with following stacktrace:

```
2019-01-06 11:59:31 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/homeassistant/components/discovery.py", line 172, in scan_devices
    results = await hass.async_add_job(_discover, netdisco)
  File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/homeassistant/components/discovery.py", line 198, in _discover
    netdisco.scan()
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/netdisco/discovery.py", line 63, in scan
    self.gdm.scan()
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/netdisco/gdm.py", line 22, in scan
    self.update()
  File "/Users/abhinav/Dev/home-automation/lib/python3.7/site-packages/netdisco/gdm.py", line 79, in update
    sock.sendto(gdm_msg, (gdm_ip, gdm_port))
OSError: [Errno 50] Network is down
```
comment
closed
abhinavsingh
username_0
issue
created
abhinavsingh
username_0
Even though no UI popped up, visiting http://localhost:8123 seems to work.
comment