- Newest
- Most votes
- Most comments
When your CodePipeline isn't running and no logs are visible in the execution details, there are several potential causes to investigate:
- IAM Permissions Issue: Your console role might be missing the required permissions to view compute logs. Specifically, you need the
logs:GetLogEventspermission. Make sure your role has a policy statement that allows this action for your pipeline's log group:
{
"Effect": "Allow",
"Action": [
"logs:GetLogEvents"
],
"Resource": "arn:aws:logs:*:YOUR_AWS_ACCOUNT_ID:log-group/aws/codepipeline/YOUR_PIPELINE_NAME:*"
}
-
Region Mismatch: Verify that the log group is in the same region as your pipeline (us-east-1). The console can only display logs from CloudWatch Logs groups in the same region as the pipeline.
-
Log Configuration: Check if your task definitions have the correct log configuration. The log driver should be set to 'awslogs' for CloudWatch Logs integration.
-
Log Group Existence: Confirm that the specified log group exists in CloudWatch. If you're using a new log group name, make sure it's being created correctly.
-
Console Display Issues: Sometimes the AWS Management Console can have caching issues. Try clearing your browser cache and cookies, or use a different browser.
-
Disk Space: If you're using Jenkins with CodePipeline, check if there's sufficient disk space on the Jenkins EC2 instance.
-
Pipeline Stuck: If the pipeline is stuck, you may need to manually intervene. Look for options like "Try again" or "Repeat failed action" in the CodePipeline console.
To troubleshoot further, I recommend:
- Check CloudWatch Logs directly to see if logs are being written there
- Verify IAM permissions for all relevant service roles
- Review your pipeline configuration for any errors
- Try creating a new log group and see if it appears in the console
Sources
Permissions required to view compute logs in the CodePipeline console - AWS CodePipeline
AWS Blu Age Devops Pipeline : Failed | AWS re:Post
New deployed Services/Tasks do not show logs anymore | AWS re:Post
CloudWatch no log groups | AWS re:Post
answered a year ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
