-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.1.1: Execution output: {} after running execute.sh #59
Comments
Thanks for reporting, @jcollum! Here are the possible execution status values: The Can you please double-check what is the actual status of that execution? Would you like to help me improve the script to cover those cases too? |
So
It appears to be getting to these lines:
So the actual status is
I don't think that's the issue. It seems like I need to see what the script actually did but I can't find that output because I don't know where to look. I grabbed the full output, this is it:
That might not be correct JSON because I cut out the payload and some account info. What can I do next to troubleshoot this? |
Good point :) Of course not.
I see. So the execution succeeds but the output is empty. I think this is due to the state machine error handling. Could you inspect the execution in the AWS Management Console (web)? I'm quite sure it'll be much easier to debug there. Did the execution go through the |
Took me a bit of time to get back to this one and figure out how to kick off the state machine execution from the control panel. I found there are many many errors like this one in the output:
What else can I add to help here? |
I'm sorry the experience wasn't super smooth :) It looks like your function execution crashed (or threw an Exception/Error). At the moment, the state machine assumes that your invocations are successful. If you are trying to fine-tune a failing Lambda function, it's not supported yet. Please make sure that the payload you configured results in a non-failing function execution. You can easily verify this by testing your function in the Lambda management console, with the |
It looks like I'm getting an access error when it tries to retrieve the power values:
Next entry:
Here's the payload I'm sending:
|
Ok, this looks like the actual error. Thanks for sharing! Maybe you configured a specific The default value for Let's try to find out why the error is occurring in the first place, then I'll spend some time figuring a better way to debug these cases in the future. |
Pretty sure I didn't change any of the defaults.
This?
lambda-power-tuning-initializerRole-12Q3CYVHBXCAZ Under Permissions I see this: AWSLambdaExecute with a warning:
Also AWSLambdaBasicExecutionRole (no warnings) and initializerRolePolicy1 (no warnings) Does that help? |
Yes, can you please share the JSON policy of It's odd since you didn't change the default Also, when did you deploy the SAR app? It might be worth re-deploying it with the latest version to make sure it's not a bug already solved. |
Here you go:
```
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"lambda:GetAlias",
"lambda:GetFunctionConfiguration",
"lambda:PublishVersion",
"lambda:UpdateFunctionConfiguration",
"lambda:CreateAlias",
"lambda:UpdateAlias"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
```
I deployed the stack on 3 Jan 2020.
|
Re-deployed the SAR, might be making progress, checking now... |
Looks like whatever bug I hit on the first run was fixed between now and then. Feedback:
|
Oh yeah, one more suggestion: add the ARN of the lambda to the results visualization. |
Thanks for sharing this, @jcollum! I'll try to simplify the documentation and maybe add a few screenshots of the web console as well.
This is intentionally missing to avoid privacy concerns, as there isn't any data sharing between the state machine and the visualization tool (besides the numbers). Could you elaborate on why it'd make the visualization better? |
That makes sense. Maybe just the name of the lambda? It would help me
because I have a hell of a lot of lambdas to run through this tuner and it
will be too easy to forget which result applies to which lambda.
…On Thu, Jan 30, 2020 at 8:41 AM Alex Casalboni ***@***.***> wrote:
Thanks for sharing this, @jcollum <https://github.com/jcollum>!
I'll try to simplify the documentation and maybe add a few screenshots of
the web console as well.
Oh yeah, one more suggestion: add the ARN of the lambda to the results
visualization.
This is intentionally missing to avoid privacy concerns, as there isn't
any data sharing between the state machine and the visualization tool
(besides the numbers). Could you elaborate on why it'd make the
visualization better?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59?email_source=notifications&email_token=AAFMAAVECKIPL5HBEZJJITLRAL7KXA5CNFSM4KENAEW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLVJBY#issuecomment-580342919>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFMAAW3DMBSMPIAQ2SI6MLRAL7KXANCNFSM4KENAEWQ>
.
|
Steps:
./deploy.sh
./execute.sh
Checked the logs:
aws stepfunctions get-execution-history --profile default --execution-arn $EXECUTION_ARN
There are 96 entries in the logs like:
So it appears to have failed but not caught it and then given an empty output.
Config:
Tried with explicit powerValues and parallelInvocation: false as well.
The text was updated successfully, but these errors were encountered: