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

Cannot connect to working FTP server #274

Open
coldfeudal opened this issue Feb 21, 2022 · 13 comments
Open

Cannot connect to working FTP server #274

coldfeudal opened this issue Feb 21, 2022 · 13 comments

Comments

@coldfeudal
Copy link

coldfeudal commented Feb 21, 2022

Tried the action myself and it threw error on the first try. Configured the action according to multiple guides and got the error. Password is set correctly in same repo settings. Was able to connect from ftp client with same credentials. Any ftp connection ips are not blacklisted on server

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
    
    - name: Sync files
      uses: SamKirkland/FTP-Deploy-Action@4.3.0
      with:
        server: murzlkin.myjino.ru
        username: murzlkin
        password: ${{ secrets.FTP_PASSWORD }}
        server-dir: domains/pbc.murzlkin.myjino.ru/
        dry-run: true

image

Run SamKirkland/FTP-Deploy-Action@4.3.0
  with:
    server: murzlkin.myjino.ru
    username: murzlkin
    password: ***
    server-dir: domains/pbc.murzlkin.myjino.ru/
----------------------------------------------------------------
🚀 Thanks for using ftp-deploy. Let's deploy some stuff!   
----------------------------------------------------------------
If you found this project helpful, please support it
by giving it a ⭐ on Github --> https://github.com/SamKirkland/FTP-Deploy-Action
or add a badge 🏷️ to your projects readme --> https://github.com/SamKirkland/FTP-Deploy-Action#badge
Failed to connect, are you sure your server works via FTP or FTPS? Users sometimes get this error when the server only supports SFTP.

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------

FTPError: 530 Login incorrect.
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.0/dist/index.js:4774:39)
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.0/dist/index.js:4615:44)
    at Socket.emit (events.js:[2](https://github.com/coldfeudal/pbc/runs/5277831301?check_suite_focus=true#step:3:2)10:5)
    at addChunk (_stream_readable.js:[3](https://github.com/coldfeudal/pbc/runs/5277831301?check_suite_focus=true#step:3:3)09:12)
    at readableAddChunk (_stream_readable.js:286:13)
    at Socket.Readable.push (_stream_readable.js:22[4](https://github.com/coldfeudal/pbc/runs/5277831301?check_suite_focus=true#step:3:4):10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23) {
  name: 'FTPError',
  code: [5](https://github.com/coldfeudal/pbc/runs/5277831301?check_suite_focus=true#step:3:5)[30](https://github.com/coldfeudal/pbc/runs/5277831301?check_suite_focus=true#step:3:30)
}
Error: FTPError: 530 Login incorrect.
@rafal-c
Copy link

rafal-c commented Mar 4, 2022

Same problem here (it's been happening for the last ~6 months). The credentials I'm passing are fine (works in FileZilla and in command line ftp) but when deploying with this script I always get FTPError: 530 Login incorrect. Both login and password only contain alphanumerical characters.

@iyinusa
Copy link

iyinusa commented Jul 1, 2022

I'm also experiencing the same, I even tried to whitelist GitHub IP in WHM/cPanel hoping it's my firewall blocking it. But it still does not work.

Please has anyone been able to get it solved?

@AJerm
Copy link

AJerm commented Jul 10, 2022

I had the same issue, it was cphulk blocking the github's action IP addresses. Disabling cphulk fixed the issue.

You could try whitelisting the github IP addresses, but I'm not sure how often they get rotated

https://api.github.com/meta

@iyinusa
Copy link

iyinusa commented Jul 26, 2022

The IP block whitelisting is not effective, the cphulk works but could make the server vulnerable. Just trying to see if there can be a better option.

@mahdikhaligh
Copy link

how fix this error ?
i need help...

@Brecht272727
Copy link

Same error here. I am using the server IP address instead of ftp.xx.xx but still login incorrect error message. Anyone who found a solution?

@YunosukeYoshino
Copy link

I have the same error.

@fredygerman
Copy link

I am having the same error

@Alirezaaraby
Copy link

i have the same error

@IcyFoxe
Copy link

IcyFoxe commented Jun 9, 2023

Maybe this will help someone (I was getting this exact error message):
Check if you don't have some permission restrictions on your server host.
In my case FTP could be accessed only from EU countries. Once I turned that off, everything started to work correctly.

@tomesfilip
Copy link

tomesfilip commented Feb 25, 2024

Maybe this will help someone (I was getting this exact error message): Check if you don't have some permission restrictions on your server host. In my case FTP could be accessed only from EU countries. Once I turned that off, everything started to work correctly.

Thank you very much! I've looked into my hosting provider settings and added US to the allowed countries for FTP server access. It worked perfectly.

@jadchahine111
Copy link

jadchahine111 commented Feb 5, 2025

I'm having the same error. I tried hardcoding the password instead of using github secrets. It worked. Still an issue to do this approach since it's not secure though

@iyinusa
Copy link

iyinusa commented Feb 6, 2025

I'm having the same error. I tried hardcoding the password instead of using github secrets. It worked. Still an issue to do this approach since it's not secure though

You need to check your server, might be rejecting connections and you might need to whitelist GitHub IPs on your server to allow acknowledgement to pass through.

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

No branches or pull requests