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

Error: Error: getaddrinfo ENOTFOUND ftp://**** (control socket) #497

Open
akbar-ehsaan opened this issue Feb 28, 2025 · 0 comments
Open

Comments

@akbar-ehsaan
Copy link

akbar-ehsaan commented Feb 28, 2025

Hi
Here is my yaml file
name: .NET CI/CD

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET
  uses: actions/setup-dotnet@v3
  with:
    dotnet-version: '8.0.x'

- name: Restore dependencies
  run: dotnet restore

- name: Build
  run: dotnet build --no-restore

- name: Test
  run: dotnet test --no-build --verbosity normal

- name: Publish
  run: dotnet publish -c Release -o ./publish

- name: Verify Publish Directory
  run: ls -la ./publish  # This step verifies the contents of the publish directory

- name: Deploy to MonsterASP
  uses: SamKirkland/[email protected]
  with:
    server: 'ftp://46.17.96.247'
    username: '***'
    password: '***'
    local-dir: ./publish/  # Ensure this path matches the publish output

but a I get this error :

Run SamKirkland/[email protected]

🚀 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 🔥🔥🔥 --------------

The server "ftp://46.17.96.247" doesn't seem to exist. Do you have a typo?

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

Error: getaddrinfo ENOTFOUND ftp://46.17.96.247
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'ftp://46.17.96.247'
}
Error: Error: getaddrinfo ENOTFOUND ftp://46.17.96.247 (control socket)
I can connect to the ftp by my laptop

@akbar-ehsaan akbar-ehsaan changed the title Error: Error: getaddrinfo ENOTFOUND ftp://46.17.96.247 (control socket) Error: Error: getaddrinfo ENOTFOUND ftp://**** (control socket) Feb 28, 2025
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

1 participant