FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

Cpanel CI/CD: Error: getaddrinfo ENOTFOUND ftp.*******.org (control socket)

Open defidev0508 opened this issue 2 years ago • 8 comments

Bug Description I want to implement CI/CD from github repsitory to CPanel. But I got this error as below.

My Action Config

on: push
name: Publish Website
jobs:
  web-deploy:
    name: Building files
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@main

      - name: Use Node.js 16.x
        uses: actions/setup-node@v1
        with:
          node-version: "16.x"

      - name: Build Project
        run: |
          npm install
          npm run build --if-present

      - name: List output files
        run: ls

      - name: sync files
        uses: SamKirkland/[email protected]
        with:
          server: ftp.***********.org
          username: ${{ secrets.USERNAME }}
          password: ${{ secrets.PASSWORD }}
          protocol: ftps
          local-dir: build/
          port: 2083

My Action Log

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------
The server "ftp.**********.org" doesn't seem to exist. Do you have a typo?
----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------
Error: getaddrinfo ENOTFOUND ftp.***********.org (control socket)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:[26](https://github.com/*****/***********/runs/6895339722?check_suite_focus=true#step:6:27)) {
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'ftp.*********.org'
}
Error: Error: getaddrinfo ENOTFOUND ftp.***********.org (control socket)

defidev0508 avatar Jun 15 '22 08:06 defidev0508

up, i have same error :')

jefripunza avatar Jul 28 '22 00:07 jefripunza

same here..!

kakadlec avatar Aug 15 '22 17:08 kakadlec

I got the the same error! Any fix?

geetharao avatar Oct 10 '22 14:10 geetharao

On the FTP server, replace ftp.test.com with the server IP address.

sadiqueamt avatar Nov 07 '22 13:11 sadiqueamt

Yes, using ip didn't throw the above error but got

Error: Server sent FIN packet unexpectedly, closing connection.

On the FTP server, replace ftp.test.com with the server IP address.

paraslamsong avatar Dec 12 '22 18:12 paraslamsong

On the FTP server, replace ftp.test.com with the server IP address.

Today I had the same issue. For me, changing the server with the IP worked perfectly.

maikol-solis avatar Mar 16 '23 21:03 maikol-solis

Using IP address in case of FTP server worked for me, Thanks

ruck-45 avatar Jan 07 '24 12:01 ruck-45