Lots of errors in log around wemo and sql lite. Anyone else seeing this, seems to have only started to happen in 0.65.6
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.0.202', port=49154): Max retries exceeded with url: /firmwareupdate.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x72b445d0>: Failed to establish a new connection: [Errno 9] Bad file descriptor',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.async_device_update()
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 325, in async_device_update
yield from self.async_update()
File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/wemo.py", line 224, in async_update
await asyncio.shield(self._async_locked_update(True))
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/asyncio/tasks.py", line 182, in _step
result = coro.throw(exc)
File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/wemo.py", line 232, in _async_locked_update
await self.hass.async_add_job(self._update, force_update)
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/wemo.py", line 237, in _update
self._state = self.wemo.get_state(force_update)
File "/usr/lib/python3.6/site-packages/pywemo/ouimeaux_device/__init__.py", line 173, in get_state
state = self.basicevent.GetBinaryState() or {}
File "/usr/lib/python3.6/site-packages/pywemo/ouimeaux_device/api/service.py", line 62, in __call__
self._device.reconnect_with_device()
File "/usr/lib/python3.6/site-packages/pywemo/ouimeaux_device/__init__.py", line 135, in reconnect_with_device
if not self._reconnect_with_device_by_probing() and self.mac:
File "/usr/lib/python3.6/site-packages/pywemo/ouimeaux_device/__init__.py", line 131, in _reconnect_with_device_by_probing
self.__dict__ = self.__class__(url, None).__dict__
File "/usr/lib/python3.6/site-packages/pywemo/ouimeaux_device/__init__.py", line 72, in __init__
service = Service(self, svc, base_url)
File "/usr/lib/python3.6/site-packages/pywemo/ouimeaux_device/api/service.py", line 81, in __init__
xml = requests.get(url, timeout=10)
File "/usr/lib/python3.6/site-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.0.202', port=49154): Max retries exceeded with url: /firmwareupdate.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x72b445d0>: Failed to establish a new connection: [Errno 9] Bad file descriptor',))
2018-03-25 11:52:59 WARNING (SyncWorker_1) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 0
2018-03-25 11:53:00 WARNING (MainThread) [homeassistant.components.switch] Updating wemo switch took longer than the scheduled update interval 0:00:10
2018-03-25 11:53:01 WARNING (MainThread) [homeassistant.components.switch.wemo] Lost connection to Downstairs Bathroom Light
2018-03-25 11:53:11 WARNING (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:53:12 WARNING (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:53:13 WARNING (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:53:14 ERROR (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:53:14 ERROR (SyncWorker_1) [pywemo.ouimeaux_device] Unable to re-probe wemo at 192.168.0.173
2018-03-25 11:53:18 WARNING (SyncWorker_1) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 1
2018-03-25 11:53:21 WARNING (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:53:24 WARNING (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:53:25 WARNING (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:53:25 ERROR (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:53:32 WARNING (SyncWorker_18) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:53:32 ERROR (SyncWorker_1) [pywemo.ouimeaux_device] Unable to re-probe wemo at 192.168.0.173
2018-03-25 11:53:33 WARNING (SyncWorker_18) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:53:34 WARNING (SyncWorker_18) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:53:34 ERROR (SyncWorker_18) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:53:35 WARNING (SyncWorker_1) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 2
2018-03-25 11:53:43 WARNING (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:53:44 WARNING (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:53:44 WARNING (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:53:45 ERROR (SyncWorker_3) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:53:50 ERROR (SyncWorker_1) [pywemo.ouimeaux_device] Unable to re-probe wemo at 192.168.0.173
2018-03-25 11:53:50 ERROR (SyncWorker_1) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light. Giving up
2018-03-25 11:53:57 WARNING (SyncWorker_19) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 0
2018-03-25 11:53:59 WARNING (MainThread) [homeassistant.components.switch.wemo] Lost connection to Downstairs Bathroom Light
2018-03-25 11:54:01 WARNING (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:54:01 WARNING (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:54:02 WARNING (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:54:03 ERROR (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:54:05 WARNING (SyncWorker_10) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:54:06 WARNING (SyncWorker_10) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:54:07 WARNING (SyncWorker_10) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:54:08 ERROR (SyncWorker_10) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:54:12 ERROR (SyncWorker_19) [pywemo.ouimeaux_device] Unable to re-probe wemo at 192.168.0.173
2018-03-25 11:54:15 WARNING (SyncWorker_19) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 1
2018-03-25 11:54:16 WARNING (SyncWorker_15) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:54:19 WARNING (SyncWorker_15) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:54:21 WARNING (MainThread) [homeassistant.components.switch.wemo] Lost connection to Spare Bedroom Light
2018-03-25 11:54:21 WARNING (SyncWorker_15) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:54:22 ERROR (SyncWorker_15) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:54:27 WARNING (SyncWorker_5) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:54:28 WARNING (SyncWorker_5) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:54:29 WARNING (SyncWorker_5) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:54:30 ERROR (SyncWorker_5) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:54:30 ERROR (SyncWorker_19) [pywemo.ouimeaux_device] Unable to re-probe wemo at 192.168.0.173
2018-03-25 11:54:33 WARNING (SyncWorker_19) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 2
2018-03-25 11:54:37 WARNING (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:54:38 WARNING (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:54:39 WARNING (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:54:39 ERROR (SyncWorker_13) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:54:48 ERROR (SyncWorker_19) [pywemo.ouimeaux_device] Unable to re-probe wemo at 192.168.0.173
2018-03-25 11:54:48 ERROR (SyncWorker_19) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light. Giving up
2018-03-25 11:54:48 WARNING (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 0
2018-03-25 11:54:49 WARNING (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 1
2018-03-25 11:54:50 WARNING (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light, retry 2
2018-03-25 11:54:51 ERROR (SyncWorker_16) [pywemo.ouimeaux_device.api.service] Error communicating with Spare Bedroom Light. Giving up
2018-03-25 11:54:51 WARNING (SyncWorker_2) [pywemo.ouimeaux_device.api.service] Error communicating with Downstairs Bathroom Light, retry 0
018-03-25 06:40:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 182, in _step
result = coro.throw(exc)
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 100, in component_platform_discovered
await self._async_setup_platform(platform, {}, info)
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 125, in _async_setup_platform
self.hass, self.config, self.domain, platform_type)
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 209, in async_prepare_setup_platform
hass, config, platform_path, platform)
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 238, in async_process_deps_reqs
hass, name, module.REQUIREMENTS)
File "/usr/lib/python3.6/site-packages/homeassistant/requirements.py", line 28, in async_process_requirements
ret = await hass.async_add_job(pip_install, req)
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/util/package.py", line 35, in install_package
if check_package_exists(package):
File "/usr/lib/python3.6/site-packages/homeassistant/util/package.py", line 76, in check_package_exists
env = pkg_resources.Environment()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1050, in __init__
self.scan(search_path)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1079, in scan
for dist in find_distributions(item):
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2016, in find_on_path
if len(os.listdir(fullpath)) == 0:
OSError: [Errno 9] Bad file descriptor: '/usr/lib/python3.6/site-packages/nsapi-2.7.4-py3.6.egg-info'
2018-03-25 06:41:21 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) locking protocol [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (?, ?, ?, ?, ?)'] [parameters: ('service_executed', '{"service_call_id": "1968191248-30"}', 'LOCAL', '2018-03-24 19:40:01.138902', '2018-03-24 19:41:11.203793')] (Background on this error at: http://sqlalche.me/e/e3q8)
2018-03-25 06:41:21 ERROR (Recorder) [homeassistant.components.recorder] Error in database connectivity: (sqlite3.OperationalError) locking protocol [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created) VALUES (?, ?, ?, ?, ?)'] [parameters: ('service_executed', '{"service_call_id": "1968191248-30"}', 'LOCAL', '2018-03-24 19:40:01.138902', '2018-03-24 19:41:11.203793')] (Background on this error at: http://sqlalche.me/e/e3q8). (retrying in 3 seconds)
2018-03-25 06:45:52 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform plex
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
conn.connect()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 326, in connect
ssl_context=context)
File "/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 814, in __init__
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1068, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:777)