yocto-gl icon indicating copy to clipboard operation
yocto-gl copied to clipboard

[BUG] POST search bug

Open moghadas76 opened this issue 1 year ago • 2 comments

Issues Policy acknowledgement

  • [X] I have read and agree to submit bug reports in accordance with the issues policy

Where did you encounter this bug?

Local machine

Willingness to contribute

Yes. I can contribute a fix for this bug independently.

MLflow version

  • Client: 1.x.y
  • Tracking server: 1.x.y

System information

-- Ubuntu 22.04 -- MLFLOW 2.10

Describe the problem

500 Internal Server Error Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Tracking information

         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/server/handlers.py", line 494, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/server/handlers.py", line 535, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/server/handlers.py", line 916, in _search_runs
    run_entities = _get_tracking_store().search_runs(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/abstract_store.py", line 327, in search_runs
    runs, token = self._search_runs(
                  ^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 915, in _search_runs
    run_infos = self._list_run_infos(experiment_id, run_view_type)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 883, in _list_run_infos
    run_info = self._get_run_info_from_dir(r_dir)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 695, in _get_run_info_from_dir
    return _read_persisted_run_info_dict(meta)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 131, in _read_persisted_run_info_dict
    dict_copy = run_info_dict.copy()
                ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'copy'

Code to reproduce issue

REPLACE_ME

Stack trace

^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/server/handlers.py", line 494, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/server/handlers.py", line 535, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/server/handlers.py", line 916, in _search_runs
    run_entities = _get_tracking_store().search_runs(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/abstract_store.py", line 327, in search_runs
    runs, token = self._search_runs(
                  ^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 915, in _search_runs
    run_infos = self._list_run_infos(experiment_id, run_view_type)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 883, in _list_run_infos
    run_info = self._get_run_info_from_dir(r_dir)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 695, in _get_run_info_from_dir
    return _read_persisted_run_info_dict(meta)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seyed/miniconda3/envs/env/lib/python3.11/site-packages/mlflow/store/tracking/file_store.py", line 131, in _read_persisted_run_info_dict
    dict_copy = run_info_dict.copy()
                ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'copy'

Other info / logs

REPLACE_ME

What component(s) does this bug affect?

  • [X] area/artifacts: Artifact stores and artifact logging
  • [X] area/build: Build and test infrastructure for MLflow
  • [X] area/deployments: MLflow Deployments client APIs, server, and third-party Deployments integrations
  • [ ] area/docs: MLflow documentation pages
  • [ ] area/examples: Example code
  • [ ] area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • [ ] area/models: MLmodel format, model serialization/deserialization, flavors
  • [ ] area/recipes: Recipes, Recipe APIs, Recipe configs, Recipe Templates
  • [ ] area/projects: MLproject format, project running backends
  • [ ] area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • [ ] area/server-infra: MLflow Tracking server backend
  • [ ] area/tracking: Tracking Service, tracking client APIs, autologging

What interface(s) does this bug affect?

  • [ ] area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • [ ] area/docker: Docker use across MLflow's components, such as MLflow Projects and MLflow Models
  • [ ] area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
  • [ ] area/windows: Windows support

What language(s) does this bug affect?

  • [ ] language/r: R APIs and clients
  • [ ] language/java: Java APIs and clients
  • [ ] language/new: Proposals for new client languages

What integration(s) does this bug affect?

  • [ ] integrations/azure: Azure and Azure ML integrations
  • [ ] integrations/sagemaker: SageMaker integrations
  • [ ] integrations/databricks: Databricks integrations

moghadas76 avatar Jan 29 '24 11:01 moghadas76

@moghadas76 Please provide code to repro

serena-ruan avatar Jan 30 '24 03:01 serena-ruan

@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.

github-actions[bot] avatar Feb 06 '24 00:02 github-actions[bot]