Hello everybody,
I have the following notifications in my log file, but do not know how to find the problem, and solve it.
Is there anybody that can help me find the way?
I allready removed the purge_interval in my configuration, so that one is solved.
> File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
> result = await result
> File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 409, in post
> return tpl.async_render(data.get("variables"))
> File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 230, in async_render
> return compiled.render(kwargs).strip()
> File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
> self.environment.handle_exception()
> File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
> reraise(*rewrite_traceback_stack(source=source))
> File "/usr/local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
> raise value.with_traceback(tb)
> File "<template>", line 1, in top-level template code
> TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
> 2020-09-07 10:31:02 ERROR (MainThread) [aiohttp.server] Error handling request
> Traceback (most recent call last):
> File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
> resp = await task
> File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
> resp = await handler(request)
> File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
> return await handler(request)
> File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
> result = await result
> File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 409, in post
> return tpl.async_render(data.get("variables"))
> File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 230, in async_render
> return compiled.render(kwargs).strip()
> File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
> self.environment.handle_exception()
> File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
> reraise(*rewrite_traceback_stack(source=source))
> File "/usr/local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
> raise value.with_traceback(tb)
> File "<template>", line 1, in top-level template code
> TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
> 2020-09-07 10:34:09 WARNING (MainThread) [homeassistant.components.recorder] The 'purge_interval' option is deprecated, please remove it from your configuration
> 2020-09-07 10:34:14 WARNING (MainThread) [homeassistant.components.recorder] The 'purge_interval' option is deprecated, please remove it from your configuration
> [cont-finish.d] executing container finish scripts...
> [cont-finish.d] done.
> [s6-finish] waiting for services.
> 2020-09-07 10:34:17 ERROR (Thread-6) [root] Uncaught thread exception
> Traceback (most recent call last):
> File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
> self.run()
> File "/usr/local/lib/python3.8/threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
> File "/usr/local/lib/python3.8/site-packages/xiaomi_gateway/__init__.py", line 180, in _listen_to_msg
> data, (ip_add, _) = self._mcastsocket.recvfrom(SOCKET_BUFSIZE)
> OSError: [Errno 9] Bad file descriptor
> 2020-09-07 10:34:19 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
> Traceback (most recent call last):
> File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
> result = self.fn(*self.args, **self.kwargs)
> TypeError: close() takes 1 positional argument but 2 were given
> Client error on /homeassistant/restart request
> s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
> [s6-finish] sending all processes the TERM signal.
> [s6-finish] sending all processes the KILL signal and exiting.
> [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
> [s6-init] ensuring user provided files have correct perms...exited 0.
> [fix-attrs.d] applying ownership & permissions fixes...
> [fix-attrs.d] done.
> [cont-init.d] executing container initialization scripts...
> [cont-init.d] udev.sh: executing...
> [10:34:26] INFO: Update udev information
> [cont-init.d] udev.sh: exited 0.
> [cont-init.d] done.
> [services.d] starting services
> [services.d] done.
In addition to the log above my RFlink does not work after a reboot. I have to physically unplug the USB connector and let the Arduino reboot to get it working again.
I would like to thank you in advance for any of your help.
Have a nice day!
Geert