SciPhi-AI / R2R

The Elasticsearch for RAG. Build, scale, and deploy state of the art Retrieval-Augmented Generation applications
https://r2r-docs.sciphi.ai/
MIT License
3.25k stars 238 forks source link

clean restart all #995

Closed MyraBaba closed 1 week ago

MyraBaba commented 2 weeks ago

How to clean all docker images and related files to restart clean install ? After update I cant login and cant ingest

ie:

r2r ingest-files test.txt

File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/httpx/_client.py", line 1674, in send response = await self._send_handling_auth( File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_handling_auth response = await self._send_handling_redirects( File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects response = await self._send_single_request(request) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/httpx/_client.py", line 1776, in _send_single_request response = await transport.handle_async_request(request) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/httpx/_transports/default.py", line 376, in handle_async_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/bc/Projects/ODS/R2R/venv2R2R/bin/r2r", line 8, in sys.exit(main()) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/cli/cli.py", line 47, in main cli() File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(args, *kwargs) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/click/decorators.py", line 45, in new_func return f(get_current_context().obj, args, **kwargs) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/cli/commands/ingestion.py", line 32, in ingest_files response = client.ingest_files(file_paths, metadatas, document_ids) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/sdk/client.py", line 224, in sync_wrapper result = asyncio.get_event_loop().run_until_complete( File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() File "/usr/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib/python3.10/asyncio/tasks.py", line 232, in __step result = coro.send(None) File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/sdk/ingestion.py", line 87, in ingest_files return await client._make_request( File "/home/bc/Projects/ODS/R2R/venv2R2R/lib/python3.10/site-packages/sdk/client.py", line 147, in _make_request raise R2RException( sdk.models.R2RException: Request failed: All connection attempts failed

emrgnt-cmplxty commented 2 weeks ago

Can you try deleting your related volumes and running docker system prune? Alternatively, if you have data in Docker that you do not want to put at risk, then you can try changing the value of POSTGRES_VECS_COLLECTION

MyraBaba commented 2 weeks ago

I did but still cant login as normal start neither graph neo4j start.

I suspect messed the install so need a verified scricpt that clean or update all to the current version of the scripts and docker.

is docker image updates sysnc with code?

emrgnt-cmplxty commented 2 weeks ago

It could be that you have a cached docker image, something we see happening to our users on occasion.

What version does the server output when you start it? The latest release should be 3.0.6. You may need to explicitly delete your R2R image and then re-fetch it to be certain that it updates.