Closed RemixaWorld closed 2 months ago
They recently released v3 and it's causing a bunch of breaking issues, both for older versions of the repo (which are apparently no longer supported) as well as docker versions.
Extremely disappointing to force an upgrade like this, will be keeping everything local for future builds to ensure I'm not relying on their remote repos.
@DrewWalkup That's a pity! I had just found out about this great project and was about to try it out when I ran into a problem. Hope the problem is solved soon!
@Remixa-python agreed. And yes, it is a great project. For now, you could try these two hacks:
Remove the r2r-dashboard dl from the docker compose file (py/compose.yaml):
r2r-dashboard:
image: emrgntcmplxty/r2r-dashboard:latest
environment:
- NEXT_PUBLIC_API_URL=http://traefik:${TRAEFIK_PORT:-80}/api
depends_on:
- r2r
networks:
- r2r-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=PathPrefix(`/`)"
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
Build the r2r-dashboard for docker on your own:
r2r-dashboard:
image: r2r-dash:private
environment:
- NEXT_PUBLIC_API_URL=http://traefik:${TRAEFIK_PORT:-80}/api
depends_on:
- r2r
networks:
- r2r-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=PathPrefix(`/`)"
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
Notes:
Hey @DrewWalkup thanks for the suggestion here. Have you found the issue to be that it's the R2R dashboard docker image that is causing this issue? I'm trying to work through what exactly the cause of this error is, and haven't quite pinned it down yet since I'm not able to reproduce this locally. If this is the case, it would be great to know.
And sorry to hear that the V3 update was a poor experience for you. We tried to make it very clear in our Discord and in our docs that this was a breaking change and that we'd help with migrations if needed. We probably should have made this clear in the repository as well, it sounds like? In either case, your feedback is super helpful here, and I appreciate it!
@Remixa-python @DrewWalkup I believe that this should be fixed now—thanks for your patience and help in getting this issue solved! If it doesn't solve it for you, please let me know!
@DrewWalkup Thanks for your detailed guidance! Nolan also mentioned fixing the issue, I'll try later!
@NolanTrem Thanks for your contributions, I will try it later.
@NolanTrem The dashboard page still gets a "Login failed" error when clicking on the default account to log in. Here is some essential information:
Starting Docker Compose setup...
[+] Running 5/6
⠇ Network r2r-network Created 12.8s
✔ Container r2r-postgres-1 Healthy 10.7s
✔ Container r2r-traefik-1 Started 0.7s
✔ Container r2r-neo4j-1 Healthy 12.2s
✔ Container r2r-r2r-1 Started 12.4s
✔ Container r2r-r2r-dashboard-1 Started 12.6s
Navigating to dashboard in 3 seconds...
Navigating to dashboard in 2 seconds...
Navigating to dashboard in 1 seconds...
Opening browser to http://localhost:8001
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
28532f665160 emrgntcmplxty/r2r-dashboard:latest "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 3000/tcp r2r-r2r-dashboard-1
4d9f5a750f38 ragtoriches/prod "sh -c 'uvicorn core…" 3 minutes ago Up 3 minutes (healthy) 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp r2r-r2r-1
02ce79f2a071 pgvector/pgvector:pg16 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes (healthy) 5432/tcp r2r-postgres-1
fec6a19b3092 neo4j:5.21.0 "tini -g -- /startup…" 3 minutes ago Up 3 minutes (healthy) 0.0.0.0:7474->7474/tcp, :::7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp, :::7687->7687/tcp r2r-neo4j-1
0a991ba4212e traefik:v2.9 "/entrypoint.sh --ap…" 3 minutes ago Up 3 minutes 0.0.0.0:8001->8001/tcp, :::8001->8001/tcp, 80/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp r2r-traefik-1
d12865cf4418 ollama/ollama "/bin/ollama serve" 45 hours ago Up 3 hours 0.0.0.0:11434->11434/tcp, :::11434->11434/tcp ollama
2024-09-02 10:16:47,637 - INFO - core.main.app_entry - Environment CONFIG_NAME: local_llm
2024-09-02 10:16:47,637 - INFO - core.main.app_entry - Environment CONFIG_PATH:
2024-09-02 10:16:47,637 - INFO - core.main.app_entry - Environment PIPELINE_TYPE: qna
2024-09-02 10:16:47,645 - INFO - core.main.r2r - Starting R2R with version 3.0.8
2024-09-02 10:16:47,645 - INFO - core.providers.prompts.r2r_prompts - Loading prompts from /app/core/providers/prompts/defaults
2024-09-02 10:16:47,702 - INFO - core.base.providers.prompt - Initializing PromptProvider with config extra_fields={} provider='r2r' default_system_name='default_system' default_task_name='default_rag' file_path=None.
2024-09-02 10:16:47,702 - INFO - core.base.providers.embedding - Initializing EmbeddingProvider with config extra_fields={} provider='ollama' base_model='mxbai-embed-large' base_dimension=1024 rerank_model=None rerank_dimension=None rerank_transformer_type=None batch_size=128 prefixes=None add_title_as_prefix=True concurrent_request_limit=2 max_retries=2 initial_backoff=1.0 max_backoff=60.0.
2024-09-02 10:16:47,703 - INFO - core.providers.embeddings.ollama - Using Ollama API base URL: http://host.docker.internal:11434
2024-09-02 10:16:47,760 - INFO - core.base.providers.llm - Initializing CompletionProvider with config: extra_fields={'concurrent_request_limit': 1} provider='litellm' generation_config=GenerationConfig(model='ollama/llama3.1', temperature=0.1, top_p=1.0, max_tokens_to_sample=1024, stream=False, functions=None, tools=None, add_generation_kwargs={}, api_base=None) concurrency_limit=16 max_retries=2 initial_backoff=1.0 max_backoff=60.0
2024-09-02 10:16:47,794 - INFO - core.base.providers.database - Initializing DatabaseProvider with config extra_fields={} provider='postgres'.
2024-09-02 10:16:47,794 - INFO - core.providers.database.vector - Using TCP connection
2024-09-02 10:16:47,817 - INFO - core.providers.database.vector - Successfully initialized PGVectorDB with collection: local_llm
2024-09-02 10:16:47,826 - INFO - core.providers.auth.r2r_auth - Default admin user already exists.
2024-09-02 10:16:48,345 - INFO - core.providers.chunking.r2r_chunking - Initializing text splitter with method: recursive
2024-09-02 10:16:48,345 - INFO - core.providers.chunking.r2r_chunking - R2RChunkingProvider initialized with config: extra_fields={} provider='r2r' method=<Method.RECURSIVE: 'recursive'> chunk_size=512 chunk_overlap=50 max_chunk_size=None
2024-09-02 10:16:48,854 - INFO - core.main.r2r - Starting R2R with version 3.0.8
INFO: Started server process [7]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:40902 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:49726 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:55948 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:32796 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:42332 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:55974 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:39372 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:33552 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:59096 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:49566 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:55606 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:59332 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:47510 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:42274 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:44926 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:50974 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:36508 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:34664 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:46802 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:53728 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:45644 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:45414 - "GET /v2/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:59776 - "GET /v2/health HTTP/1.1" 200 OK
relay failed to localhost:8000(r2r-py3.11)
I tried a few things:
@NolanTrem Ah-ha, I'm sorry, I am connecting to the remote server through the Local computer and forgot to perform Local Port Forwarding of "R2R Deployment URL"! Now it works, happy!
So to sum up the experience, it should be:
Awesome, glad that you've got it up and running! Going to close this, but let us know if you run into anything else!
@NolanTrem Thanks for jumping on this one and glad I could help. It indeed was the dashboard pull from docker hub that was only built for ARM when I responded.
I'm still having issues v3 getting up and running. However, now that the dashboard build is fixed, I'm running (successfully) on commit 210e11249c2695993be4ddf8433b30f42894d02c.
Any chance y'all can keep a /v1 version of the api documentation live until the v3 bugs are worked out?
Describe the bug This is my first time building an r2r application, but when I go to 'r2r serve --docker' I get this error:
$ r2r serve --docker Starting Docker Compose setup... [+] Running 32/5 ⠋ neo4j 6 layers [⣿⠀⠀⠀⠀⠀] 0B/0B Pulling 51.0s ⠋ r2r 15 layers [⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣿⠀] 163.3MB/3.526GB Pulling 51.0s ✔ postgres 16 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 36.9s ⠋ r2r-dashboard Pulling 51.0s ⠋ traefik 4 layers [⣿⠀⠀⠀] 0B/0B Pulling 51.0s no matching manifest for linux/amd64 in the manifest list entries Navigating to dashboard in 3 seconds... Navigating to dashboard in 2 seconds... Navigating to dashboard in 1 seconds... Opening browser to http://localhost:8001
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Additional context