- Newest
- Most votes
- Most comments
Hello,
Selenium runs on ECS, so the task might have been stopped, or the underlying EC2 instance could have been restarted. If that happens, the EC2 gets a new IP, which could break the Route53 DNS entry. This issue was more common in older CI setups that didn’t use a Load Balancer. Also, if you restarted the EC2, the Auto Scaling Group (ASG) must have replaced it with a new one 😕
Here are a few things you can check:
- Is the task running and healthy on ECS?
- Does the IP in the Route53 DNS still match the one of your
ec2-<AWS_REGION>-seleniuminstance? - Check the Selenium logs in CloudWatch and the ECS agent logs if needed.
Hope this helps! 😊
To address the issue of an unreachable Selenium instance in the AWS Blu Age DevOps Pipeline, you can try the following steps:
-
Check the EC2 instance: Connect to the EC2 instance that's running your Selenium tests. You can do this by connecting to the "ec2-<AWS_REGION>-test-cases" instance.
-
Inspect Docker containers: Once connected to the EC2 instance, use the command "docker ps" to list all running containers. Look for the container that's running Selenium.
-
Restart the Selenium container: If you find the Selenium container, you can try restarting it using Docker commands. First, get the container ID from the "docker ps" output, then use "docker restart <CONTAINER_ID>" to restart the Selenium container.
-
Check logs: If restarting doesn't solve the issue, you can inspect the logs of the Selenium container using "docker logs <CONTAINER_ID>" to see if there are any error messages that might indicate why it's unreachable.
-
Verify network settings: Ensure that the necessary ports are open and that there are no network issues preventing access to the Selenium instance.
-
Rebuild the pipeline: If none of the above steps work, you might need to rebuild your pipeline. In some cases, deleting the pipeline and service and then reinitializing the service from scratch can resolve persistent issues.
-
Version compatibility: Ensure that the versions of all components in your pipeline, including Selenium, are compatible with each other and with the version of AWS Blu Age you're using.
If these steps don't resolve the issue, you may need to consult the AWS Blu Age documentation or reach out to AWS support for more specific guidance tailored to your setup.
Sources
How to see generated PDF files in Jenkins with the AWS Blu Age Devops Pipeline | AWS re:Post
CID/CD Pipeline to production after last failed | AWS re:Post
answered 2 years ago
