Error While Running Local Assist Pipeline

Hello,

trying to get a local Assist pipeline running, following situation:
Home Assistant, Whisper (port: 10300) and Piper (port:10200), both with Wyoming, are all 3 running in their own Docker containers, all physically on the same host computer.

Containers are started and running:

[+] Running 1/1
 ✔ Container whisper  Recreated                                                                                              0.1s
Attaching to whisper
whisper  | INFO:__main__:Ready
[+] Running 2/2
 ✔ Network piper_default  Created                                                                                                                                                                             0.1s
 ✔ Container piper        Created                                                                                                                                                                             0.0s
Attaching to piper
piper  | INFO:__main__:Ready

I’ve added the Wyoming Protocol integration and added both successfully as entities:
image
They were immediately detected without problems.

Assist is configured to use them like this:

But now already the very first simple test, hitting the TRY VOICE button to play back a simple TTS sentence results in this error in the UI:
image

And in the Home Assistant log it looks like this:

2023-08-16 20:19:57.347 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 876, in post
    base = get_url(self.tts.hass)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 200, in get_url
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

Anybody an idea what I’m doing wrong here?

Best regards and thanks
Andreas

I can’t help, but I can tell you I have exactly the same issue. Did you ever find a solution?

My best guess would be, that the docker containers aren’t able to speak to each other, aka the network setting in docker isn’t correct. :slight_smile:

How do you start your docker containers? If via docker compose please post the compose file, otherwise the commands you use to start the containers. :slight_smile:

Turns out my issue was pretty simple. I use a cert for external https. Internal address was not set at all in HA, turn off auto, set it manually and error goes away.

1 Like