Repository navigation
already accessed by another instance of Qdrant client #2406
Replies: 4 comments
|
yeah that error comes from qdrant in local mode, it keeps a lock file in that storage folder and refuses to open if another python process already has it. my guess is a previous private-gpt run or an ingest script still alive in the background, check task manager for leftover python processes and kill them if nothing is running and it still complains theres propably a stale |
|
This can also happen with two Qdrant client objects inside one Python process, so a second PrivateGPT process isn't required. I checked with The local client's locking code acquires an exclusive file lock; the file's presence alone doesn't mean there's a stale lock. Its close method releases that lock. I would leave If a clean restart of just your PrivateGPT instance still fails specifically when uploading, I'd check whether the upload path creates another local client for that directory. That is a possibility to investigate, not a confirmed diagnosis. Could you share your PrivateGPT version/commit, |
|
If you try the Qdrant server workaround, make sure the embedded For a profile-based installation, create qdrant:
url: http://127.0.0.1:6333
path: null
prefer_grpc: falseThis assumes a Qdrant server is already listening there. Append I checked the unchanged settings and client-builder code with A new server also has its own collections. This configuration does not migrate your embedded index, so keep the old store and plan to re-ingest or migrate its data. |
|
That message comes from Qdrant's embedded/local mode (the default Things to check, in order:
If none of that applies (fresh reboot, one PrivateGPT process, error on the very first upload), please post the full traceback. In local mode |
Uh oh!
There was an error while loading. Please reload this page.
Hey. I tried to upload a file in the 'context' section of the UI. it claims that
RuntimeError: Storage folder C:\Users\morph\AppData\Local\private-gpt\local_data\qdrant is already accessed by another instance of Qdrant client. If you require concurrent access, use Qdrant server instead.
Anyone have any idea why this might be? Im not running more than one of these things.
All reactions