Pardon me, I have 1 error while I start to build in progress in CodeBuild. It means “COMMAND_EXECUTION_ERROR Message: Error while executing command: pnpm build. Reason: exit status 1”. This is my link github “https://github.com/phatle21/shoppy-backend”.
What role have you assigned to your CodePipeline? Can you try editing it and manually adding this permission?
That error means the IAM role used by your **AWS CodePipeline** doesn’t have permission to create a new **Elastic Beanstalk Application Version**, which is typically required when you’re deploying your app using Elastic Beanstalk.
### ✅ Fix: Add `elasticbeanstalk:CreateApplicationVersion` to the IAM Role
1. Go to the **IAM Console**.
2. Find the **IAM role** associated with your CodePipeline (commonly named like `CodePipelineRole-XYZ`).
3. Attach or edit a policy with the following permissions:
Pardon me, I have 1 error while I start to build in progress in CodeBuild. It means “COMMAND_EXECUTION_ERROR Message: Error while executing command: pnpm build. Reason: exit status 1”. This is my link github “https://github.com/phatle21/shoppy-backend”.
Can you try pasting your entire error log output? There should be more details about the cause of the error.
It now leaves an error on the CodePipeline:
“The provided role does not have the elasticbeanstalk:CreateApplicationVersion permission”
What role have you assigned to your CodePipeline? Can you try editing it and manually adding this permission?
That error means the IAM role used by your **AWS CodePipeline** doesn’t have permission to create a new **Elastic Beanstalk Application Version**, which is typically required when you’re deploying your app using Elastic Beanstalk.
### ✅ Fix: Add `elasticbeanstalk:CreateApplicationVersion` to the IAM Role
1. Go to the **IAM Console**.
2. Find the **IAM role** associated with your CodePipeline (commonly named like `CodePipelineRole-XYZ`).
3. Attach or edit a policy with the following permissions:
“`json
{
“Effect”: “Allow”,
“Action”: [
“elasticbeanstalk:CreateApplicationVersion”,
“elasticbeanstalk:DescribeApplicationVersions”,
“elasticbeanstalk:UpdateEnvironment”,
“s3:GetObject”,
“s3:GetObjectVersion”
],
“Resource”: “*”
}
“`
You can restrict the `”Resource”` if you want tighter security, but `”*”` works fine if you’re just trying to unblock things quickly.
Hi, could you please help me troubleshoot this issue?
I’m getting the following error in AWS Elastic Beanstalk:
“Following services are not running: web.”
And in the browser I receive:
502 Bad Gateway — nginx
I’ve tried multiple Procfile configurations, including the default one and the one suggested by ChatGPT, but the problem persists.
Here’s the GitHub repo for reference:
👉 https://github.com/mishaRozdorozhniuk/Next-Nest-shop-backend
Any insights or suggestions would be really appreciated. Thanks in advance!
Hi, could you please help me troubleshoot this issue?
I’m getting the following error in AWS Elastic Beanstalk:
“Following services are not running: web.”
And in the browser I receive:
502 Bad Gateway — nginx
I’ve tried multiple Procfile configurations, including the default one and the one suggested by ChatGPT, but the problem persists.
Here’s the GitHub repo for reference:
👉 https://github.com/mishaRozdorozhniuk/Next-Nest-shop-backend
Any insights or suggestions would be really appreciated. Thanks in advance!
Can you try obtaining logs for Elastic Beanstalk to see what error is being thrown in your application?
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html