FTP-Deploy-Action
FTP-Deploy-Action copied to clipboard
Close FTP connection immediately after the successful upload?
Bug Description Is it possible that the GitHub Runner does not close the FTP connection immediately after the successful upload?
I have a strange error. Whenever I trigger my pipeline several times within a short period of time (3-5 minutes each time), it just fails at some point and interrupts the process.
*Note: dangerous-clean-slate is necessary for me, but otherwise I cannot overwrite existing files on the server.
My Config
name: 🚀 Deploy website
# workflow triggers
on:
push:
branches: [develop]
pull_request:
branches: [develop]
repository_dispatch:
types: [publish_page]
jobs:
pre-job:
name: Pre-job
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- name: ♻️ Cancel redundant workflows
run: echo "✓ Cancel redundant workflows finished"
web-deploy:
name: 🎉 Deploy site triggered by ${{ github.event_name }}
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: ⚙️ Use Node.js 14
uses: actions/setup-node@v2-beta
with:
node-version: 14.x
- name: 🔨 Build Project
run: |
yarn install
yarn generate
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftps
port: 21
local-dir: dist/
server-dir: stage/
dangerous-clean-slate: true
My Action Log
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.1.0/dist/index.js:3945:39)
at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.1.0/dist/index.js:3786: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
}