R2R icon indicating copy to clipboard operation
R2R copied to clipboard

Unable to communicate with server | Error: Network Error | Docker with Ollama

Open hamzahassan66 opened this issue 9 months ago • 2 comments
trafficstars

The issue: Served ollama config in r2r via docker but getting this error:

Steps Followed:

  1. Installation: pip install 'r2r[core,ingestion-bundle]'

  2. Upgrade: pip install --upgrade r2r

  3. Downloaded Models: ollama pull llama3.1 ollama pull mxbai-embed-large ollama serve

  4. 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 pull WARN[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... Calling docker compose -f /home/c4140/miniconda3/envs/r2r/lib/python3.12/site-packages/cli/utils/../../r2r/compose.yaml --project-name r2r --profile postgres up -d WARN[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:~$

Image

hamzahassan66 avatar Jan 25 '25 03:01 hamzahassan66