Skip to content

Health probes are returning 200 status even when hanadb connection is broken #773

@mfaizanse

Description

@mfaizanse

Health probes are returning 200 status even when hanadb connection is broken

File "/app/src/rag/system.py", line 55, in __init__
    self.retriever = HanaDBRetriever(
                     ^^^^^^^^^^^^^^^^
  File "/app/src/rag/retriever.py", line 69, in __init__
    self.db = HanaVectorDB(
              ^^^^^^^^^^^^^
  File "/app/src/rag/retriever.py", line 25, in __init__
    super().__init__(connection, embedding, table_name=table_name)
  File "/usr/local/lib/python3.12/dist-packages/langchain_core/_api/deprecation.py", line 224, in warn_if_direct_instance
    return wrapped(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/langchain_community/vectorstores/hanavector.py", line 139, in __init__
    if not self._table_exists(self.table_name):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/langchain_community/vectorstores/hanavector.py", line 176, in _table_exists
    cur.execute(sql_str, (table_name))
hdbcli.dbapi.Error: (414, 'user is forced to change password: alter password required for user <USER>')
      INFO   127.0.0.6:33529 - "GET /metrics HTTP/1.1" 200
      INFO   127.0.0.6:53085 - "GET /readyz HTTP/1.1" 200
      INFO   127.0.0.6:49143 - "GET /healthz HTTP/1.1" 200
      INFO   127.0.0.6:50235 - "GET /readyz HTTP/1.1" 200
      INFO   127.0.0.6:46891 - "GET /healthz HTTP/1.1" 200
      INFO   127.0.0.6:55289 - "GET /readyz HTTP/1.1" 200

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions