Hello world! Have any of you ever encountered this when trying to connect an agent to a remote server?
Copy code
Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
k
Kevin Kho
06/17/2021, 2:27 PM
Hi @Joe, I haven’t but it seems like the remote server isn’t accepting connections. Are the ports open or is there any security that would stop the agent from pinging it?
j
Joe
06/17/2021, 2:30 PM
I'm running some network tests, but a coworker was able to connect an agent from his machine yesterday. Both of us are remote, on AWS VPN, and connecting to the same server which is running on an EC2.
Joe
06/17/2021, 2:32 PM
Running an actual ping against the server is fine - quick responses, no timeouts.
k
Kevin Kho
06/17/2021, 2:33 PM
I don’t have any ideas off the top of my head. But let me ask the team if they have any.
j
Joe
06/17/2021, 2:36 PM
Thanks, I appreciate it! Google came up with nothing related to Prefect - just some hits on Selenium hitting the same issues. Digging into those now, too.
k
Kevin Kho
06/17/2021, 2:38 PM
Yeah these permission errors are normally related to your AWS networking specifically. When I see this it’s normally just a matter of opening the relevant ports and allowing IP addresses. Very weird if your coworker is able to connect over the same VPN
j
Joe
06/17/2021, 2:39 PM
Right? It's always something. 😃
I'll keep digging; will report back if I have a breakthrough.
k
Kevin Kho
06/17/2021, 4:20 PM
Chatted with the team. This is a bit hard to provide good feedback on our end cuz it might be a Windows issue too
j
Joe
06/17/2021, 5:52 PM
Yeah, definitely could be. Would you happen to have any documentation or guidance on all ports that need to be open?
k
Kevin Kho
06/17/2021, 5:57 PM
On server side, you only need to accept 4200. For the agent, HTTP out (port 80). Assuming all of the IP’s are allowed.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.