After fresh install problem with depencies (Letsencrypt)

I dont now what to do after installing all depencies and updating them …I still get these errors and the frontend does not start …

Starting without “http:” in the configuration.yaml everything starts normal
Any help?

  2018-01-07 15:16:56 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/etc/letsencrypt/live/xxxx.duckdns.org/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/etc/letsencrypt/live/macjex.duckdns.org/privkey.pem'. (See /home/homeassistant/.homeassistant/configuration.yaml, line 21). Please check the docs at https://home-assistant.io/components/http/
2018-01-07 15:16:56 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of api. Setup failed for dependencies: http
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not setup all dependencies.
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not setup all dependencies.
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of system_log. Setup failed for dependencies: http
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not setup all dependencies.
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api, http, system_log
2018-01-07 15:16:57 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
2018-01-07 15:16:59 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=32 from 2018-01-07 14:01:03.251003)
2018-01-07 15:16:59 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of history. Setup failed for dependencies: http
2018-01-07 15:16:59 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not setup all dependencies.
2018-01-07 15:17:01 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: frontend
2018-01-07 15:17:01 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
2018-01-07 15:17:01 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of media_player. Setup failed for dependencies: http
2018-01-07 15:17:01 ERROR (MainThread) [homeassistant.setup] Setup failed for media_player: Could not setup all dependencies.
2018-01-07 15:17:01 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of config. Setup failed for dependencies: http
2018-01-07 15:17:01 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not setup all dependencies.
2018-01-07 15:17:01 WARNING (Thread-21) [homeassistant.components.emulated_hue] When targeting Google Home, listening port has to be port 80
2018-01-07 15:17:08 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of conversation. Setup failed for dependencies: http
2018-01-07 15:17:08 ERROR (MainThread) [homeassistant.setup] Setup failed for conversation: Could not setup all dependencies.
2018-01-07 15:17:10 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2018-01-07 15:17:10 WARNING (MainThread) [homeassistant.setup] Setup of weather is taking over 10 seconds.
2018-01-07 15:17:11 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform dwd_weather_warnings is taking over 10 seconds.
2018-01-07 15:17:11 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2018-01-07 15:17:11 WARNING (MainThread) [homeassistant.setup] Setup of light is taking over 10 seconds.
2018-01-07 15:17:25 ERROR (MainThread) [miio.device] Unable to discover a device at address 192.168.178.40
2018-01-07 15:17:25 WARNING (MainThread) [homeassistant.components.light] Platform xiaomi_miio not ready yet. Retrying in 30 seconds.
2018-01-07 15:17:27 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform nmap_tracker
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/__init__.py", line 158, in async_setup_platform
    platform.get_scanner, hass, {DOMAIN: p_config})
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py", line 44, in get_scanner
    scanner = NmapDeviceScanner(config[DOMAIN])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py", line 79, in __init__
    self.success_init = self._update_info()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py", line 105, in _update_info
    scanner = PortScanner()
  File "/srv/homeassistant/lib/python3.5/site-packages/nmap/nmap.py", line 131, in __init__
    os.getenv('PATH')
nmap.nmap.PortScannerError: 'nmap program was not found in path. PATH is : /srv/homeassistant/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games'
2018-01-07 15:17:33 ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 8300: [Errno 98] error while attempting to bind on address ('192.168.178.29', 8300): address already in use
2018-01-07 15:18:02 ERROR (MainThread) [miio.device] Unable to discover a device at address 192.168.178.40
2018-01-07 15:18:02 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-01-07 15:18:02 WARNING (MainThread) [homeassistant.components.light] Platform xiaomi_miio not ready yet. Retrying in 60 seconds.

Does your homeassistant user have correct premissions to see the certificate files?

it should be okay:
0777

That should be enough, you as the homeassistant user navigate to that foldet an do an cat on the fullchain.pem file?
Don’t post result, just yes/no

good call! something went wrong generating the files. after getting new ones its working! Many thanks !

now just getting some fine tuning done like this xD

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 171, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.5/asyncio/tasks.py”, line 400, in wait_for
return fut.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/spotify.py”, line 82, in setup_platform
token_info = oauth.get_cached_token()
File “/srv/homeassistant/lib/python3.5/site-packages/spotipy/oauth2.py”, line 132, in get_cached_token
token_info = json.loads(token_info_string)
File “/usr/lib/python3.5/json/init.py”, line 319, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.5/json/decoder.py”, line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.5/json/decoder.py”, line 357, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2018-01-07 18:12:05 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform nmap_tracker
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/init.py”, line 158, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py”, line 44, in get_scanner
scanner = NmapDeviceScanner(config[DOMAIN])
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py”, line 79, in init
self.success_init = self._update_info()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py”, line 105, in _update_info
scanner = PortScanner()
File “/srv/homeassistant/lib/python3.5/site-packages/nmap/nmap.py”, line 131, in init
os.getenv(‘PATH’)
nmap.nmap.PortScannerError: ‘nmap program was not found in path. PATH is : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin’
2018-01-07 18:12:16 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

and we are good to go …

Many many thanks for the help !!

It looks like it’s just Spotify and nmap that are faulting :slight_smile:

1 Like

after clearing alle the errors i can’t connect to my frontend xD its just loading …and loading … but no error in the Log xD