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

Can't Open data Connection in passive mode #138

Open
sravan-kumar-sowlab opened this issue Dec 1, 2020 · 16 comments
Open

Can't Open data Connection in passive mode #138

sravan-kumar-sowlab opened this issue Dec 1, 2020 · 16 comments
Labels
enhancement New feature or request

Comments

@sravan-kumar-sowlab
Copy link

sravan-kumar-sowlab commented Dec 1, 2020

// 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

@SamKirkland
Copy link
Owner

Hello,

I've edited your comment to remove your credentials. Keep in mind these issues are public, so please update your ftp login username/password asap.

Because you provided your credentials I went ahead and ran a dry-run test against it. I had no issues using the following config on a github action. I'm going to go ahead and close this issue. Please re-test and if this issue occurs again we can reopen this issue.

on: push
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: **********************************

@sravan-kumar-sowlab
Copy link
Author

Screenshot (35)
Even me too can see the changes but most of the files are not uploading after the error with the attachment above persists.

@SamKirkland
Copy link
Owner

Hmmm it appears to be this issue: patrickjuchli/basic-ftp#133

Currently I do not have support for setting the transfer mode of this action in an attempt to keep the config options as simple as possible.

I can look into adding it but no promises.

@SamKirkland SamKirkland reopened this Dec 2, 2020
@SamKirkland SamKirkland added the enhancement New feature or request label Dec 2, 2020
@cjdeclaro
Copy link

Hello! I am having the same issue as well. Is there a way around this?

on:
  push:
    branches:
      - master
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: my.ftpserver.com
        username: ${{ secrets.ftp_username }}
        password: ${{ secrets.ftp_password }}
        server-dir: /staging/

Thanks a bunch!

@roufy235
Copy link

I am experiencing the same issue.

@narthanaj
Copy link

same issue

@dvlprkrishna
Copy link

Stuck on the same issue.

@Muhammad-Sarfaraz
Copy link

is there any update ? @SamKirkland

@zbigniew-glazer
Copy link

Same issue here. @SamKirkland is there anything I can do to make it work right? Can I modify something on my side?

@RizwanNaasir
Copy link

Nop same issue here

@RizwanNaasir
Copy link

well I just gave another try and it works for some reason.

@StevyMarlino
Copy link

Hello i have the same issue
in the beginning all is working now they show me the issue

@littleomie
Copy link

Same issue here

@therbta
Copy link

therbta commented Jun 13, 2022

Same issue here.
Error: Can't open data connection in passive mode: connect

Any solution?

@RizwanNaasir
Copy link

@therbta Hi, what i think what's wrong on your end is you are trying to sync big project with alot files and folders so what you should do try sync step by step putting your files in gitignore (go first with the files that causing the initial error you can check the logs. ) and keep trying it will work eventually.

@eidens-design
Copy link

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 ... :)

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

No branches or pull requests