Skip to content

The FeatureStore.server() show errors #14

@shuchu

Description

@shuchu
(feast-credit-score-local-tutorial) shuchu@mac feast-credit-score-local-tutorial % python3 app.py 
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.
/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/repo_config.py:266: DeprecationWarning: The serialization version below 3 are deprecated. Specifying `entity_key_serialization_version` to 3 is recommended.
  warnings.warn(
[2025-08-22 00:21:57 -0400] [37772] [INFO] Starting gunicorn 23.0.0
[2025-08-22 00:21:57 -0400] [37772] [INFO] Listening at: http://127.0.0.1:8888 (37772)
[2025-08-22 00:21:57 -0400] [37772] [INFO] Using worker: uvicorn_worker.UvicornWorker
/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/gunicorn/arbiter.py:592: DeprecationWarning: This process (pid=37772) is multi-threaded, use of fork() may lead to deadlocks in the child.
  pid = os.fork()
[2025-08-22 00:21:57 -0400] [37776] [INFO] Booting worker with pid: 37776
[2025-08-22 00:21:57 -0400] [37777] [INFO] Booting worker with pid: 37777
/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
  from websockets.server import WebSocketServerProtocol
/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
  from websockets.server import WebSocketServerProtocol
[2025-08-22 00:21:58 -0400] [37776] [INFO] Started server process [37776]
[2025-08-22 00:21:58 -0400] [37777] [INFO] Started server process [37777]
[2025-08-22 00:21:58 -0400] [37776] [INFO] Waiting for application startup.
[2025-08-22 00:21:58 -0400] [37777] [INFO] Waiting for application startup.
Error while refreshing registry: (psycopg.OperationalError) consuming input failed: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
[SQL: SELECT managed_infra.infra_name, managed_infra.project_id, managed_infra.last_updated_timestamp, managed_infra.infra_proto 
FROM managed_infra 
WHERE managed_infra.infra_name = %(infra_name_1)s::VARCHAR AND managed_infra.project_id = %(project_id_1)s::VARCHAR]
[parameters: {'infra_name_1': 'infra_obj', 'project_id_1': 'credit_scoring_local'}]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
Traceback (most recent call last):
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1961, in _exec_single_context
    self.dialect.do_execute(
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 944, in do_execute
    cursor.execute(statement, parameters)
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/psycopg/cursor.py", line 97, in execute
    raise ex.with_traceback(None)
psycopg.OperationalError: consuming input failed: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

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

Traceback (most recent call last):
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/caching_registry.py", line 432, in refresh
    self.cached_registry_proto = self.proto()
                                 ^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/sql.py", line 891, in proto
    process_project(project)
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/sql.py", line 886, in process_project
    r.infra.CopyFrom(self.get_infra(project_name).to_proto())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/caching_registry.py", line 364, in get_infra
    return self._get_infra(project)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/sql.py", line 753, in _get_infra
    infra_object = self._get_object(
                   ^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/sql.py", line 1082, in _get_object
    row = conn.execute(stmt).first()
          ^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1413, in execute
    return meth(
           ^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 526, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1635, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1840, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1980, in _exec_single_context
    self._handle_dbapi_exception(
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2349, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1961, in _exec_single_context
    self.dialect.do_execute(
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 944, in do_execute
    cursor.execute(statement, parameters)
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/psycopg/cursor.py", line 97, in execute
    raise ex.with_traceback(None)
sqlalchemy.exc.OperationalError: (psycopg.OperationalError) consuming input failed: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
[SQL: SELECT managed_infra.infra_name, managed_infra.project_id, managed_infra.last_updated_timestamp, managed_infra.infra_proto 
FROM managed_infra 
WHERE managed_infra.infra_name = %(infra_name_1)s::VARCHAR AND managed_infra.project_id = %(project_id_1)s::VARCHAR]
[parameters: {'infra_name_1': 'infra_obj', 'project_id_1': 'credit_scoring_local'}]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
Error while refreshing registry: (psycopg.ProgrammingError) can't change 'autocommit' now: connection in transaction status INTRANS
(Background on this error at: https://sqlalche.me/e/20/f405)
Traceback (most recent call last):
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 143, in __init__
    self._dbapi_connection = engine.raw_connection()
                             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3295, in raw_connection
    return self.pool.connect()
           ^^^^^^^^^^^^^^^^^^^
  File "/Users/shuchu/Documents/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 447, in connect
    return _ConnectionFairy._checkout(self)
           ^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions