question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: A timeout of 5 minutes is exceeded. Please ensure your EC2 instance has access to the Internet.

See original GitHub issue

I’m sure that this is a configuration issue on my end but I’m not sure what the problem is.

Link to my yml: https://github.com/choderalab/super-duper-guacamole/blob/27b75e91103c5804e1d056908cb4c97110b5a7eb/.github/workflows/self-hosted-test.yml

Link to github action log: https://github.com/choderalab/super-duper-guacamole/runs/2273873236?check_suite_focus=true

I made the inbound traffic rules wide open to help troubleshoot this:

Inbound rules
Type | Protocol | Port range | Source | Description - optional
-- | -- | -- | -- | --
All traffic | All | All | 0.0.0.0/0 | wide open for testing
All traffic | All | All | ::/0 | wide open for testing
Outbound rules
Port range | Protocol | Destination | Security groups
-- | -- | -- | --
443 | TCP | 0.0.0.0/0 | GitHubActionSelfHostedRunner

I’m able to SSH onto the EC2 instance that gets spun up – any other ideas on how to test?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
davinchiacommented, Apr 21, 2021

If you run it in the private subnet, please make sure you use NAT Gateway with this subnet, so your instance with private IP has access to the Internet and can pull the jobs from GitHub. Otherwise, the instance with the private IP won’t be able to connect to the internet.

@machulav you were right - worked once I attached a NAT gateway!

1reaction
machulavcommented, Apr 20, 2021

Hey @davinchia,

The instance is currently running in a private VPC/subnet with a private IP. Does the instance need a public IP?

If you run it in the private subnet, please make sure you use NAT Gateway with this subnet, so your instance with private IP has access to the Internet and can pull the jobs from GitHub. Otherwise, the instance with the private IP won’t be able to connect to the internet.

I hope it helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve "Connection refused" or "Connection timed out ... - AWS
I'm receiving "Connection refused" or "Connection timed out" errors when trying to connect to my EC2 instance with SSH.
Read more >
Top 5 Ways to Improve Your AWS EC2 Performance - Datadog
Learn about the five most common EC2 performance issues, why they occur, how to detect them, and best practices for easy resolution.
Read more >
Azure subscription limits and quotas - Azure Resource Manager
Provides a list of common Azure subscription and service limits, quotas, and constraints. This article includes information on how to ...
Read more >
Troubleshooting Cloudflare 5XX errors
Required error details to provide your hosting provider. Specific 5XX error code and message; Time and timezone the 5XX error occurred ...
Read more >
Troubleshoot External HTTP(S) Load Balancing - Google Cloud
If HTTP 5XX errors persist longer than a few minutes after you complete the ... Traffic from the load balancer to your instances...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found