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

Cannot start server #1

Open
punkpeye opened this issue Dec 25, 2024 · 1 comment
Open

Cannot start server #1

punkpeye opened this issue Dec 25, 2024 · 1 comment

Comments

@punkpeye
Copy link

I'm trying to start this server so I can mark the associated listing as tested.

Current Behavior

This is my Dockerfile:

FROM python:3.10

RUN pip install uv

WORKDIR /app

RUN git clone https://github.com/Sivan22/mcp-otzaria-server .

RUN uv sync

CMD ["uv", "run", "jewish_library"]

When I run it, I get the following error:

2024-12-25 14:47:10,285 - jewish_library.tantivy_search_agent - ERROR - Failed to open Tantivy index: Failed to open the directory: 'DoesNotExist("/app/index")'
2024-12-25 14:47:10,285 - jewish_library - ERROR - Failed to initialize search agent: Failed to open the directory: 'DoesNotExist("/app/index")'
Traceback (most recent call last):
  File "/app/.venv/bin/jewish_library", line 5, in <module>
    from jewish_library import main
  File "/app/src/jewish_library/__init__.py", line 1, in <module>
    from . import server
  File "/app/src/jewish_library/server.py", line 27, in <module>
    search_agent = TantivySearchAgent(index_path)
  File "/app/src/jewish_library/tantivy_search_agent.py", line 18, in __init__
    self.index = Index.open(index_path)
ValueError: Failed to open the directory: 'DoesNotExist("/app/index")'

Expected Behavior

The server should start correctly when using uv run.

Suggested Improvement

Could you provide a complete example in the README showing how to start the server using uv run?

This would improve usability for developers and help automated systems like Glama to test the server

@Sivan22
Copy link
Owner

Sivan22 commented Dec 26, 2024

You neeb first to get the index as described in the readme.md
download and extract the index from here
I may add in the future some code for automatic download through gdown etc.
Feel free to create a pull request for that.

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