R2R
R2R copied to clipboard
Unable to communicate with server | Error: Network Error | Docker with Ollama
The issue: Served ollama config in r2r via docker but getting this error:
Steps Followed:
-
Installation: pip install 'r2r[core,ingestion-bundle]'
-
Upgrade: pip install --upgrade r2r
-
Downloaded Models: ollama pull llama3.1 ollama pull mxbai-embed-large ollama serve
-
r2r serve --docker --config-name=ollama
Logs:
(r2r) c4140@c4140:~$ r2r serve --docker --config-name=ollama /home/c4140/miniconda3/envs/r2r/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2:
- 'fields' has been removed
warnings.warn(message, UserWarning)
Spinning up an R2R deployment...
Running on 0.0.0.0:7272, with docker=True
Using image: ragtoriches/prod:3.3.29
Pulling Docker images...
Calling
docker compose -f /home/c4140/miniconda3/envs/r2r/lib/python3.12/site-packages/cli/utils/../../r2r/compose.yaml --project-name r2r --profile postgres pullWARN[0000] The "HUGGINGFACE_API_KEY" variable is not set. Defaulting to a blank string. WARN[0000] The "GOOGLE_CLIENT_ID" variable is not set. Defaulting to a blank string. WARN[0000] The "GOOGLE_CLIENT_SECRET" variable is not set. Defaulting to a blank string. WARN[0000] The "GOOGLE_REDIRECT_URI" variable is not set. Defaulting to a blank string. WARN[0000] The "GITHUB_CLIENT_ID" variable is not set. Defaulting to a blank string. WARN[0000] The "GITHUB_CLIENT_SECRET" variable is not set. Defaulting to a blank string. WARN[0000] The "GITHUB_REDIRECT_URI" variable is not set. Defaulting to a blank string. [+] Pulling 3/3 ✔ r2r Pulled 2.2s ✔ postgres Pulled 2.2s ✔ r2r-dashboard Pulled 2.2s Starting Docker Compose setup... Callingdocker compose -f /home/c4140/miniconda3/envs/r2r/lib/python3.12/site-packages/cli/utils/../../r2r/compose.yaml --project-name r2r --profile postgres up -dWARN[0000] The "HUGGINGFACE_API_KEY" variable is not set. Defaulting to a blank string. WARN[0000] The "GOOGLE_CLIENT_ID" variable is not set. Defaulting to a blank string. WARN[0000] The "GOOGLE_CLIENT_SECRET" variable is not set. Defaulting to a blank string. WARN[0000] The "GOOGLE_REDIRECT_URI" variable is not set. Defaulting to a blank string. WARN[0000] The "GITHUB_CLIENT_ID" variable is not set. Defaulting to a blank string. WARN[0000] The "GITHUB_CLIENT_SECRET" variable is not set. Defaulting to a blank string. WARN[0000] The "GITHUB_REDIRECT_URI" variable is not set. Defaulting to a blank string. [+] Running 3/3 ✔ Container r2r-postgres-1 Started 0.4s ✔ Container r2r-r2r-dashboard-1 Started 0.3s ✔ Container r2r-r2r-1 Started 0.3s Waiting for all services to become healthy... Navigating to R2R application at http://localhost:7273.
Container Status:
(r2r) c4140@c4140:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f9f6546dba2b ragtoriches/prod:3.3.29 "sh -c 'uvicorn core…" 10 minutes ago Up 8 minutes (healthy) 0.0.0.0:7272->7272/tcp, :::7272->7272/tcp, 8000/tcp r2r-r2r-1 4a3e4dac5bf5 pgvector/pgvector:pg16 "docker-entrypoint.s…" 13 hours ago Up 8 minutes (healthy) 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp r2r-postgres-1 4943e1ffc808 emrgntcmplxty/r2r-dashboard:latest "docker-entrypoint.s…" 13 hours ago Up 8 minutes 0.0.0.0:7273->3000/tcp, [::]:7273->3000/tcp r2r-r2r-dashboard-1 (r2r) c4140@c4140:~$