FTP-Deploy-Action: FTPError: 553 Can't open that file: No such file or directory
Bug Description I’m getting error 553 when updating the repository.
In the first synchronization the action worked perfectly, but when updating any file the second action returns the error.
My Action Config
on:
push:
branches:
- main
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: 🚚 Install Composer Dependencies SITE
working-directory: ./
run: composer install --prefer-dist
- name: 🚚 Install Composer Dependencies ADM
working-directory: ./public/adm
run: composer install --prefer-dist
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.2.0
with:
server: ${{ secrets.ftp_host}}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
exclude: |
.git/**
.git**
.git*/**
**/.git*
**/.git*/**
**/node_modules/**
fileToExclude.txt
My Action Log
Making changes to 2346 files/folders to sync server state
Uploading: 0 B -- Deleting: 16.2 MB -- Replacing: 434 kB
----------------------------------------------------------------
replacing "app/Config/App.php"
replacing "app/Config/Constants.php"
replacing "app/Views/client/templates/mdb/components/navbar.html"
replacing "app/Views/client/templates/mdb/components/post.html"
replacing "public/adm/composer.lock"
replacing "public/adm/vendor/autoload.php"
----------------------------------------------------------------
-------------- 🔥🔥🔥 an error occurred 🔥🔥🔥 --------------
----------------------------------------------------------------
----------------------------------------------------------------
---------------------- full error below ----------------------
----------------------------------------------------------------
FTPError: 553 Can't open that file: No such file or directory
at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4744:39)
at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4585:44)
at Socket.emit (events.js:210:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:286:13)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:182:23) {
name: 'FTPError',
code: 553
}
Error: FTPError: 553 Can't open that file: No such file or directory
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16
Same issue, my not-so-ideal solution was to delete the
.ftp-deploy-sync-state.json
off the FTP server. The downside is uploading everything fresh again.Hi,
I got the same error only when I deploy straight to public_html folder in my webhosting. When I put it inside a folder (ie: public_html/mywebsite) there is no problem.
Is there any way or config that allows me to do that.
thank you
that seems to be the problem.
If you remove a directory on the host or file this error occurs.
I deleted the entire directory and the new puhs worked fine.
I have a similar issue:
Solution was also to delete
.ftp-deploy-sync-state.json
, but then it takes almost 6h to upload everything again which is a tad bit too long…