HA Frontend can not be accessed

Hello.

I am using HA ver 0.93.1.

And I have done SSL certificate and I can access HA frontend(https://“myddns”.com) at local and outside(external).

Last Sunday, I tried to install websocket_client and requests to apply some custom script.

At first, I might take wrong command at pi account.
pip3 install websocket_client
pip3 install requests (error happend)
after rebooting (sudo reboot)
sudo pip install requests

After installation, I can not access HA frontend anymore.
When I enter HA https page via iPhone safari, the below error message is happened.

‘FetchEvent.respondWith received an error: no-response: no-response :: [{“url”:“https://“myddns”.com/lovelace/default_view”,“error”:{}}]’

How can I solve this?
I am afraid of initializing hassbian re-installation. :frowning:

What does the homeassistant.log in your configuration directory say?

Please full log as below…

GNU nano 2.7.4 File: home-assistant.log

2019-06-10 23:49:39 WARNING (MainThread) [homeassistant.components.http] Configuring api_password via the http component has been deprecated. Use the legacy api password auth provi$
2019-06-10 23:49:39 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled.
2019-06-10 23:49:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for airkorea which has not been tested by Home Assistant. This component might ca$
2019-06-10 23:50:01 WARNING (MainThread) [homeassistant.components.script] Script script.gateway_led_blue already running.
2019-06-11 00:49:43 ERROR (MainThread) [homeassistant.components.updater] Got unexpected response: None
2019-06-11 02:30:46 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.00572711cc50e3d13c52_2 is taking over 10 seconds
2019-06-11 02:30:47 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.00572711cc50e3d13c52_2 fails
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 220, in async_update_ha_state
await self.async_device_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 377, in async_device_update
await self.hass.async_add_executor_job(self.update)
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/tuya/init.py”, line 149, in update
self.tuya.update()
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/devices/base.py”, line 43, in update
self.obj_id, ‘QueryDevice’, namespace=‘query’)
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/tuyaapi.py”, line 134, in device_control
response = self._request(action, namespace, devId, param)
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/tuyaapi.py”, line 161, in _request
response_json = response.json()
File “/srv/homeassistant/lib/python3.5/site-packages/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
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)
2019-06-11 02:30:52 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.00572711cc50e3d13c52_3 fails
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 220, in async_update_ha_state
await self.async_device_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 377, in async_device_update
await self.hass.async_add_executor_job(self.update)
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/tuya/init.py”, line 149, in update
self.tuya.update()
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/devices/base.py”, line 43, in update
self.obj_id, ‘QueryDevice’, namespace=‘query’)
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/tuyaapi.py”, line 134, in device_control
response = self._request(action, namespace, devId, param)
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/tuyaapi.py”, line 161, in _request
response_json = response.json()
File “/srv/homeassistant/lib/python3.5/site-packages/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
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)
2019-06-11 02:31:07 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 02:31:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.00572711cc50e3d13c52_1 is taking over 10 seconds
2019-06-11 02:31:09 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.00572711cc50e3d13c52_1 fails
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 220, in async_update_ha_state
await self.async_device_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 377, in async_device_update
await self.hass.async_add_executor_job(self.update)
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/tuya/init.py”, line 149, in update
self.tuya.update()
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/devices/base.py”, line 43, in update
self.obj_id, ‘QueryDevice’, namespace=‘query’)
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/tuyaapi.py”, line 134, in device_control
response = self._request(action, namespace, devId, param)
File “/srv/homeassistant/lib/python3.5/site-packages/tuyapy/tuyaapi.py”, line 161, in _request
response_json = response.json()
File “/srv/homeassistant/lib/python3.5/site-packages/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
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)
2019-06-11 02:33:22 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.00572711cc50e3d13c52_7 is taking over 10 seconds
2019-06-11 04:41:28 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.00572711cc50e3d13c52_4 is taking over 10 seconds
2019-06-11 04:41:48 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 04:42:19 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 04:42:50 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 04:43:21 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 09:15:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.00572711cc50e3d13c52_1 is taking over 10 seconds
2019-06-11 09:16:05 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 09:16:36 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 09:17:07 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 09:17:38 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 11:20:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.00572711cc50e3d13c52_2 is taking over 10 seconds
2019-06-11 11:20:36 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 11:21:07 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 11:21:38 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2019-06-11 11:22:09 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30

It is complaining heavily about your tuya switch configuration. Try removing that temporarily from your configuration as a troubleshooting step.

I reply home-assistant.log after I remove tuya switch configuration.

2019-06-11 14:35:27 WARNING (MainThread) [homeassistant.components.http] Configuring api_password via the http component has been deprecated. Use the legacy api password auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#legacy-api-password
2019-06-11 14:35:27 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled.
2019-06-11 14:35:36 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for airkorea which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-06-11 14:35:50 WARNING (MainThread) [homeassistant.components.script] Script script.gateway_led_off already running.

Can you get to the frontend now, after restarting HA?
If not, I would try removing airkorea.
Although the lagacy api password will cause issues in the future, support is currently enabled.

All custom components is removed about warning in home-assistant.log file and the below warning message is only remaining.

But HA https page is still not working…

2019-06-12 01:59:27 WARNING (MainThread) [homeassistant.components.http] Configuring api_password via the http component has been deprecated. Use the legacy api password auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#legacy-api-password
2019-06-12 01:59:27 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled.

I found something…

In local, I can access HA frontend. (i.e. http://hassbian.local:8123)

Then… what is problem?