FTP-Deploy-Action: Can't Open data Connection in passive mode
// This is my script
on:
push:
branches: main
name: π Deploy website on push
jobs:
web-deploy:
name: π Deploy
runs-on: ubuntu-latest
steps:
- name: π Get latest code
uses: actions/checkout@v2.3.2
- name: π Sync files
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ftp.sowlab.xyz
username: ******************************
password: **********************************
port: 21
protocol: ftp
local-dir: ./
server-dir: ./
// The Error I am getting was : Error: Canβt open data connection in passive mode: connect ETIMEDOUT 162.0.235.24:12065 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14) { errno: βETIMEDOUTβ, code: βETIMEDOUTβ, syscall: βconnectβ, address: β162.0.235.24β, port: 12065 }
Please help me out as soon as possible
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 16 (2 by maintainers)
I was able to get it to work by switching my protocol from ftps to ftp. It may be an issue with my hoster on how they handle ftps, but it works now β¦ π