Skip to content

issue: Bedrock Gateway container exits on startup under Windows 11 Docker when following OpenWebUI Bedrock tutorial #1045

@mrhassan60

Description

@mrhassan60

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.41

Ollama Version (if applicable)

No response

Operating System

Windows 11

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

The Bedrock gateway should start successfully and remain running, listening on port 8000, so that OpenWebUI can connect and communicate with Amazon Bedrock.

Actual Behavior

The container starts and then automatically stops after approximately 1–2 seconds.
A Python/Uvicorn error appears in the Docker logs.

Steps to Reproduce

Follow the tutorial:
https://docs.openwebui.com/tutorials/integrations/amazon-bedrock/

Clone the Bedrock Access Gateway (BAG) repository:

git clone https://github.com/aws-samples/bedrock-access-gateway.git
cd bedrock-access-gateway

Remove the default Dockerfile:

rm Dockerfile

Rename Dockerfile_ecs to Dockerfile:

mv Dockerfile_ecs Dockerfile

Build the Docker image:

docker build . -f Dockerfile -t bedrock-gateway

Run the container with AWS credentials and region:

docker run -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID Follow the tutorial:
https://docs.openwebui.com/tutorials/integrations/amazon-bedrock/

Clone the Bedrock Access Gateway (BAG) repository:

git clone https://github.com/aws-samples/bedrock-access-gateway.git
cd bedrock-access-gateway

Remove the default Dockerfile:

rm Dockerfile

Rename Dockerfile_ecs to Dockerfile:

mv Dockerfile_ecs Dockerfile

Build the Docker image:

docker build . -f Dockerfile -t bedrock-gateway

Run the container with AWS credentials and region:

docker run -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
-e AWS_REGION=us-east-1
-d -p 8000:80 bedrock-gateway

Check the container logs:

docker logs <container_gatewayaws>

Logs & Screenshots

Docker log container :Traceback (most recent call last):

File "/usr/local/bin/uvicorn", line 7, in

sys.exit(main())

         ~~~~^^

File "/usr/local/lib/python3.13/site-packages/click/core.py", line 1485, in call

return self.main(*args, **kwargs)

       ~~~~~~~~~^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.13/site-packages/click/core.py", line 1406, in main

rv = self.invoke(ctx)

File "/usr/local/lib/python3.13/site-packages/click/core.py", line 1269, in invoke

return ctx.invoke(self.callback, **ctx.params)

       ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.13/site-packages/click/core.py", line 824, in invoke

return callback(*args, **kwargs)

File "/usr/local/lib/python3.13/site-packages/uvicorn/main.py", line 409, in main

run(

~~~^

    app,

    ^^^^

...<45 lines>...

    h11_max_incomplete_event_size=h11_max_incomplete_event_size,

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

)

^

File "/usr/local/lib/python3.13/site-packages/uvicorn/main.py", line 575, in run

server.run()

~~~~~~~~~~^^

File "/usr/local/lib/python3.13/site-packages/uvicorn/server.py", line 65, in run

return asyncio.run(self.serve(sockets=sockets))

       ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.13/asyncio/runners.py", line 195, in run

return runner.run(main)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions