j

    Joe

    1 year ago
    Hello world! Have any of you ever encountered this when trying to connect an agent to a remote server?
    Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
    Kevin Kho

    Kevin Kho

    1 year ago
    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

    1 year ago
    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.
    Running an actual ping against the server is fine - quick responses, no timeouts.
    Kevin Kho

    Kevin Kho

    1 year ago
    I don’t have any ideas off the top of my head. But let me ask the team if they have any.
    j

    Joe

    1 year ago
    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.
    Kevin Kho

    Kevin Kho

    1 year ago
    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

    1 year ago
    Right? It's always something. 😃 I'll keep digging; will report back if I have a breakthrough.
    Kevin Kho

    Kevin Kho

    1 year ago
    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

    1 year ago
    Yeah, definitely could be. Would you happen to have any documentation or guidance on all ports that need to be open?
    Kevin Kho

    Kevin Kho

    1 year ago
    On server side, you only need to accept 4200. For the agent, HTTP out (port 80). Assuming all of the IP’s are allowed.