-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: docker permissions #2059
Merged
Merged
fix: docker permissions #2059
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Any update on this? I think the following error is caused because this is not merged. The way i run the project was to clone it and then run private-gpt-ollama-1 | Traceback (most recent call last):
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 798, in get
private-gpt-ollama-1 | return self._context[key]
private-gpt-ollama-1 | ~~~~~~~~~~~~~^^^^^
private-gpt-ollama-1 | KeyError: <class 'private_gpt.ui.ui.PrivateGptUi'>
private-gpt-ollama-1 |
private-gpt-ollama-1 | During handling of the above exception, another exception occurred:
private-gpt-ollama-1 |
private-gpt-ollama-1 | Traceback (most recent call last):
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 798, in get
private-gpt-ollama-1 | return self._context[key]
private-gpt-ollama-1 | ~~~~~~~~~~~~~^^^^^
private-gpt-ollama-1 | KeyError: <class 'private_gpt.server.ingest.ingest_service.IngestService'>
private-gpt-ollama-1 |
private-gpt-ollama-1 | During handling of the above exception, another exception occurred:
private-gpt-ollama-1 |
private-gpt-ollama-1 | Traceback (most recent call last):
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 798, in get
private-gpt-ollama-1 | return self._context[key]
private-gpt-ollama-1 | ~~~~~~~~~~~~~^^^^^
private-gpt-ollama-1 | KeyError: <class 'private_gpt.components.vector_store.vector_store_component.VectorStoreComponent'>
private-gpt-ollama-1 |
private-gpt-ollama-1 | During handling of the above exception, another exception occurred:
private-gpt-ollama-1 |
private-gpt-ollama-1 | Traceback (most recent call last):
private-gpt-ollama-1 | File "<frozen runpy>", line 198, in _run_module_as_main
private-gpt-ollama-1 | File "<frozen runpy>", line 88, in _run_code
private-gpt-ollama-1 | File "/home/worker/app/private_gpt/__main__.py", line 5, in <module>
private-gpt-ollama-1 | from private_gpt.main import app
private-gpt-ollama-1 | File "/home/worker/app/private_gpt/main.py", line 6, in <module>
private-gpt-ollama-1 | app = create_app(global_injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/private_gpt/launcher.py", line 66, in create_app
private-gpt-ollama-1 | ui = root_injector.get(PrivateGptUi)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 974, in get
private-gpt-ollama-1 | provider_instance = scope_instance.get(interface, binding.provider)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 800, in get
private-gpt-ollama-1 | instance = self._get_instance(key, provider, self.injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 811, in _get_instance
private-gpt-ollama-1 | return provider.get(injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 264, in get
private-gpt-ollama-1 | return injector.create_object(self._cls)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 998, in create_object
private-gpt-ollama-1 | self.call_with_injection(init, self_=instance, kwargs=additional_kwargs)
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 1031, in call_with_injection
private-gpt-ollama-1 | dependencies = self.args_to_inject(
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 1079, in args_to_inject
private-gpt-ollama-1 | instance: Any = self.get(interface)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 974, in get
private-gpt-ollama-1 | provider_instance = scope_instance.get(interface, binding.provider)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 800, in get
private-gpt-ollama-1 | instance = self._get_instance(key, provider, self.injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 811, in _get_instance
private-gpt-ollama-1 | return provider.get(injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 264, in get
private-gpt-ollama-1 | return injector.create_object(self._cls)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 998, in create_object
private-gpt-ollama-1 | self.call_with_injection(init, self_=instance, kwargs=additional_kwargs)
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 1031, in call_with_injection
private-gpt-ollama-1 | dependencies = self.args_to_inject(
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 1079, in args_to_inject
private-gpt-ollama-1 | instance: Any = self.get(interface)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 974, in get
private-gpt-ollama-1 | provider_instance = scope_instance.get(interface, binding.provider)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 91, in wrapper
private-gpt-ollama-1 | return function(*args, **kwargs)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 800, in get
private-gpt-ollama-1 | instance = self._get_instance(key, provider, self.injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 811, in _get_instance
private-gpt-ollama-1 | return provider.get(injector)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 264, in get
private-gpt-ollama-1 | return injector.create_object(self._cls)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 998, in create_object
private-gpt-ollama-1 | self.call_with_injection(init, self_=instance, kwargs=additional_kwargs)
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/injector/__init__.py", line 1040, in call_with_injection
private-gpt-ollama-1 | return callable(*full_args, **dependencies)
private-gpt-ollama-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/private_gpt/components/vector_store/vector_store_component.py", line 114, in __init__
private-gpt-ollama-1 | client = QdrantClient(
private-gpt-ollama-1 | ^^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/qdrant_client.py", line 117, in __init__
private-gpt-ollama-1 | self._client = QdrantLocal(
private-gpt-ollama-1 | ^^^^^^^^^^^^
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/qdrant_local.py", line 66, in __init__
private-gpt-ollama-1 | self._load()
private-gpt-ollama-1 | File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/qdrant_local.py", line 97, in _load
private-gpt-ollama-1 | os.makedirs(self.location, exist_ok=True)
private-gpt-ollama-1 | File "<frozen os>", line 215, in makedirs
private-gpt-ollama-1 | File "<frozen os>", line 225, in makedirs
private-gpt-ollama-1 | PermissionError: [Errno 13] Permission denied: 'local_data/private_gpt' |
9 tasks
pabloogc
approved these changes
Sep 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.