straight-dog-3982
06/25/2025, 10:51 AMMETAFLOW_DEFAULT_DATASTORE=local
as I did not find out how to set up credentials for s3/minio. Now, I port-forward the service (port 8080) to localhost and with METAFLOW_SERVICE_URL=<http://localhost:8080/>
I'm able to run example flow; from the logs on service pod it seems it is connecting to remote server which is nice. I can even check the flow status on port 8083, so it seems this is logged corerctly
OK, but now I cannot see anything in the UI. The UI (running through ingress) just shows Error loading data
on empty dashboard page, nothing about my flow and nothing more specific about the error, just Unknown error
/ generic-error
.
I assume some part of my stack is misconfigured but I can't see any hints anywhere ... Is it complaining about connection to backend? Or is it backend complaning about actual access to datastore? I see nothing relevant in the logs...ancient-application-36103
06/25/2025, 7:34 PMhundreds-zebra-57629
06/26/2025, 4:24 AMstraight-dog-3982
06/26/2025, 7:24 AMmetadatadb:
host: postgresql.caic
That's the same value as for metaflow-service
which is running the initial DB migration. I believe the pods would not be running if the database connection were not configured correctlystraight-dog-3982
06/26/2025, 7:27 AMuiStatic:
metaflowUIBackendURL: <http://metaflow-metaflow-ui:8083/api>
My services:
metaflow-metaflow-service ClusterIP 10.17.66.169 <none> 8080/TCP,8082/TCP 40h
metaflow-metaflow-ui ClusterIP 10.17.71.199 <none> 8083/TCP 40h
metaflow-metaflow-ui-static ClusterIP 10.17.65.12 <none> 3000/TCP 40h
All three pods are running as well and do not report any connection problemshundreds-zebra-57629
06/26/2025, 10:30 AMstraight-dog-3982
06/26/2025, 10:48 AMstraight-dog-3982
06/26/2025, 10:48 AMuiStatic.metaflowUIBackendURL
?straight-dog-3982
06/26/2025, 10:50 AMstraight-dog-3982
06/26/2025, 10:51 AMhundreds-zebra-57629
06/26/2025, 5:38 PMuiStatic.metaflowUIBackendURL
should be set to the URL you are using to hit the backend from your local workstation. For example if the fronted is exposed on the url <https://fronted.metaflow.example.com>
and the backend is exposed on the url <https://backend.metaflow.example.com>
then set uiStatic.metaflowUIBackendURL=<https://backend.metaflow.example.com>
.straight-dog-3982
06/26/2025, 7:11 PMpython example_flow.py run
and it does communicate to remote service, I can even check the service running on 8083 port and the path like /api/metadata/flow/flow-name, this shows some informationstraight-dog-3982
06/26/2025, 7:14 PM~/metaflow$ python example_flow.py run
Metaflow 2.15.18 executing ComplexFlowExample for user:jirisuchomel
Validating your flow...
The graph looks good!
Running pylint...
Pylint not found, so extra checks are disabled.
2025-06-25 14:00:26.562 Workflow starting (run-id 3):
2025-06-25 14:00:26.951 [3/start/14 (pid 72598)] Task is starting.
2025-06-25 14:00:27.862 [3/start/14 (pid 72598)] Starting the complex flow example!
2025-06-25 14:00:28.047 [3/start/14 (pid 72598)] Task finished successfully.
2025-06-25 14:00:28.179 [3/load_data/15 (pid 72602)] Task is starting.
2025-06-25 14:00:29.066 [3/load_data/15 (pid 72602)] Starting the data load!
2025-06-25 14:00:29.069 [3/load_data/15 (pid 72602)] Preprocessing data
2025-06-25 14:00:29.490 [3/load_data/15 (pid 72602)] Task finished successfully.
2025-06-25 14:00:29.633 [3/train_model/16 (pid 72608)] Task is starting.
2025-06-25 14:00:31.289 [3/train_model/16 (pid 72608)] Model trained with accuracy: 0.1
2025-06-25 14:00:31.290 [3/train_model/16 (pid 72608)] Predictions: [2 4 1 2 3 1 5 7 1 5 4 3 1 3 1 1 5 4 6 7 1 9 3 4 3 5 7 5 9 6 6 5 1 1 0 3 6
2025-06-25 14:00:31.536 [3/train_model/16 (pid 72608)] 3 6 2 5 7 1 4 3 6 9 6 4 6 3 5 1 1 3 5 3 0 4 4 0 1 7 3 2 1 4 1 4 6 5 3 1 1
2025-06-25 14:00:31.536 [3/train_model/16 (pid 72608)] 0 1 5 9 5 2 1 1 3 3 3 6 3 9 5 6 4 4 3 1 4 2 9 1 1 6]
2025-06-25 14:00:31.537 [3/train_model/16 (pid 72608)] Task finished successfully.
2025-06-25 14:00:31.672 [3/predict/17 (pid 72612)] Task is starting.
2025-06-25 14:00:32.628 [3/predict/17 (pid 72612)] Predictions: [8 8 8 8 8 8 8 8 8 8]
2025-06-25 14:00:32.860 [3/predict/17 (pid 72612)] Task finished successfully.
2025-06-25 14:00:32.989 [3/end/18 (pid 72616)] Task is starting.
2025-06-25 14:00:33.881 [3/end/18 (pid 72616)] Flow is complete!
2025-06-25 14:00:34.076 [3/end/18 (pid 72616)] Task finished successfully.
2025-06-25 14:00:34.077 Done!
straight-dog-3982
06/26/2025, 7:16 PMuiStatic.metaflowUIBackendURL
is set to http://metaflow-metaflow-ui:8083/api , i.e. to backend service, is that correct? I don't think this should point to the service on 8080straight-dog-3982
06/26/2025, 7:17 PMmetaflow-ui.uiBackend.metaflowServiceURL
is http://metaflow-metaflow-ui:8083/api/metadatastraight-dog-3982
06/26/2025, 7:18 PMhundreds-zebra-57629
06/26/2025, 11:22 PMI believe this is the main issue. It should be set to the public endpoint and not the internal k8s service endpoint. When browsing the Metaflow UI, your connection does NOT go [browser] -> [Frontend ] -> [backend]. It goes [browser] -> [Frontend (returns a url for the backend based on its config)] -> [browser] -> [backend].is set to http://metaflow-metaflow-ui:8083/api , i.e. to backend service,uiStatic.metaflowUIBackendURL
straight-dog-3982
06/27/2025, 7:11 AMstraight-dog-3982
06/27/2025, 7:12 AMstraight-dog-3982
06/27/2025, 7:52 AMhundreds-zebra-57629
06/27/2025, 3:16 PMstraight-dog-3982
06/27/2025, 3:33 PM