Skip to content

Commit 7c8a51d

Browse files
Update .env.example with APISIX gateway documentation
Signed-off-by: gopal-raj-suresh <gopal.raj.dummugudupu@cloud2labs.com>
1 parent 2f305d7 commit 7c8a51d

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

sample_solutions/RAGChatbot/TROUBLESHOOTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,29 @@ decoding failed due to the following error(s):
2828
2. If using a local domain (e.g., `inference.example.com`), replace `not-needed` with your domain name (without `https://`)
2929
3. Restart Docker Compose: `docker compose down && docker compose up`
3030

31+
### Error: "Network is unreachable" or "Connection refused" with custom domain
32+
33+
**Problem**:
34+
```
35+
httpcore.ConnectError: [Errno 101] Network is unreachable
36+
httpcore.ConnectError: [Errno 111] Connection refused
37+
```
38+
39+
**Cause**: Docker's `host-gateway` cannot resolve to your API server IP address.
40+
41+
**Solution**:
42+
43+
Update `docker-compose.yml` line 17 to use your API server's actual IP:
44+
```yaml
45+
# Change from:
46+
- "${LOCAL_URL_ENDPOINT}:host-gateway"
47+
48+
# To:
49+
- "${LOCAL_URL_ENDPOINT}:YOUR_API_SERVER_IP"
50+
```
51+
52+
Then restart: `docker compose down && docker compose up`
53+
3154
### Error: "404 Not Found" when uploading PDF
3255

3356
**Problem**:

sample_solutions/RAGChatbot/api/.env.example

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ INFERENCE_MODEL_NAME=meta-llama/Llama-3.1-8B-Instruct
2424

2525
# APISIX Gateway Endpoints
2626
# Uncomment and set these when using APISIX Gateway:
27-
# EMBEDDING_API_ENDPOINT=https://api.example.com/bge-base-en-v1.5
28-
# INFERENCE_MODEL_ENDPOINT=https://api.example.com/Llama-3.1-8B-Instruct
27+
# IMPORTANT: Use exact APISIX route paths:
28+
# Example routes: /bge-base-en-v1.5-vllmcpu/* and /Llama-3.1-8B-Instruct-vllmcpu/*
29+
# EMBEDDING_API_ENDPOINT=https://api.example.com/bge-base-en-v1.5-vllmcpu
30+
# INFERENCE_MODEL_ENDPOINT=https://api.example.com/Llama-3.1-8B-Instruct-vllmcpu
2931

3032
# Local URL Endpoint (only needed for non-public domains)
3133
# If using a local domain like api.example.com mapped to localhost:

0 commit comments

Comments
 (0)