Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Error: Timeout when trying to open data connection to {ip}' #398

Open
orvituhgo opened this issue May 1, 2023 · 12 comments
Open

'Error: Timeout when trying to open data connection to {ip}' #398

orvituhgo opened this issue May 1, 2023 · 12 comments

Comments

@orvituhgo
Copy link

orvituhgo commented May 1, 2023

I'm having trouble in the step to sync files, this error always throws Error: Error: None of the available transfer strategies work. Last error response was 'Error: Timeout when trying to open data connection to {ip}'... Can someone help me? The folders had been created but the files hadn't... I am using version 4.3.4, I already tried at 4.0.0 and 4.3.1

Obs.: I read the old post about this error but none configs said there can resolve this and I have permission to create dot archives the build of React (cli create-react-app) doesn't create any dot archive
Obs2: I just tried with dry-run = true and all archives were uploaded

image

@GazicAditya
Copy link

GazicAditya commented May 15, 2023

I have the same issue here, even though it was running normally 14 hours ago.

@orvituhgo
Copy link
Author

so sad, i'm trying to solve these issues for about two weeks, but I can't yet.. Did you solve it?

@the-homeless-god
Copy link

Same

@ninianh
Copy link

ninianh commented Jun 15, 2023

I was able to fix this issue by enable passive mode following steps:

  • Open powershell
  • C:\Users\Administrator> Set-WebConfiguration "/system.ftpServer/firewallSupport" -PSPath "IIS:" -Value @{lowDataChannelPort="60000";highDataChannelPort="60100";}
  • C:\Users\Administrator> Restart-Service ftpsvc
  • C:\Users\Administrator> New-NetFirewallRule -Name "FTP Server Port"
    -DisplayName "FTP Server Port" -Description 'Allow FTP Server Ports'
    -Profile Any -Direction Inbound
    -Action Allow -Protocol TCP
    -Program Any -LocalAddress Any
    -LocalPort 21,60000-60100

@orvituhgo
Copy link
Author

Hey guys, the error occurs just in Windows, i install ubuntu and run perfectly until now... It were not my first problem with windows, if I can give advice: install linux as dual boot.

@orvituhgo orvituhgo changed the title 'Error: Timeout when trying to open data connection to {ip}' {SOLVED} 'Error: Timeout when trying to open data connection to {ip}' Jun 20, 2023
@the-homeless-god
Copy link

the-homeless-god commented Jul 3, 2023

Hey guys, the error occurs just in Windows, i install ubuntu and run perfectly until now... It were not my first problem with windows, if I can give advice: install linux as dual boot.

I've used it via GitHub Actions (Linux) with deployment to Linux,

I think it's still not resolved, just removed action and used sebastianpopp/ftp-action@releases/v2 instead.

@orvituhgo
Copy link
Author

What was error showed? I had been trouble with API keys because i can't commit dotenv files, so i just able to commit the dotenv file even this is not recommended, i will try use this action, sebastianpopp

@the-homeless-god
Copy link

'Error: Timeout when trying to open data connection to {ip}'...

It was the same error

@orvituhgo orvituhgo changed the title {SOLVED} 'Error: Timeout when trying to open data connection to {ip}' 'Error: Timeout when trying to open data connection to {ip}' Jul 5, 2023
@sabeelh
Copy link

sabeelh commented Mar 14, 2024

which ports should I allow now?

@sabeelh
Copy link

sabeelh commented Mar 14, 2024

which ports should I allow now? @ninianh

@AxonDivisionDev
Copy link

AxonDivisionDev commented Apr 22, 2024

The GitHub Actions IPs listed at https://api.github.com/meta are extensive and seem to rotate. If you're running into issues, whitelisting these IPs on your host should help, just as it did for me, @orvituhgo 🔐. Though there are a lot, you might want to track and filter specific IPs that you actually use to keep things manageable - hope this helps

@mrdonrule
Copy link

The root cause of this problem is that your server has blacklisted the GitAction IP address; removing IP from blacklist or adding the IP to the whitelist will solve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants