danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://danswer.ai
Other
10.58k stars 1.32k forks source link

The web site isn't fully loaded and few pages return 400 #1363

Open rodion-m opened 6 months ago

rodion-m commented 6 months ago

I installed it from v0.3.66 tag using command docker pull method.

When I open http://localhost:3000/ I get not fully loaded page: image

When I click Chat and other links I get 400 error.

Here is api server log:

2024-04-22 22:28:52 Traceback (most recent call last):
2024-04-22 22:28:52   File "/usr/local/bin/alembic", line 8, in <module>
2024-04-22 22:28:52     sys.exit(main())
2024-04-22 22:28:52              ^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/config.py", line 591, in main
2024-04-22 22:28:52     CommandLine(prog=prog).main(argv=argv)
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/config.py", line 585, in main
2024-04-22 22:28:52     self.run_cmd(cfg, options)
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/config.py", line 562, in run_cmd
2024-04-22 22:28:52     fn(
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/command.py", line 378, in upgrade
2024-04-22 22:28:52     script.run_env()
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/script/base.py", line 576, in run_env
2024-04-22 22:28:52     util.load_python_file(self.dir, "env.py")
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 94, in load_python_file
2024-04-22 22:28:52     module = load_module_py(module_id, path)
2024-04-22 22:28:52              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 110, in load_module_py
2024-04-22 22:28:52     spec.loader.exec_module(module)  # type: ignore
2024-04-22 22:28:52     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
2024-04-22 22:28:52   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-04-22 22:28:52   File "/app/alembic/env.py", line 90, in <module>
2024-04-22 22:28:52     run_migrations_online()
2024-04-22 22:28:52   File "/app/alembic/env.py", line 84, in run_migrations_online
2024-04-22 22:28:52     asyncio.run(run_async_migrations())
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2024-04-22 22:28:52     return runner.run(main)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2024-04-22 22:28:52     return self._loop.run_until_complete(task)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
2024-04-22 22:28:52     return future.result()
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/app/alembic/env.py", line 75, in run_async_migrations
2024-04-22 22:28:52     async with connectable.connect() as connection:
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/base.py", line 127, in __aenter__
2024-04-22 22:28:52     return await self.start(is_ctxmanager=True)  # type: ignore
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/engine.py", line 236, in start
2024-04-22 22:28:52     await (greenlet_spawn(self.sync_engine.connect))
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 192, in greenlet_spawn
2024-04-22 22:28:52     result = context.throw(*sys.exc_info())
2024-04-22 22:28:52              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3269, in connect
2024-04-22 22:28:52     return self._connection_cls(self)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-04-22 22:28:52     self._dbapi_connection = engine.raw_connection()
2024-04-22 22:28:52                              ^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3293, in raw_connection
2024-04-22 22:28:52     return self.pool.connect()
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 452, in connect
2024-04-22 22:28:52     return _ConnectionFairy._checkout(self)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 1268, in _checkout
2024-04-22 22:28:52     fairy = _ConnectionRecord.checkout(pool)
2024-04-22 22:28:52             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
2024-04-22 22:28:52     rec = pool._do_get()
2024-04-22 22:28:52           ^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 283, in _do_get
2024-04-22 22:28:52     return self._create_connection()
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
2024-04-22 22:28:52     return _ConnectionRecord(self)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 678, in __init__
2024-04-22 22:28:52     self.__connect()
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 902, in __connect
2024-04-22 22:28:52     with util.safe_reraise():
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
2024-04-22 22:28:52     raise exc_value.with_traceback(exc_tb)
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 898, in __connect
2024-04-22 22:28:52     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-04-22 22:28:52                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 637, in connect
2024-04-22 22:28:52     return dialect.connect(*cargs, **cparams)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 616, in connect
2024-04-22 22:28:52     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 895, in connect
2024-04-22 22:28:52     await_only(self.asyncpg.connect(*arg, **kw)),
2024-04-22 22:28:52     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 126, in await_only
2024-04-22 22:28:52     return current.driver.switch(awaitable)  # type: ignore[no-any-return]
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 187, in greenlet_spawn
2024-04-22 22:28:52     value = await result
2024-04-22 22:28:52             ^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 2092, in connect
2024-04-22 22:28:52     return await connect_utils._connect(
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 895, in _connect
2024-04-22 22:28:52     raise last_error
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 881, in _connect
2024-04-22 22:28:52     return await _connect_addr(
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 773, in _connect_addr
2024-04-22 22:28:52     return await __connect_addr(params, timeout, True, *args)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 825, in __connect_addr
2024-04-22 22:28:52     tr, pr = await compat.wait_for(connector, timeout=timeout)
2024-04-22 22:28:52              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/compat.py", line 56, in wait_for
2024-04-22 22:28:52     return await asyncio.wait_for(fut, timeout)
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
2024-04-22 22:28:52     return fut.result()
2024-04-22 22:28:52            ^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 684, in _create_ssl_connection
2024-04-22 22:28:52     tr, pr = await loop.create_connection(
2024-04-22 22:28:52              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1085, in create_connection
2024-04-22 22:28:52     raise exceptions[0]
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
2024-04-22 22:28:52     sock = await self._connect_sock(
2024-04-22 22:28:52            ^^^^^^^^^^^^^^^^^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
2024-04-22 22:28:52     await self.sock_connect(sock, address)
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
2024-04-22 22:28:52     return await fut
2024-04-22 22:28:52            ^^^^^^^^^
2024-04-22 22:28:52   File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 674, in _sock_connect_cb
2024-04-22 22:28:52     raise OSError(err, f'Connect call failed {address}')
2024-04-22 22:28:52 ConnectionRefusedError: [Errno 111] Connect call failed ('172.19.0.3', 5432)
2024-04-22 22:28:54 INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
2024-04-22 22:28:54 INFO  [alembic.runtime.migration] Will assume transactional DDL.
2024-04-22 22:28:55 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade  -> 47433d30de82, Create IndexAttempt table
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 47433d30de82 -> 6d387b3196c2, Basic Auth
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 6d387b3196c2 -> 2666d766cb9b, Google OAuth2
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 2666d766cb9b -> 27c6ecc08586, Permission Framework
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 27c6ecc08586 -> 3c5e35aa9af0, Polling Document Count
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 3c5e35aa9af0 -> 465f78d9b7f9, Larger Access Tokens for OAUTH
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 465f78d9b7f9 -> d7111c1238cd, Remove Document IDs
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade d7111c1238cd -> df0c7ad8a076, Added deletion_attempt table
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade df0c7ad8a076 -> b082fec533f0, Make 'last_attempt_status' nullable
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade b082fec533f0 -> e6a4bbc13fe4, Add index for retrieving latest index_attempt
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade e6a4bbc13fe4 -> 5e84129c8be3, Add docs_indexed_column + time_started to index_attempt table
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 5e84129c8be3 -> 8aabb57f3b49, Restructure Document Indices
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 8aabb57f3b49 -> d929f0c1c6af, Feedback Feature
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade d929f0c1c6af -> 5809c0787398, Add Chat Sessions
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 5809c0787398 -> 8e26726b7683, Chat Context Addition
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 8e26726b7683 -> d5645c915d0e, Remove deletion_attempt table
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade d5645c915d0e -> dba7f71618f5, Danswer Custom Tool Flow
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade dba7f71618f5 -> 767f1c2a00eb, Count Chat Tokens
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 767f1c2a00eb -> 800f48024ae9, Add ID to ConnectorCredentialPair
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 800f48024ae9 -> 57b53544726e, Add document set tables
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 57b53544726e -> febe9eaa0644, Add document_set / persona relationship table
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade febe9eaa0644 -> 7da543f5672f, Add SlackBotConfig table
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade 7da543f5672f -> ae62505e3acc, Add SAML Accounts
2024-04-22 22:28:55 INFO  [alembic.runtime.migration] Running upgrade ae62505e3acc -> e0a68a81d434, Add Chat Feedback
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade e0a68a81d434 -> 3b25685ff73c, Move is_public to cc_pair
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 3b25685ff73c -> 904451035c9b, Store Tool Details
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 904451035c9b -> a570b80a5f20, UserGroup tables
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade a570b80a5f20 -> 7ccea01261f6, Store Chat Retrieval Docs
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 7ccea01261f6 -> 78dbe7e38469, Task Tracking
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 78dbe7e38469 -> 7f99be1cb9f5, Add index for getting documents just by connector id / credential id
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 7f99be1cb9f5 -> 30c1d5744104, Persona Datetime Aware
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 30c1d5744104 -> ffc707a226b4, Basic Document Metadata
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade ffc707a226b4 -> 9d97fecfab7f, Added retrieved docs to query event
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 9d97fecfab7f -> 46625e4745d4, Remove Native Enum
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 46625e4745d4 -> d61e513bef0a, Add Total Docs for Index Attempt
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade d61e513bef0a -> 77d07dffae64, forcibly remove more enum types from postgres
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 77d07dffae64 -> 15326fcec57e, Introduce Danswer APIs
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 15326fcec57e -> 80696cf850ae, Add chat session to query_event
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 80696cf850ae -> e86866a9c78a, Add persona to chat_session
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade e86866a9c78a -> 7da0ae5ad583, Add description to persona
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 7da0ae5ad583 -> 50b683a8295c, Add additional retrieval controls to Persona
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 50b683a8295c -> baf71f781b9e, Add llm_model_version_override to Persona
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade baf71f781b9e -> b156fa702355, Chat Reworked
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade b156fa702355 -> 76b60d407dfb, CC-Pair Name not Unique
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 76b60d407dfb -> 891cd83c87a8, Add is_visible to Persona
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 891cd83c87a8 -> 904e5138fffb, Tags
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 904e5138fffb -> 79acd316403a, Add api_key table
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 79acd316403a -> 7f726bad5367, Slack Followup
2024-04-22 22:28:56 INFO  [alembic.runtime.migration] Running upgrade 7f726bad5367 -> dbaa756c2ccf, Embedding Models
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade dbaa756c2ccf -> ec3ec2eabf7b, Index From Beginning
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade ec3ec2eabf7b -> 8987770549c0, Add full exception stack trace
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 8987770549c0 -> 5f4b8568a221, add removed documents to index_attempt
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 5f4b8568a221 -> 0a2b51deb0b8, Add starter prompts
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 0a2b51deb0b8 -> fcd135795f21, Add slack bot display type
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade fcd135795f21 -> e50154680a5c, No Source Enum
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade e50154680a5c -> 173cae5bba26, Port Config Store
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 173cae5bba26 -> 91fd3b470d1a, Remove DocumentSource from Tag
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 91fd3b470d1a -> e91df4e935ef, Private Personas DocumentSets
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade e91df4e935ef -> 4738e4b3bae1, PG File Store
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 4738e4b3bae1 -> 776b3bbe9092, Remove Remaining Enums
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 776b3bbe9092 -> 38eda64af7fe, Add chat session sharing
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 38eda64af7fe -> ecab2b3f1a3b, Add overrides to the chat session
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade ecab2b3f1a3b -> 475fcefe8826, Add name to api_key
2024-04-22 22:29:00 INFO  [alembic.runtime.migration] Running upgrade 475fcefe8826 -> 72bdc9929a46, Permission Auto Sync Framework
2024-04-22 22:29:02 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2024-04-22 22:29:04 INFO:     Started server process [20]
2024-04-22 22:29:04 INFO:     Waiting for application startup.
2024-04-22 22:29:04 04/22/2024 03:29:04 PM variable_functionality.py  27 : Fetching versioned implementation for danswer.auth.users.verify_auth_setting
2024-04-22 22:29:04 04/22/2024 03:29:04 PM             users.py  69 : Using Auth Type: disabled
2024-04-22 22:29:04 04/22/2024 03:29:04 PM         ingestion.py  46 : Generating Danswer API Key
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 152 : Danswer API Key: dn_pQqMuB3hYfRH-7VLkQUOjpdrlgBk373RqQ3JFP8-
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 160 : Using LLM Provider: openai
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 162 : Using LLM Model Version: gpt-3.5-turbo-16k-0613
2024-04-22 22:29:04 04/22/2024 03:29:04 PM          chat_llm.py  49 : LLM Model Class: ChatLiteLLM, Model Config: {'model': 'openai/gpt-3.5-turbo-16k-0613', 'request_timeout': 60.0, 'model_kwargs': {'frequency_penalty': 0, 'presence_penalty': 0}, 'n': 1, 'max_tokens': 1024}
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 200 : Using Embedding model: "intfloat/e5-base-v2"
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 202 : Query embedding prefix: ""
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 203 : Passage embedding prefix: "passage: "
2024-04-22 22:29:04 04/22/2024 03:29:04 PM              main.py 210 : Verifying query preprocessing (NLTK) data is downloaded
2024-04-22 22:29:04 04/22/2024 03:29:04 PM     search_runner.py  45 : stopwords is already downloaded.
2024-04-22 22:29:04 04/22/2024 03:29:04 PM     search_runner.py  48 : Downloading wordnet...
2024-04-22 22:29:05 04/22/2024 03:29:05 PM     search_runner.py  50 : wordnet downloaded successfully.
2024-04-22 22:29:05 04/22/2024 03:29:05 PM     search_runner.py  45 : punkt is already downloaded.
2024-04-22 22:29:05 04/22/2024 03:29:05 PM              main.py 213 : Verifying default connector/credential exist.
2024-04-22 22:29:05 04/22/2024 03:29:05 PM              main.py 218 : Loading default Prompts and Personas
2024-04-22 22:29:05 04/22/2024 03:29:05 PM              main.py 222 : Verifying Document Index(s) is/are available.
2024-04-22 22:29:08 04/22/2024 03:29:08 PM              main.py 244 : Model Server: http://inference_model_server:9000
2024-04-22 22:29:13 INFO:     Application startup complete.
2024-04-22 22:29:13 INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
2024-04-23 00:05:14 04/22/2024 05:05:14 PM variable_functionality.py  27 : Fetching versioned implementation for danswer.auth.users.optional_user_
2024-04-23 00:11:37 INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
2024-04-23 00:11:37 INFO  [alembic.runtime.migration] Will assume transactional DDL.
2024-04-23 00:11:38 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2024-04-23 00:11:39 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2024-04-23 00:11:41 INFO:     Started server process [20]
2024-04-23 00:11:41 INFO:     Waiting for application startup.
2024-04-22 22:29:01 Starting Danswer Api Server
2024-04-22 22:29:16 INFO:     172.19.0.9:46588 - "GET /health HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52398 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52398 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52410 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:05:14 INFO:     172.19.0.8:52438 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52458 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52430 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52448 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52424 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:05:14 INFO:     172.19.0.8:52434 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39004 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39006 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:05:21 INFO:     172.19.0.8:39008 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39052 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39018 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39032 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39036 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:05:21 INFO:     172.19.0.8:39022 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36522 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36522 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36534 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:07:38 INFO:     172.19.0.8:36592 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36576 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36546 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36556 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36574 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:07:38 INFO:     172.19.0.8:36560 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36522 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36534 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:07:43 INFO:     172.19.0.8:36574 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36592 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36576 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36546 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36556 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:07:43 INFO:     172.19.0.8:36560 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35636 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35636 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35644 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:08:04 INFO:     172.19.0.8:35654 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35672 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35660 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35682 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35690 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:08:04 INFO:     172.19.0.8:35670 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41564 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41564 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41574 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:10:28 INFO:     172.19.0.8:41622 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41616 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41580 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41596 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41620 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:10:28 INFO:     172.19.0.8:41602 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:11:38 Starting Danswer Api Server
2024-04-23 00:11:52 INFO:     172.19.0.9:55984 - "GET /health HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39610 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39610 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39616 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:12:11 INFO:     172.19.0.8:39674 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39620 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39660 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39650 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39630 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:12:11 INFO:     172.19.0.8:39640 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:18:07 INFO:     172.19.0.8:60410 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:18:07 INFO:     172.19.0.8:60410 - "GET /auth/type HTTP/1.1" 200 OK
2024-04-23 00:18:08 INFO:     172.19.0.8:60422 - "GET /manage/me HTTP/1.1" 403 Forbidden
2024-04-23 00:18:08 INFO:     172.19.0.8:60496 - "GET /settings HTTP/1.1" 200 OK
2024-04-23 00:18:08 INFO:     172.19.0.8:60436 - "GET /manage/indexing-status HTTP/1.1" 200 OK
2024-04-23 00:18:08 INFO:     172.19.0.8:60478 - "GET /query/valid-tags HTTP/1.1" 200 OK
2024-04-23 00:18:08 INFO:     172.19.0.8:60448 - "GET /manage/document-set HTTP/1.1" 200 OK
2024-04-23 00:18:08 INFO:     172.19.0.8:60486 - "GET /secondary-index/get-embedding-models HTTP/1.1" 200 OK
2024-04-23 00:18:08 INFO:     172.19.0.8:60464 - "GET /persona HTTP/1.1" 200 OK
2024-04-23 00:11:41 04/22/2024 05:11:41 PM variable_functionality.py  27 : Fetching versioned implementation for danswer.auth.users.verify_auth_setting
2024-04-23 00:11:41 04/22/2024 05:11:41 PM             users.py  69 : Using Auth Type: disabled
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 152 : Danswer API Key: dn_pQqMuB3hYfRH-7VLkQUOjpdrlgBk373RqQ3JFP8-
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 160 : Using LLM Provider: openai
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 162 : Using LLM Model Version: gpt-3.5-turbo-16k-0613
2024-04-23 00:11:41 04/22/2024 05:11:41 PM          chat_llm.py  49 : LLM Model Class: ChatLiteLLM, Model Config: {'model': 'openai/gpt-3.5-turbo-16k-0613', 'request_timeout': 60.0, 'model_kwargs': {'frequency_penalty': 0, 'presence_penalty': 0}, 'n': 1, 'max_tokens': 1024}
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 200 : Using Embedding model: "intfloat/e5-base-v2"
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 202 : Query embedding prefix: ""
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 203 : Passage embedding prefix: "passage: "
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 210 : Verifying query preprocessing (NLTK) data is downloaded
2024-04-23 00:11:41 04/22/2024 05:11:41 PM     search_runner.py  45 : stopwords is already downloaded.
2024-04-23 00:11:41 04/22/2024 05:11:41 PM     search_runner.py  48 : Downloading wordnet...
2024-04-23 00:11:41 04/22/2024 05:11:41 PM     search_runner.py  50 : wordnet downloaded successfully.
2024-04-23 00:11:41 04/22/2024 05:11:41 PM     search_runner.py  45 : punkt is already downloaded.
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 213 : Verifying default connector/credential exist.
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 218 : Loading default Prompts and Personas
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 222 : Verifying Document Index(s) is/are available.
2024-04-23 00:11:41 04/22/2024 05:11:41 PM              main.py 241 : Waiting on Vespa, retrying in 5 seconds...
2024-04-23 00:11:47 04/22/2024 05:11:47 PM              main.py 244 : Model Server: http://inference_model_server:9000
2024-04-23 00:11:52 INFO:     Application startup complete.
2024-04-23 00:11:52 INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
2024-04-23 00:12:11 04/22/2024 05:12:11 PM variable_functionality.py  27 : Fetching versioned implementation for danswer.auth.users.optional_user_

web server log:

2024-04-22 22:28:51    ▲ Next.js 14.1.0
2024-04-22 22:28:51    - Local:        http://393bd05c1a23:3000
2024-04-22 22:28:51    - Network:      http://172.19.0.8:3000
2024-04-22 22:28:51 
2024-04-22 22:28:51  ✓ Ready in 98ms
2024-04-23 00:11:37    ▲ Next.js 14.1.0
2024-04-23 00:11:37    - Local:        http://393bd05c1a23:3000
2024-04-23 00:11:37    - Network:      http://172.19.0.8:3000
2024-04-23 00:11:37 
2024-04-23 00:11:37  ✓ Ready in 96ms

Configuration: MacBook M3 Pro 18 GB, OS: Somoma 14.4.1 (23E224)

Is there a way to fix it?

Weves commented 6 months ago

Hey @rodion-m! This looks like a flake somewhere in the build process (maybe css failed to be downloaded but the failure did not cause the entire build process to fail).

Could you try re-building / pulling in the latest images again?