Info about core installation, stuck on HASS command

Goodmorning to all.
I try to install CORE home assistant on my new Raspberry 4.
I use Raspy Os clean
I want to use this OS because I already use some time and I need to install other app (like open media vault for use Raspy as a Nas) and have a complete subset of command on CLI. Maybe I can evaluate to use Home assistant OS in future, now I try to use the “core” version.
I’m not very expert about docker, so I avoid ths installation in this way

I use this guide: Raspberry Pi - Home Assistant at che chapter “core”

I install python 3.8 with this guide: Home Assistant Core - Python 3.8 backport for Debian buster

All work well, Python 4 worked well, I have no errors (before i try use 3.7 and I get errors, so I restart all…)

Now the problem is at the end! I simply type command hass and the cli remain stuck! I wait 20minuts but without any new info from CLI (I only get 3 message, but whithin first 5 minutes) … I try to open web browser and go to link for home assistant but page is not reachable.

What I can do?

Thanks
Massimiliano

The first startup of Home Assistant can take quite some time before it is ready. 20 minutes is not that long on an embedded system. However if Home Assistant is by now still not available, you can run the hass command with the --debug argument to get more detailed information about all processes.

Hi thanks for your answer.
I perform the command you say and this is what it return:

(homeassistant) pi@raspberrypi:/srv/homeassistant $ hass --debug 2021-05-19 13:59:48 WARNING (MainThread) [asyncio] Executing <Task pending name=‘Task-84’ coro=<_async_setup_component() running at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py:248> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb1d4d3e8>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/recorder/init.py:296> cb=[<TaskWakeupMethWrapper object at 0xb37f5208>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py:384> took 0.570 seconds
2021-05-19 13:59:48 WARNING (MainThread) [asyncio] Executing <Task finished name=‘Task-146’ coro=<async_setup..setup_panel() done, defined at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/config/init.py:46> result=None created at /usr/lib/python3.8/asyncio/tasks.py:382> took 0.117 seconds
2021-05-19 13:59:49 WARNING (MainThread) [asyncio] Executing <Task pending name=‘Task-119’ coro=<_async_setup_component() running at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py:248> wait_for=<Task pending name=‘Task-180’ coro=<Store._async_load() running at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0xb05cee38>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py:384> cb=[<TaskWakeupMethWrapper object at 0xb09dd430>(), <TaskWakeupMethWrapper object at 0xb09dd2b0>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py:384> took 0.240 seconds
2021-05-19 13:59:49 WARNING (MainThread) [asyncio] Executing <Task pending name=‘Task-125’ coro=<_async_setup_component() running at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py:248> wait_for=<Task pending name=‘Task-189’ coro=<Store._async_load() running at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0xafdd08b0>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py:384> cb=[<TaskWakeupMethWrapper object at 0xb09dd6e8>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py:384> took 0.447 seconds
2021-05-19 13:59:50 WARNING (MainThread) [asyncio] Executing <Task pending name=‘Task-285’ coro=<_async_setup_component() running at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py:278> cb=[<TaskWakeupMethWrapper object at 0xafd51898>()] created at /srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py:384> took 0.597 seconds

after pressing enter on keybord it return this error

2021-05-19 14:03:37 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
File “/usr/lib/python3.8/asyncio/runners.py”, line 44, in run
return loop.run_until_complete(main)
File “/usr/lib/python3.8/asyncio/base_events.py”, line 603, in run_until_complete
self.run_forever()
File “/usr/lib/python3.8/asyncio/base_events.py”, line 570, in run_forever
self._run_once()
File “/usr/lib/python3.8/asyncio/base_events.py”, line 1823, in _run_once
event_list = self._selector.select(timeout)
File “/usr/lib/python3.8/selectors.py”, line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/bin/hass”, line 10, in
sys.exit(main())
File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/main.py”, line 314, in main
exit_code = runner.run(runtime_conf)
File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/runner.py”, line 118, in run
return asyncio.run(setup_and_run_hass(runtime_config))
File “/usr/lib/python3.8/asyncio/runners.py”, line 51, in run
loop.close()
File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/runner.py”, line 81, in close
executor.logged_shutdown()
File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/executor.py”, line 83, in logged_shutdown
self.join_threads_or_timeout()
File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/executor.py”, line 98, in join_threads_or_timeout
remaining_threads -= join_or_interrupt_threads(
File “/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/executor.py”, line 43, in join_or_interrupt_threads
thread.join(timeout=timeout_per_thread)
File “/usr/lib/python3.8/threading.py”, line 1015, in join
self._wait_for_tstate_lock(timeout=max(timeout, 0))
File “/usr/lib/python3.8/threading.py”, line 1027, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt

what I can do?

Thanks
Massimiliano

Hi

I try to install a Docker and now seems working.

This is a workaround but it works.

Now I have a problem to clone my SD, I used HDDRawCopy in past with Pi3, I hope I will solve asap, so I can try to reflash all and starting from clean and retry "core " version.

What program I must use for clone flash?

Massi