Skip to content
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

Timeout error problem #813

Open
vijayproxima opened this issue May 30, 2024 · 2 comments
Open

Timeout error problem #813

vijayproxima opened this issue May 30, 2024 · 2 comments

Comments

@vijayproxima
Copy link

HI I am trying to use llmware for the first time and am getting timeout error while creating a new library: lib = Library().create_new_library(library_name="docs")
Exception has occurred: ServerSelectionTimeoutError
localhost:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 66580fdef4b4b76ff04c7e4d, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [Errno 111] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
Please help. I have done pip install llmware successfully. I am running this code on Linux Ubuntu 22.04 with 32GB RAM.

@doberst
Copy link
Contributor

doberst commented May 30, 2024

@vijayproxima - thanks for raising this issue. It appears that LLMWare is looking for an active Mongo connection on 27017 port, and is not finding it. For a 'no-install' option, you can set the active db to "sqlite", e.g.,

from llmware.configs import LLMWareConfig

LLMWareConfig().set_active_db("sqlite")

Please also see Fast Start - Example 1, as well as the instructions in the README under "Data Store Options'

Hope this resolves the issue. Please confirm back - and will close out the issue.

@vijayproxima
Copy link
Author

vijayproxima commented May 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants