Open sherz12r opened 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
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
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)
i saw this is updating files but not complete please see image it giving error after uploading many folders also i have 21 port active and i am accessing my account using filezilla with port 21 also
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!
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!
Does anyone get a solution?
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.
Check your Firewall, Creating Problems in Almalinux. Same Time-out error. Once disable the Firewall it Works
Facing same issue!
name: Deploy Project on push on: push: branches:
name: d uses: SamKirkland/FTP-Deploy-Action@4.0.0 with: server: ${{ secrets.SERVER }} username: ${{ secrets.USER_NAME }} password: ${{ secrets.SERVER_PASS }} server-dir: ${{ secrets.SERVER_PATH }}/
Error: None of the available transfer strategies work. at Client.prepareTransfer (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3308:19) at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Client._uploadFromStream (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2997:13)
at async Client._uploadLocalFile (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2983:20)
Error: None of the available transfer strategies work.
at Client.prepareTransfer (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3308:19)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Client._uploadFromStream (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2997:13)
at async Client._uploadLocalFile (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2983:20)
Time spent hashing: 5.2 seconds Time spent connecting to server: 213 milliseconds Time spent deploying: 16 minutes 37.1 seconds (179 kB/second)