YouTubeForAlexa icon indicating copy to clipboard operation
YouTubeForAlexa copied to clipboard

Home Assistant Add-on Not Working

Open XxDdosingDosaxX opened this issue 1 year ago • 3 comments

I have home assistant installed and running. When I start the add-on it fails with:

self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 74, in serve config.load() File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 421, in load self.ssl: Optional[ssl.SSLContext] = create_ssl_context( File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 127, in create_ssl_context ctx.load_cert_chain(certfile, keyfile, get_password) FileNotFoundError: [Errno 2] No such file or directory Process SpawnProcess-2: Process SpawnProcess-5: Traceback (most recent call last): File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 74, in serve config.load() File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 421, in load self.ssl: Optional[ssl.SSLContext] = create_ssl_context( File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 127, in create_ssl_context ctx.load_cert_chain(certfile, keyfile, get_password) FileNotFoundError: [Errno 2] No such file or directory Traceback (most recent call last): File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 74, in serve config.load() File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 421, in load self.ssl: Optional[ssl.SSLContext] = create_ssl_context( File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 127, in create_ssl_context ctx.load_cert_chain(certfile, keyfile, get_password) FileNotFoundError: [Errno 2] No such file or directory Process SpawnProcess-8: Traceback (most recent call last): File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 74, in serve config.load() File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 421, in load self.ssl: Optional[ssl.SSLContext] = create_ssl_context( File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 127, in create_ssl_context ctx.load_cert_chain(certfile, keyfile, get_password) FileNotFoundError: [Errno 2] No such file or directory Process SpawnProcess-7: Traceback (most recent call last): File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 74, in serve config.load() File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 421, in load self.ssl: Optional[ssl.SSLContext] = create_ssl_context( File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 127, in create_ssl_context ctx.load_cert_chain(certfile, keyfile, get_password) FileNotFoundError: [Errno 2] No such file or directory

Could you please help me fix it? I have spent so much time but I cannot solve it. Thank you!

XxDdosingDosaxX avatar Feb 27 '23 04:02 XxDdosingDosaxX

Hello @XxDdosingDosaxX, Are you sure that you have the SSL certs in folder /ssl?

It’s your home assistant configured with HTTPS? Have you used duckdns addon for downloading the SSL certs?

wes1993 avatar Feb 27 '23 07:02 wes1993

the manual says nothing about how to insert the ssls ?@wes1933

justinh998 avatar Jun 24 '23 23:06 justinh998

I'm begging you @wes1993 please help me out here, how do I install SSL certificates? If you can't explain, that's fine too but please at least provide a pointer to where I can go to look for information

@justinh998 did you ever end up figuring out how to get it to work?

Quickssliver avatar Aug 12 '23 04:08 Quickssliver