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)

Most upvoted comments

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 … πŸ˜ƒ