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

Ftps protocol is closing on deployment #260

Open
vedatunlu opened this issue Jan 25, 2022 · 4 comments
Open

Ftps protocol is closing on deployment #260

vedatunlu opened this issue Jan 25, 2022 · 4 comments

Comments

@vedatunlu
Copy link

Bug Description

Hi,
When I was trying to deploy my project to server, I kept getting this error all the time. The problem have stopped when I turned protocol to ftp.
Here is my config and logs.

My Action Config

on:
  push:
    branches:
      - development
      - stage
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.2.0
        with:
          server: ${{ secrets.ftp_server }}
          username: ${{ secrets.ftp_username }}
          password: ${{ secrets.ftp_password }}
          server-dir: ${{ secrets.ftp_stage_dir }}
          protocol: ftps
          log-level: verbose
          exclude: | 
            .git/**
            .git**
            .git*/**
            **/.git*
            **/.git*/**
            ./vendor
            ./node_modules
            storage/app/public/**
            public/storage/**
            .env
            .well-known
            cgi-bin
            public/error_log
            public/yandex**

My Action Log

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

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

FTPError: 425 Unable to build data connection: Operation not permitted
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4744:39)
    at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4585:44)
    at TLSSocket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:286:13)
    at TLSSocket.Readable.push (_stream_readable.js:224:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:182:23) {
  name: 'FTPError',
  code: 425
}
Error: FTPError: 425 Unable to build data connection: Operation not permitted
   # you may want enable verbose logging with   log-level: verbose
@jeffcGit
Copy link

Remove this line might help server-dir: ${{ secrets.ftp_stage_dir }}

@emeth-
Copy link

emeth- commented Feb 3, 2022

Ditto - same error, FTPS, occurs after uploading around 80% of my files. Curiously, it reliably occurs at the same spot everytime, and if I delete some files the location it fails at shifts (again staying around 80%, and still failing everytime at that same new spot).


uploading "example.php"
400 level error from server when performing action - retrying...
FTPError: 425 Unable to build data connection: Operation not permitted
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4744:39)
    at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4585:44)
    at TLSSocket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:286:13)
    at TLSSocket.Readable.push (_stream_readable.js:224:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:182:23) {
  name: 'FTPError',
  code: 425
}

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

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

FTPError: 425 Unable to build data connection: Operation not permitted
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4744:39)
    at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4585:44)
    at TLSSocket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:286:13)
    at TLSSocket.Readable.push (_stream_readable.js:224:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:182:23) {
  name: 'FTPError',
  code: 425
}
Error: FTPError: 425 Unable to build data connection: Operation not permitted

@sajath-45
Copy link

any fix for this?

@gregorsart
Copy link

gregorsart commented Jul 14, 2024

I used the latest versions:

uses: actions/checkout@v4
uses: SamKirkland/FTP-Deploy-Action@v4.3.5

Now I get at least a different error.
By the way, if you update the vesion, do not fotget the v in front of 4.3.5


PS: After about 5 not successful deployments via github actions, I am back at this error. : /

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

5 participants