Hassbian stopped working after I installed FFmpeg

Hi all,

I tried to install FFmpeg to get my Wifi camera stream working:

but it fail all my HA after I followed the Troubleshooting on the stream page as:

HA now fail at the start after MQTT with those errors…

2019-09-25 12:10:02 INFO (MainThread) [homeassistant.components.switch] Setting                          up switch.mqtt
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 10, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py                         ", line 401, in main
    exit_code = asyncio_run(setup_and_run_hass(config_dir, args))
  File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_compl                         ete
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/loggin                         g.py", line 86, in _process
    record = run_coroutine_threadsafe(self._queue.get(), self.loop).result()
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 430, in result
    raise CancelledError()
concurrent.futures._base.CancelledError

    return future.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 46, in async_setup_component
    return await setup_tasks[domain]  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 52, in async_setup_component
    return await task  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 52, in async_setup_component
    return await task  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 46, in async_setup_component
    return await setup_tasks[domain]  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 52, in async_setup_component
    return await task  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 131, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 282, in async_process_deps_reqs
    hass, config, integration.domain, integration.dependencies
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 75, in _async_process_dependencies
    results = await asyncio.gather(*tasks)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 131, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 282, in async_process_deps_reqs
    hass, config, integration.domain, integration.dependencies
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 75, in _async_process_dependencies
    results = await asyncio.gather(*tasks)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 131, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 282, in async_process_deps_reqs
    hass, config, integration.domain, integration.dependencies
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 75, in _async_process_dependencies
    results = await asyncio.gather(*tasks)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py                         ", line 304, in setup_and_run_hass
    log_no_color=args.log_no_color,
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.p                         y", line 150, in async_from_config_file
    config_dict, hass, enable_log=False, skip_pip=skip_pip
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.p                         y", line 95, in async_from_config_dict
    await _async_set_up_integrations(hass, config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.p                         y", line 376, in _async_set_up_integrations
    *(async_setup_component(hass, domain, config) for domain in domains_to_load)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 46, in async_setup_component
    return await setup_tasks[domain]  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 46, in async_setup_component
    return await setup_tasks[domain]  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 46, in async_setup_component
    return await setup_tasks[domain]  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 52, in async_setup_component
    return await task  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 131, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py",                          line 288, in async_process_deps_reqs
    hass, integration.domain, integration.requirements
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/requirement                         s.py", line 68, in async_process_requirements
    ret = await hass.async_add_executor_job(_install, hass, req, kwargs)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/requirement                         s.py", line 81, in _install
    progress_path.unlink()
  File "/usr/lib/python3.7/pathlib.py", line 1287, in unlink
    self._accessor.unlink(self)
FileNotFoundError: [Errno 2] No such file or directory: '/home/homeassistant/.ho                         meassistant/.pip_progress'


I am very newbie in the Linux stuff, HA is a big learning curve for me…
Thanks in advance!

UPDATE:
I manually started Ha with

$ sudo -u homeassistant -H -s
$ source /srv/homeassistant/bin/activate
$ hass

And now it restarted…

But I still having problem with HA to get the streaming working…
I tried to install ffmpeg on my Hassbian and it say it is already installed with version 4.1.4:

ffmpeg is already the newest version (7:4.1.4-1+rpt1~deb10u1).

But when I try to check my configuration:

$ sudo -u homeassistant -H -s
$ source /srv/homeassistant/bin/activate
$ hass --script check_config

I get a:

Testing configuration at /home/homeassistant/.homeassistant
INFO:homeassistant.util.package:Attempting install of av==6.1.2

My configs are:

#stream integration
ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg
stream:

I removed the ‘stream:’ and the

ffmpeg_bin: /usr/bin/ffmpeg

And it work know, but it is a very slow rate image/second