llmware icon indicating copy to clipboard operation
llmware copied to clipboard

Timeout error problem

Open vijayproxima opened this issue 1 year ago • 3 comments

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.

vijayproxima avatar May 30 '24 05:05 vijayproxima

@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.

doberst avatar May 30 '24 10:05 doberst

HI Darren, Thanks for your quick turnaround. Problem is resolved and you can close the ticket. Warm Regards

Vijay Jadhav Proxima Systems Pvt. Ltd Pune - 411045

On Thu, May 30, 2024 at 3:44 PM Darren Oberst @.***> wrote:

@vijayproxima https://github.com/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 https://github.com/llmware-ai/llmware/blob/main/fast_start/example-1-create_first_library.py, 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.

— Reply to this email directly, view it on GitHub https://github.com/llmware-ai/llmware/issues/813#issuecomment-2139229269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZEMGNYSSQDZ5GDME6EUP3TZE33YTAVCNFSM6AAAAABIQG7L4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGIZDSMRWHE . You are receiving this because you were mentioned.Message ID: @.***>

vijayproxima avatar May 30 '24 12:05 vijayproxima

If you don’t need to use MongoDB, you can switch to using SQLite, which doesn’t require a separate server. Add the following lines to your code before creating the library:

Python from llmware.configs import LLMWareConfig LLMWareConfig().set_active_db("sqlite")

AMANCHAUBEY2277 avatar Oct 03 '24 17:10 AMANCHAUBEY2277