Yeah, I did that to get rid of the “can’t write” error. Now I got this:
Apr 09 22:17:11 pi hass[25123]: Exception in thread stream_worker:
Apr 09 22:17:11 pi hass[25123]: Traceback (most recent call last):
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/threading.py”, line 914, in _bootstrap_inner
Apr 09 22:17:11 pi hass[25123]: self.run()
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/threading.py”, line 862, in run
Apr 09 22:17:11 pi hass[25123]: self._target(*self._args, **self._kwargs)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/stream/worker.py”, line 52, in stream_worker
Apr 09 22:17:11 pi hass[25123]: import av
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/av/init.py”, line 9, in
Apr 09 22:17:11 pi hass[25123]: from av._core import time_base, pyav_version as version
Apr 09 22:17:11 pi hass[25123]: ImportError: libavdevice.so.57: cannot open shared object file: No such file or directory
Apr 09 22:17:11 pi hass[25123]: 2019-04-09 22:17:11 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1715446192] Stream already recording to /tmp/test.mp4!
Apr 09 22:17:11 pi hass[25123]: Traceback (most recent call last):
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/websocket_api/commands.py”, line 122, in handle_call_service
Apr 09 22:17:11 pi hass[25123]: connection.context(msg))
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1138, in async_call
Apr 09 22:17:11 pi hass[25123]: self._execute_service(handler, service_call))
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
Apr 09 22:17:11 pi hass[25123]: yield self # This tells Task to wait for completion.
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
Apr 09 22:17:11 pi hass[25123]: future.result()
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Apr 09 22:17:11 pi hass[25123]: raise self._exception
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
Apr 09 22:17:11 pi hass[25123]: result = coro.send(None)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1160, in _execute_service
Apr 09 22:17:11 pi hass[25123]: await handler.func(service_call)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 188, in handle_service
Apr 09 22:17:11 pi hass[25123]: self._platforms.values(), func, call, service_name
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 314, in entity_service_call
Apr 09 22:17:11 pi hass[25123]: future.result() # pop exception if have
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Apr 09 22:17:11 pi hass[25123]: raise self._exception
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
Apr 09 22:17:11 pi hass[25123]: result = coro.throw(exc)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 330, in _handle_service_platform_call
Apr 09 22:17:11 pi hass[25123]: await func(entity, data)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/init.py”, line 677, in async_handle_record_service
Apr 09 22:17:11 pi hass[25123]: blocking=True, context=call.context)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1138, in async_call
Apr 09 22:17:11 pi hass[25123]: self._execute_service(handler, service_call))
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
Apr 09 22:17:11 pi hass[25123]: yield self # This tells Task to wait for completion.
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
Apr 09 22:17:11 pi hass[25123]: future.result()
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Apr 09 22:17:11 pi hass[25123]: raise self._exception
Apr 09 22:17:11 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
Apr 09 22:17:11 pi hass[25123]: result = coro.send(None)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1160, in _execute_service
Apr 09 22:17:11 pi hass[25123]: await handler.func(service_call)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/stream/init.py”, line 114, in async_record
Apr 09 22:17:11 pi hass[25123]: await async_handle_record_service(hass, call)
Apr 09 22:17:11 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/stream/init.py”, line 217, in async_handle_record_service
Apr 09 22:17:11 pi hass[25123]: .format(recorder.video_path))
Apr 09 22:17:11 pi hass[25123]: homeassistant.exceptions.HomeAssistantError: Stream already recording to /tmp/test.mp4!
Apr 09 22:17:14 pi hass[25123]: 2019-04-09 22:17:14 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1715446192] Stream already recording to /tmp/test.mp4!
Apr 09 22:17:14 pi hass[25123]: Traceback (most recent call last):
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/websocket_api/commands.py”, line 122, in handle_call_service
Apr 09 22:17:14 pi hass[25123]: connection.context(msg))
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1138, in async_call
Apr 09 22:17:14 pi hass[25123]: self._execute_service(handler, service_call))
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
Apr 09 22:17:14 pi hass[25123]: yield self # This tells Task to wait for completion.
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
Apr 09 22:17:14 pi hass[25123]: future.result()
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Apr 09 22:17:14 pi hass[25123]: raise self._exception
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
Apr 09 22:17:14 pi hass[25123]: result = coro.send(None)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1160, in _execute_service
Apr 09 22:17:14 pi hass[25123]: await handler.func(service_call)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 188, in handle_service
Apr 09 22:17:14 pi hass[25123]: self._platforms.values(), func, call, service_name
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 314, in entity_service_call
Apr 09 22:17:14 pi hass[25123]: future.result() # pop exception if have
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Apr 09 22:17:14 pi hass[25123]: raise self._exception
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
Apr 09 22:17:14 pi hass[25123]: result = coro.throw(exc)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 330, in _handle_service_platform_call
Apr 09 22:17:14 pi hass[25123]: await func(entity, data)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/init.py”, line 677, in async_handle_record_service
Apr 09 22:17:14 pi hass[25123]: blocking=True, context=call.context)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1138, in async_call
Apr 09 22:17:14 pi hass[25123]: self._execute_service(handler, service_call))
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
Apr 09 22:17:14 pi hass[25123]: yield self # This tells Task to wait for completion.
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
Apr 09 22:17:14 pi hass[25123]: future.result()
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Apr 09 22:17:14 pi hass[25123]: raise self._exception
Apr 09 22:17:14 pi hass[25123]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
Apr 09 22:17:14 pi hass[25123]: result = coro.send(None)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1160, in _execute_service
Apr 09 22:17:14 pi hass[25123]: await handler.func(service_call)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/stream/init.py”, line 114, in async_record
Apr 09 22:17:14 pi hass[25123]: await async_handle_record_service(hass, call)
Apr 09 22:17:14 pi hass[25123]: File “/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/stream/init.py”, line 217, in async_handle_record_service
Apr 09 22:17:14 pi hass[25123]: .format(recorder.video_path))
Apr 09 22:17:14 pi hass[25123]: homeassistant.exceptions.HomeAssistantError: Stream already recording to /tmp/test.mp4!