Skip to content

Commit 6d40a97

Browse files
revert private network -- app cannot find llm on aws
Full stack trace below: Error in answer_query_stream: Error communicating with OpenAI: HTTPConnectionPool(host='llm', port=80): Max retries exceeded with url: /api/v1/chat/completions (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f0b061bf910>: Failed to resolve 'llm' ([Errno -2] Name or service not known)")) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 198, in _new_conn sock = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/util/connection.py", line 60, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/socket.py", line 974, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -2] Name or service not known
1 parent d400e86 commit 6d40a97

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

compose.dev.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,3 @@ services:
6161
service: discord-bot
6262
env_file:
6363
- .env
64-
networks:
65-
private:

compose.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ services:
3939
depends_on:
4040
- redis
4141
- llm
42-
networks:
43-
- default
44-
- private
4542

4643
redis:
4744
image: redis:alpine
@@ -50,8 +47,6 @@ services:
5047
published: 6379
5148
protocol: tcp
5249
mode: host
53-
networks:
54-
- private
5550

5651
llm:
5752
image: defangio/openai-access-gateway
@@ -65,8 +60,6 @@ services:
6560
- OPENAI_API_KEY=${OPENAI_API_KEY}
6661
healthcheck:
6762
test: ["CMD", "curl", "-f", "http://localhost/health"]
68-
networks:
69-
- private
7063

7164
discord-bot:
7265
restart: unless-stopped
@@ -90,5 +83,3 @@ services:
9083
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
9184
depends_on:
9285
- app
93-
networks:
94-
private:

0 commit comments

Comments
 (0)