private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

[BUG] Stopped Running While Deleting Documents

Open spsach opened this issue 7 months ago • 0 comments

Pre-check

  • [x] I have searched the existing issues and none cover this bug.

Description

I have PrivateGpt running in Ubuntu 22.04.4 , Python 3.11.9 with ollama and mistral model. While deleting a few documents, it began to give errors. Now when I reboot and retstart the application I ma getting the following errors: 16:40:38.224 [INFO ] private_gpt.components.llm.llm_component - Initializing the LLM in mode=ollama 16:40:40.324 [INFO ] private_gpt.components.embedding.embedding_component - Initializing the embedding model in mode=ollama Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/ubuntu/privateGPT/private_gpt/main.py", line 5, in from private_gpt.main import app File "/home/ubuntu/privateGPT/private_gpt/main.py", line 6, in app = create_app(global_injector) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/privateGPT/private_gpt/launcher.py", line 63, in create_app ui = root_injector.get(PrivateGptUi) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 974, in get provider_instance = scope_instance.get(interface, binding.provider) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 800, in get instance = self._get_instance(key, provider, self.injector) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 811, in _get_instance return provider.get(injector) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 264, in get return injector.create_object(self.cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 998, in create_object self.call_with_injection(init, self=instance, kwargs=additional_kwargs) File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 1031, in call_with_injection dependencies = self.args_to_inject( ^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 1079, in args_to_inject instance: Any = self.get(interface) ^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 974, in get provider_instance = scope_instance.get(interface, binding.provider) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 800, in get instance = self._get_instance(key, provider, self.injector) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 811, in _get_instance return provider.get(injector) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 264, in get return injector.create_object(self.cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 998, in create_object self.call_with_injection(init, self=instance, kwargs=additional_kwargs) File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 1031, in call_with_injection dependencies = self.args_to_inject( ^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 1079, in args_to_inject instance: Any = self.get(interface) ^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 974, in get provider_instance = scope_instance.get(interface, binding.provider) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 91, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 800, in get instance = self._get_instance(key, provider, self.injector) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 811, in _get_instance return provider.get(injector) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 264, in get return injector.create_object(self.cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 998, in create_object self.call_with_injection(init, self=instance, kwargs=additional_kwargs) File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/injector/init.py", line 1040, in call_with_injection return callable(*full_args, **dependencies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/privateGPT/private_gpt/components/node_store/node_store_component.py", line 32, in init self.doc_store = SimpleDocumentStore.from_persist_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/llama_index/core/storage/docstore/simple_docstore.py", line 57, in from_persist_dir return cls.from_persist_path(persist_path, namespace=namespace, fs=fs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/llama_index/core/storage/docstore/simple_docstore.py", line 74, in from_persist_path simple_kvstore = SimpleKVStore.from_persist_path(persist_path, fs=fs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/pvtenv/lib/python3.11/site-packages/llama_index/core/storage/kvstore/simple_kvstore.py", line 98, in from_persist_path data = json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.11/json/init.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) make: *** [Makefile:36: run] Error 1

Steps to Reproduce

make run

Expected Behavior

application starts running and I can use the UI

Actual Behavior

application gives above error and aborts

Environment

Ubuntu 22.04.4 Python 3.11.9 ollama with nomic-embed-text

Additional Information

No response

Version

No response

Setup Checklist

  • [x] Confirm that you have followed the installation instructions in the project’s documentation.
  • [ ] Check that you are using the latest version of the project.
  • [x] Verify disk space availability for model storage and data processing.
  • [x] Ensure that you have the necessary permissions to run the project.

NVIDIA GPU Setup Checklist

  • [ ] Check that the all CUDA dependencies are installed and are compatible with your GPU (refer to CUDA's documentation)
  • [ ] Ensure an NVIDIA GPU is installed and recognized by the system (run nvidia-smi to verify).
  • [ ] Ensure proper permissions are set for accessing GPU resources.
  • [ ] Docker users - Verify that the NVIDIA Container Toolkit is configured correctly (e.g. run sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi)

spsach avatar May 14 '25 17:05 spsach