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
Scale up lambda failed #346
Comments
I had the same error, try giving the app rights on the Actions group. |
@adrianmiron Have You fixed it? |
same issue +1 |
@npalm Could you please help me? |
@adrianmiron i tried Actions group but still having issue. Can you share all your permissions? I am trying organization runner. |
I do not recognize the issue The scale up lambda is fetching a messange from the queue, next it checks if there are still queued jobs. If yes it is scaling up. The scale up lambda is triggered for messages that are for 30 seconds on teh queue. The error message indicates the lambda is not allowed to call the API. Please can you check if you GitHub app is setup according the docs. Since your scale up lambda is triggered it seems the app is installed for the repo, otherwise no event should be received. So most ligical looks like the permissions are not set right. |
@manoj-k-deepr From my investigations of the same error, it turned out to be permission issues of the github app ( which is the one actually doing the query to the repo actions. I remember i went over the lambda -> github app thing 5 times and it was not it. Share a printscreen with permissions on organisation/repo and i will compare in the morning. |
@npalm yes its issue with permission. I fixed the issue by providing Self-hosted runners access (Read & Write) in organization . In docs nothing mentioned about runner permission. |
There was problem with Github app permissions. @npalm Can You update documentation and specify what permission application requires |
@mkryva Great you got it working. I will leave the issue open so we can update the docs. PR's for improving the docs are always welcome! |
After updating permissions, it fails with following error:
UPD: Looks like the reason was "You've reached your quota for maximum Spot Fleet Requests for this account." |
scale up lambda failing for me, even after the latest commit of (ghes) fix by @mcaulifn
|
@buamod you are using GHES? Right? Just to be sure, did you rebuild the lambda, and ensured it is used? |
|
I did deploy the latest commit lambdas, I did build them with docker commands from the Ci/build.sh script. |
There might be a proxy I don't know. Let's say there is a proxy how would I pass that ? |
@buamod proxy requirements can differ greatly. I would suggest contacting your network team for what they need to pass the connection. |
check if you have |
Is there any update for this issue guys I have the same issue |
A 404 is most likely a wrong configured webhook, did you use the full URL in the webhook? Like |
Getting here a little late, but the SQS error message is a red-herring. We're also using this with GHES, and I added a little more debug logging to the Lambdas. What's happening is that if you are running the Lambdas inside your VPC, you may not be able to access services outside the VPC, but have no problem with services inside the VPC. The solution is that you need to ensure that the VPC subnets you pick are configured to communicate through a NAT gateway. That way, it can communicate with services inside AND outside the VPC. There isn't a one-size-fits-all bit of Terraform that you can run, since changes at the VPC level will impact all traffic in that particular network. You'll probably need to talk to whomever has deep knowledge about how your VPC is configured. |
Closing as this seems old and hopefully resolved. Please re-open or create a new issue if you are still experiencing problems. |
Hi @ernado . How did you solved the "You've reached your quota for maximum Spot Fleet Requests for this account."? |
Hi. I've error on lambda scale up after setup your module.
Cloudwatch logs below:
The text was updated successfully, but these errors were encountered: