kotaemon icon indicating copy to clipboard operation
kotaemon copied to clipboard

[BUG] build failed

Open Stockard opened this issue 9 months ago • 0 comments

Description

The operation system is windows. When I run run_windows.bat, it starts the server then stops, without any trace to it.

Logs

Collecting lightrag-hku
  Using cached lightrag_hku-1.2.6-py3-none-any.whl.metadata (74 kB)
Using cached lightrag_hku-1.2.6-py3-none-any.whl (987 kB)
Installing collected packages: lightrag-hku
Successfully installed lightrag-hku-1.2.6

(C:\Users\username\Documents\kotaemon-app\install_dir\env) C:\Users\username\Documents\kotaemon-app>C:\Users\username\Documents\kotaemon-app\scripts\run_windows.bat

******************************************************
Setting up Git
******************************************************

Git is installed at C:\Users\username\Documents\kotaemon-app\install_dir\Git
git version 2.46.0.windows.1
Git is added to PATH for this session

******************************************************
Setting up Miniconda
******************************************************

Conda is installed at C:\Users\username\Documents\kotaemon-app\install_dir\conda
Conda version:
conda 24.11.0

******************************************************
Creating conda environment
******************************************************

Conda environment exists at C:\Users\username\Documents\kotaemon-app\install_dir\env
Activate conda environment at C:\Users\username\Documents\kotaemon-app\install_dir\env

******************************************************
Installing Kotaemon
******************************************************

Dependencies are already installed

******************************************************
Setting up a local model
******************************************************

Local model not found: qwen2.5:7b

******************************************************
Downloading and extracting PDF.js
******************************************************

Directory already exists: C:\Users\username\Documents\kotaemon-app\libs\ktem\ktem\assets\prebuilt\pdfjs-4.0.379-dist

******************************************************
Launching Kotaemon in your browser, please wait...
******************************************************

Starting Kotaemon UI... (prebuilt PDF.js is at C:\Users\username\Documents\kotaemon-app\libs\ktem\ktem\assets\prebuilt\pdfjs-4.0.379-dist)
[nltk_data] Downloading package punkt_tab to
[nltk_data]     C:\Users\username\Documents\kotaemon-
[nltk_data]     app\install_dir\env\lib\site-
[nltk_data]     packages\llama_index\core\_static/nltk_cache...
[nltk_data]   Package punkt_tab is already up-to-date!
GraphRAG dependencies not installed. Try `pip install graphrag future` to install. GraphRAG retriever pipeline will not work properly.
INFO:chromadb.telemetry.product.posthog:Anonymized telemetry enabled. See                     https://docs.trychroma.com/telemetry for more information.
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientStartEvent', {'batch_size': 1, 'in_colab': False, '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientCreateCollectionEvent', {'batch_size': 1, 'collection_uuid': '12569d2d-d4fd-49af-b8bc-b429eba787f5', '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientStartEvent', {'batch_size': 1, 'in_colab': False, '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientCreateCollectionEvent', {'batch_size': 1, 'collection_uuid': '4a912beb-b327-4531-92b8-51d09bd5802b', '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientStartEvent', {'batch_size': 1, 'in_colab': False, '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientCreateCollectionEvent', {'batch_size': 1, 'collection_uuid': '35ea41b1-4baf-494c-8ae5-56e3a2856e27', '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientStartEvent', {'batch_size': 1, 'in_colab': False, '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
INFO:kotaemon:posthog.capture called with args: ('05f79b54-327b-4dfc-8ab6-5f716ca82f62', 'ClientCreateCollectionEvent', {'batch_size': 1, 'collection_uuid': '7e4aa992-d82b-48b9-8457-ea000124a79d', '$process_person_profile': False, 'chroma_version': '0.5.16', 'server_context': 'None', 'hosted': False, 'chroma_api_impl': 'chromadb.api.segment.SegmentAPI', 'is_persistent': False, 'chroma_server_ssl_enabled': False, 'chroma_server_api_default_path': <APIVersion.V2: '/api/v2'>}), kwargs: {}
User "admin" already exists
Setting up quick upload event
Running on local URL:  http://127.0.0.1:7860
Traceback (most recent call last):
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_transports\default.py", line 101, in map_httpcore_exceptions
    yield
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_transports\default.py", line 250, in handle_request
    resp = self._pool.handle_request(req)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\connection_pool.py", line 256, in handle_request
    raise exc from None
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\connection_pool.py", line 236, in handle_request
    response = connection.handle_request(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\http_proxy.py", line 206, in handle_request
    return self._connection.handle_request(proxy_request)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\connection.py", line 103, in handle_request
    return self._connection.handle_request(request)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\http11.py", line 136, in handle_request
    raise exc
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\http11.py", line 106, in handle_request
    ) = self._receive_response_headers(**kwargs)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\http11.py", line 177, in _receive_response_headers
    event = self._receive_event(timeout=timeout)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpcore\_sync\http11.py", line 231, in _receive_event
    raise RemoteProtocolError(msg)
httpcore.RemoteProtocolError: Server disconnected without sending a response.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\username\Documents\kotaemon-app\app.py", line 18, in <module>
    demo.queue().launch(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\gradio\blocks.py", line 2390, in launch
    httpx.get(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_api.py", line 195, in get
    return request(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_api.py", line 109, in request
    return client.request(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_client.py", line 825, in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_client.py", line 914, in send
    response = self._send_handling_auth(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_client.py", line 942, in _send_handling_auth
    response = self._send_handling_redirects(
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_client.py", line 979, in _send_handling_redirects
    response = self._send_single_request(request)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_client.py", line 1014, in _send_single_request
    response = transport.handle_request(request)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_transports\default.py", line 249, in handle_request
    with map_httpcore_exceptions():
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Users\username\Documents\kotaemon-app\install_dir\env\lib\site-packages\httpx\_transports\default.py", line 118, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.RemoteProtocolError: Server disconnected without sending a response.

Browsers

No response

OS

No response

Additional information

No response

Stockard avatar Mar 21 '25 07:03 Stockard