SamKirkland / FTP-Deploy-Action

Deploys a GitHub project to a FTP server using GitHub actions
MIT License
3.78k stars 372 forks source link

Error: None of the available transfer strategies work. #469

Open sherz12r opened 3 months ago

sherz12r commented 3 months ago

name: Deploy Project on push on: push: branches:

Trainax commented 3 months ago

Try updating actions/checkout to v4 and SamKirkland/FTP-Deploy-Action to v4.3.5 and then try running the action again

sherz12r commented 3 months ago

thanks for replying updated then i have follwoing Error: None of the available transfer strategies work. Last error response was 'Error: Timeout when trying to open data connection to :60185'. at Client.prepareTransfer (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:4811:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Client._uploadFromStream (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:4496:13) at async Client._uploadLocalFile (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:4482:20) Error: Error: None of the available transfer strategies work. Last error response was 'Error: Timeout when trying to open data connection to :601

Trainax commented 3 months ago

Try checking if your server needs a special port for FTP. From your original comment I assume you are using FTP on port 21 (default values), maybe your host uses a different port for FTP or only accepts FTPS connections (which need to be set in the action YML file)

sherz12r commented 3 months ago

i saw this is updating files but not complete please see image it giving error after uploading many folders gitCapture also i have 21 port active and i am accessing my account using filezilla with port 21 also

espenjohannessen commented 3 months ago

I'm having the same issue! Any ideas how to solve this? FTP transfers works fine through other FTP clients, but I'm getting the same errer as above when running the GitHub action!

espenjohannessen commented 3 months ago

Just as I posted this I realized that the issue was related to passive FTP mode and adding the passive ports (49152-65534) to the server firewall solved the issue!

RayhanulSumon commented 3 months ago

Does anyone get a solution?

Oscar-T24 commented 2 months ago

I get the same error. Perhaps FTP-Deploy-Action assumes your server is running in passive mode ? This is obviously not the case on my server and I don't understand why Github action is using "high" ports like 601 while I expect a specific port. Additionaly my router has not forwarded these ports to my server hence why I get timeouts.

Any help will be greatly appreciated.

kompasstech commented 2 weeks ago

Check your Firewall, Creating Problems in Almalinux. Same Time-out error. Once disable the Firewall it Works

mhimon commented 2 weeks ago

Facing same issue!