We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Docker is installed and running.
After creating .env file as follows:
.env
LLM_NAME=llama.cpp VITE_API_STREAMING=true EMBEDDINGS_NAME=huggingface_sentence-transformers/all-mpnet-base-v2
... and running docker-compose build && docker-compose up
docker-compose build && docker-compose up
Frontend loads as normal. After trying to upload and train a new document, error in log saying backend cannot connect to pymongo server
Create .env file as follows and download local LLM:
... and run docker-compose build && docker-compose up
Frontend loads as normal. Then try to upload and train a new document.
Document should successfully be trained and then interactable from frontend
After clicking 'finish' the document does not appear in the Source Docs Dropdown
MacOS
Chrome
Docker
No response
backend-1 | [2024-03-17 11:44:04 +0000] [7] [ERROR] Error handling request /api/combine backend-1 | Traceback (most recent call last): backend-1 | File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 135, in handle backend-1 | self.handle_request(listener, req, client, addr) backend-1 | File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 178, in handle_request backend-1 | respiter = self.wsgi(environ, resp.start_response) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1488, in __call__ backend-1 | return self.wsgi_app(environ, start_response) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1466, in wsgi_app backend-1 | response = self.handle_exception(e) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app backend-1 | response = self.full_dispatch_request() backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request backend-1 | rv = self.handle_user_exception(e) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request backend-1 | rv = self.dispatch_request() backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request backend-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/app/application/api/user/routes.py", line 218, in combined_json backend-1 | for index in vectors_collection.find({"user": user}): backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/cursor.py", line 1264, in next backend-1 | if len(self.__data) or self._refresh(): backend-1 | ^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/cursor.py", line 1155, in _refresh backend-1 | self.__session = self.__collection.database.client._ensure_session() backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/mongo_client.py", line 1823, in _ensure_session backend-1 | return self.__start_session(True, causal_consistency=False) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/mongo_client.py", line 1766, in __start_session backend-1 | self._topology._check_implicit_session_support() backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/topology.py", line 573, in _check_implicit_session_support backend-1 | self._check_session_support() backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/topology.py", line 589, in _check_session_support backend-1 | self._select_servers_loop( backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/topology.py", line 259, in _select_servers_loop backend-1 | raise ServerSelectionTimeoutError( backend-1 | pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 65f6d74723e4b0fc789af9ce, topology_type: Unknown, servers: [<ServerDescription ('mongo', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('mongo:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
No
The text was updated successfully, but these errors were encountered:
No branches or pull requests
📜 Description
Docker is installed and running.
After creating
.env
file as follows:LLM_NAME=llama.cpp VITE_API_STREAMING=true EMBEDDINGS_NAME=huggingface_sentence-transformers/all-mpnet-base-v2
... and running
docker-compose build && docker-compose up
Frontend loads as normal. After trying to upload and train a new document, error in log saying backend cannot connect to pymongo server
👟 Reproduction steps
Docker is installed and running.
Create
.env
file as follows and download local LLM:LLM_NAME=llama.cpp VITE_API_STREAMING=true EMBEDDINGS_NAME=huggingface_sentence-transformers/all-mpnet-base-v2
... and run
docker-compose build && docker-compose up
Frontend loads as normal. Then try to upload and train a new document.
👍 Expected behavior
Document should successfully be trained and then interactable from frontend
👎 Actual Behavior with Screenshots
After clicking 'finish' the document does not appear in the Source Docs Dropdown
💻 Operating system
MacOS
What browsers are you seeing the problem on?
Chrome
🤖 What development environment are you experiencing this bug on?
Docker
🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)
No response
📃 Provide any additional context for the Bug.
No response
📖 Relevant log output
backend-1 | [2024-03-17 11:44:04 +0000] [7] [ERROR] Error handling request /api/combine backend-1 | Traceback (most recent call last): backend-1 | File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 135, in handle backend-1 | self.handle_request(listener, req, client, addr) backend-1 | File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 178, in handle_request backend-1 | respiter = self.wsgi(environ, resp.start_response) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1488, in __call__ backend-1 | return self.wsgi_app(environ, start_response) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1466, in wsgi_app backend-1 | response = self.handle_exception(e) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app backend-1 | response = self.full_dispatch_request() backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request backend-1 | rv = self.handle_user_exception(e) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request backend-1 | rv = self.dispatch_request() backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request backend-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/app/application/api/user/routes.py", line 218, in combined_json backend-1 | for index in vectors_collection.find({"user": user}): backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/cursor.py", line 1264, in next backend-1 | if len(self.__data) or self._refresh(): backend-1 | ^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/cursor.py", line 1155, in _refresh backend-1 | self.__session = self.__collection.database.client._ensure_session() backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/mongo_client.py", line 1823, in _ensure_session backend-1 | return self.__start_session(True, causal_consistency=False) backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/mongo_client.py", line 1766, in __start_session backend-1 | self._topology._check_implicit_session_support() backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/topology.py", line 573, in _check_implicit_session_support backend-1 | self._check_session_support() backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/topology.py", line 589, in _check_session_support backend-1 | self._select_servers_loop( backend-1 | File "/usr/local/lib/python3.11/site-packages/pymongo/topology.py", line 259, in _select_servers_loop backend-1 | raise ServerSelectionTimeoutError( backend-1 | pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 65f6d74723e4b0fc789af9ce, topology_type: Unknown, servers: [<ServerDescription ('mongo', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('mongo:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
👀 Have you spent some time to check if this bug has been raised before?
🔗 Are you willing to submit PR?
No
🧑⚖️ Code of Conduct
The text was updated successfully, but these errors were encountered: