bitter-planet-74915
09/25/2023, 3:27 PMargo workflows , but I got the following error:
(venv) denis@denis-TM1703:~/PycharmProjects/deploy$ python main.py --with retry argo-workflows create
Metaflow 2.9.14 executing ParameterFlow for user:denis
Validating your flow...
The graph looks good!
Running pylint...
Pylint not found, so extra checks are disabled.
Deploying parameterflow to Argo Workflows...
Metaflow service error:
Metadata request (<https://5tm0zc5eg7.execute-api.us-east-1.amazonaws.com/api/ping>) failed (code 500): {"message": "Internal server error"}
Inside the link you can see: {"message":"Forbidden"}
Is it a problem connected with permission in aws?
Thanks!
P.S. I used this code: https://docs.metaflow.org/production/scheduling-metaflow-flows/scheduling-with-argo-workflows#pushing-a-flow-to-productionfast-vr-44972
09/25/2023, 5:02 PMbitter-planet-74915
09/25/2023, 5:09 PMconfig.json looks like this:
{
"METAFLOW_ARGO_EVENTS_EVENT":"metaflow-event",
"METAFLOW_ARGO_EVENTS_EVENT_BUS":"default",
"METAFLOW_ARGO_EVENTS_EVENT_SOURCE":"argo-events-webhook",
"METAFLOW_ARGO_EVENTS_SERVICE_ACCOUNT":"operate-workflow-sa",
"METAFLOW_ARGO_EVENTS_WEBHOOK_URL":"<http://argo-events-webhook-eventsource-svc.default:12000/metaflow-event>",
"METAFLOW_DATASTORE_SYSROOT_S3":"<s3://metaflows3cd4jylvb/metaflow>",
"METAFLOW_DATATOOLS_S3ROOT":"<s3://metaflows3cd4jylvb/data>",
"METAFLOW_DEFAULT_DATASTORE":"s3",
"METAFLOW_DEFAULT_METADATA":"service",
"METAFLOW_KUBERNETES_NAMESPACE":"default",
"METAFLOW_KUBERNETES_SERVICE_ACCOUNT":"argo-workflow",
"METAFLOW_SERVICE_AUTH_KEY":"xxx", # I'm not sure I can share with it :D
"METAFLOW_SERVICE_URL":"<https://5tm0zc5eg7.execute-api.us-east-1.amazonaws.com/api/>"
}average-beach-28850
09/25/2023, 11:23 PMaverage-beach-28850
09/25/2023, 11:23 PMbitter-planet-74915
09/26/2023, 6:25 AMdon't share METAFLOW_SERVICE_AUTH_KEY with me but can you verify it looks like ~40 random chars?yes, exactly @average-beach-28850
bitter-planet-74915
09/26/2023, 8:08 AMfast-vr-44972
09/26/2023, 9:25 AMbitter-planet-74915
09/26/2023, 9:29 AMaverage-beach-28850
09/26/2023, 3:05 PMmyflow.py run doesnt either?fast-vr-44972
09/26/2023, 3:07 PMargo-workflows create I get the exact error with 500bitter-planet-74915
09/26/2023, 3:09 PMpython3 main.py run and get error 500 too
Previously I didn't have this problem with simple main.py run
(venv) denis@denis-TM1703:~/PycharmProjects/deployment$ python3 main.py run
Metaflow 2.9.14 executing ParameterFlow for user:denis
Validating your flow...
The graph looks good!
Running pylint...
Pylint not found, so extra checks are disabled.
Metaflow service error:
Metadata request (/flows/ParameterFlow) failed (code 500): {"message": "Internal server error"}average-beach-28850
09/26/2023, 3:34 PMaverage-beach-28850
09/26/2023, 3:37 PMaverage-beach-28850
09/26/2023, 3:40 PMaverage-beach-28850
09/26/2023, 3:40 PMbitter-planet-74915
09/26/2023, 3:42 PMok and you used this example, right https://github.com/outerbounds/terraform-aws-metaflow/tree/master/examples/eks_argo ?actually, only this https://outerbounds.com/engineering/deployment/aws-k8s/deployment/
bitter-planet-74915
09/26/2023, 3:42 PMbitter-planet-74915
09/26/2023, 3:46 PM@kubernetes . Am I need to decorate first step I have in my FlowSpec ? Or what does it mean here?average-beach-28850
09/26/2023, 3:50 PM@kubernetes so they run on kubernetes. You can also leave it out, but do python flow.py run --with kubernetes and that has the same effect as adding @kubernetes decorator to all stepsaverage-beach-28850
09/26/2023, 3:51 PMpython flow.py run --with kubernetes that is) so I can easily switch between running my flow locally and on kubernetes, without changing codebitter-planet-74915
09/26/2023, 3:52 PMaverage-beach-28850
09/26/2023, 3:54 PMbitter-planet-74915
09/26/2023, 3:54 PM