Skip to content

Ftps protocol is closing on deployment #260

Open
@vedatunlu

Description

@vedatunlu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions