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

[install-help]: after upgrade to v3.0.5, get some error #80

Open
aef5748 opened this issue Sep 24, 2024 · 0 comments
Open

[install-help]: after upgrade to v3.0.5, get some error #80

aef5748 opened this issue Sep 24, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@aef5748
Copy link

aef5748 commented Sep 24, 2024

Hi,

It is normal to use 3.0.1, but after upgrading to 3.0.5, the following message will pop up. What is the reason?

load INSTRUCTOR_Transformer
max_seq_length  512
Embedding sources:
files__default: 9 (/admin/files/Documents/Welcome to Nextcloud Hub.docx)
TRACE:    172.18.0.1:42792 - ASGI [2] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
INFO:     172.18.0.1:42792 - "PUT /loadSources HTTP/1.1" 200 OK
TRACE:    172.18.0.1:42792 - ASGI [2] Send {'type': 'http.response.body', 'body': '<32 bytes>'}
TRACE:    172.18.0.1:42792 - ASGI [2] Completed
TRACE:    172.18.0.1:42792 - ASGI [3] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.4'}, 'http_version': '1.1', 'server': ('172.18.0.4', 10034), 'client': ('172.18.0.1', 42792), 'scheme': 'http', 'method': 'POST', 'root_path': '', 'path': '/query', 'raw_path': b'/query', 'query_string': b'', 'headers': '<...>', 'state': {}}
TRACE:    172.18.0.1:42792 - ASGI [3] Receive {'type': 'http.request', 'body': '<230 bytes>', 'more_body': False}
query: userId='admin' query='這份資料的重點大綱為何, 請簡略已繁體中文回覆' useContext=True scopeType=<ScopeType.SOURCE: 'source'> scopeList=['files__default: 9'] ctxLimit=20
total tokens: 4477 remaining tokens: 3715 accepted chunks: 4
TRACE:    172.18.0.1:42792 - ASGI [3] Send {'type': 'http.response.start', 'status': 500, 'headers': '<...>'}
"Answer based only on this context and do not add any imaginative details. Make sure to use the same language as the question in your answer.\n/admin/files/Documents/Welcome to Nextcloud Hub.docx\n\nWhether using a mobile device, a workstation, or a web client, Nextcloud provides the ability to put the right files in the right hands at the right time on any device in one simple-to-use, secure and private solution.\n\nFor Nextcloud in mission-critical environments or at larger scale in a professional organization, we are ready to provide you with what you need for success.\n\nLearn more.\n\nAll example pictures, videos & documents are licensed under Creative Commons Attribution.\n\n/admin/files/Documents/Welcome to Nextcloud Hub.docx\n\nNextcloud Hub\n\nWelcome to Nextcloud Hub, your self-hosted collaboration platform.\n\nNextcloud Hub is the open source file share and collaboration software for everyone from individuals to large enterprises and service providers.\n\nNextcloud provides a safe, secure and compliant online work environment on servers you control.\n\nWith Nextcloud Hub you can:\n\nSync and share and access all your files and documents from all your devices\n\nCommunicate with other via chat, audio or video calls\n\nAccess, manage and share your calendars and contacts\n\nPlan, schedule and manage tasks\n\nView and share your photos and media files\n\nAccess your emails\n\nEdit your documents with others, in real time\n\nYou can do all of this in the web interface, via your desktop, laptop or your Android and iOS devices.\n\n\u9019\u4efd\u8cc7\u6599\u7684\u91cd\u9ede\u5927\u7db1\u70ba\u4f55, \u8acb\u7c21\u7565\u5df2\u7e41\u9ad4\u4e2d\u6587\u56de\u8986\n"
INFO:     172.18.0.1:42792 - "POST /query HTTP/1.1" 500 Internal Server Error
TRACE:    172.18.0.1:42792 - ASGI [3] Send {'type': 'http.response.body', 'body': '<5207 bytes>'}
TRACE:    172.18.0.1:42792 - ASGI [3] Raised exception
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/uvicorn/protocols/http/h11_impl.py", line 396, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/uvicorn/middleware/message_logger.py", line 84, in __call__
    raise exc from None
  File "/usr/local/lib/python3.11/dist-packages/uvicorn/middleware/message_logger.py", line 80, in __call__
    await self.app(scope, inner_receive, inner_send)
  File "/usr/local/lib/python3.11/dist-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/app/context_chat_backend/ocs_utils.py", line 75, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.11/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.11/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 72, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/fastapi/routing.py", line 193, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/starlette/concurrency.py", line 42, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/anyio/_backends/_asyncio.py", line 859, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/context_chat_backend/utils.py", line 74, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/context_chat_backend/controller.py", line 347, in _
    return execute_query(query)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/context_chat_backend/controller.py", line 319, in execute_query
    return process_context_query(
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/context_chat_backend/chain/one_shot.py", line 71, in process_context_query
    output = llm.invoke(
             ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/langchain_core/language_models/llms.py", line 276, in invoke
    self.generate_prompt(
  File "/usr/local/lib/python3.11/dist-packages/langchain_core/language_models/llms.py", line 633, in generate_prompt
    return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/langchain_core/language_models/llms.py", line 803, in generate
    output = self._generate_helper(
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/langchain_core/language_models/llms.py", line 670, in _generate_helper
    raise e
  File "/usr/local/lib/python3.11/dist-packages/langchain_core/language_models/llms.py", line 657, in _generate_helper
    self._generate(
  File "/usr/local/lib/python3.11/dist-packages/langchain_core/language_models/llms.py", line 1317, in _generate
    self._call(prompt, stop=stop, run_manager=run_manager, **kwargs)
  File "/app/context_chat_backend/models/nc_texttotext.py", line 59, in _call
    response = nc.ocs(
               ^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/nc_py_api/nextcloud.py", line 140, in ocs
    return self._session.ocs(method, path, content=content, json=json, params=params, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/nc_py_api/_session.py", line 231, in ocs
    raise NextcloudException(status_code=ocs_meta["statuscode"], reason=ocs_meta["message"], info=info)
nc_py_api._exceptions.NextcloudException: [412] <request: POST /ocs/v1.php/taskprocessing/schedule>
TRACE:    172.18.0.1:42792 - HTTP connection lost
@aef5748 aef5748 added the help wanted Extra attention is needed label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant