Hi team, GM. My workflow failed from last Saturday...
# ask-community
j
Hi team, GM. My workflow failed from last Saturday. Could you please help me to check the propblem? The error:
File "/usr/local/lib/python3.11/site-packages/prefect/settings.py", line 1662, in get_current_settings
return Settings()
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic_settings/main.py", line 153, in __init__
**__pydantic_self__._settings_build_values(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic_settings/main.py", line 320, in _settings_build_values
sources = self.settings_customise_sources(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/settings.py", line 454, in settings_customise_sources
ProfileSettingsTomlLoader(settings_cls),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/settings.py", line 368, in __init__
self.profile_settings = self._load_profile_settings()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/settings.py", line 373, in _load_profile_settings
all_profile_data = toml.load(self.profiles_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/toml/decoder.py", line 133, in load
with io.open(_getpath(f), encoding='utf-8') as ffile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/root/.prefect/profiles.toml'
10:30:37.280 | ERROR  | prefect.flow_runs.runner - Process for flow run 'brave-giraffe' exited with status code: 1
10:30:37.707 | INFO   | prefect.flow_runs.runner - Reported flow run '3619b4c0-9089-47ea-9534-c005c15e8e4c' as crashed: Flow run process exited with non-zero status code 1.
b
I dont know much about where you are working (local, cloud, self hosted) or what your flow is, but you can see there is some signal in the output here:
Copy code
FileNotFoundError: [Errno 2] No such file or directory: '/root/.prefect/profiles.toml'
I am only getting started myself, but thats what jumps out to me.
j
My account is on cloud, and my workflow code is from gitlab. My Prefect worker is on the Kubunets
b
Again, I am new myself and do not use Kubernetes, but a few things maybe to explore • Can your gitlab project be accessed during the run of the flow? • The error above suggests that the file can't be found when moved to the worker task I had a much simpler flow crashing on cloud for me, and the TLDR was that my flow code and resources were not being accessed correctly on the pull for the run.
j
Thanks a lot. The workflow works very good before. Anyway, I will have to leave Prefect if nobody can resolve the problem.