Sync Files Error: FTPError: 550 Can't change directory to Folder/: No such file or directory
See original GitHub issueMy Issue I recently tried to change my folder naming convention from camel to standard lowercase. This caused many issues but now I’m down to only one. Any push I do, it tries to add all the new files (with the folders with lowercase). this is done with no issue. But it then tried to delete the old files and folders with the camel case and either can’t find them or says I don’t have permission. I even tried to add back the old files with the camel case for it to delete them, but it still comes up with the error.
My Action Config
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: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.1.0
with:
server: ${{ secrets.ftp_ftpname }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
server-dir: /public_html/
My Action Log
Run SamKirkland/FTP-Deploy-Action@4.1.0
----------------------------------------------------------------
🚀 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
----------------------------------------------------------------
Last published on 📅 Sunday, August 1, 2021, 4:26 PM
----------------------------------------------------------------
Local Files: 116
Server Files: 116
----------------------------------------------------------------
Calculating differences between client & server
----------------------------------------------------------------
⚖️ File content is the same, doing nothing: css/style.css
📁 Create: fineart
📁 Delete: FineArt
📁 Create: fineart/css
📁 Delete: FineArt/css
➕ Upload: fineart/css/styles.css
🗑️ Delete: FineArt/css/styles.css
... ... ...
----------------------------------------------------------------
Making changes to 160 files/folders to sync server state
Uploading: 10.6 MB -- Deleting: 4.16 MB -- Replacing: 1.58 kB
----------------------------------------------------------------
creating folder "fineart/"
creating folder "fineart/css/"
creating folder "fineart/scripts/"
creating folder "finecode/"
creating folder "finecode/css/"
... ... ...
replacing "index.html"
removing "FineArt/css/styles.css"
File not found or you don't have access to the file - skipping...
removing "FineArt/index.html"
File not found or you don't have access to the file - skipping...
removing "FineArt/README.md"
File not found or you don't have access to the file - skipping...
... ... ...
File not found or you don't have access to the file - skipping...
removing folder "FineArt/"
----------------------------------------------------------------
-------------- 🔥🔥🔥 an error occurred 🔥🔥🔥 --------------
----------------------------------------------------------------
----------------------------------------------------------------
---------------------- full error below ----------------------
----------------------------------------------------------------
FTPError: 550 Can't change directory to FineArt/: No such file or directory
at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.1.0/dist/index.js:3945:39)
at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.1.0/dist/index.js:3786: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: 550
}
Error: FTPError: 550 Can't change directory to FineArt/: No such file or directory
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
FTP 550 No such file or directory- Here's the quick fix - Bobcares
1. Incorrect path. Usually, “FTP 550 no such file or directory” error happens when the customers try to upload files from the wrong...
Read more >pureftpd - FTP: 550 Can't change directory to ...: No such file or ...
This means that /ftphome will be the root for the user where he cannot break out. And access to the directory /usr inside...
Read more >FTP 550 No such file or directory | - Linux Tutorials and Guides
In this tutorial will discuss one FTP error called 'FTP 550 No such file or directory'. This means file or folder does not...
Read more >FTP Error - 550 Failed to change directory - Boomi Community
This error means the specified remote directory does not exist. ... FTP files: Error from FTP Server, 550 Failed to change directory.
Read more >How to Fix Failed to Retrieve Directory Listing Error in FileZilla ...
Your browser can't play this video. Learn more. Switch camera.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We had the same problem as it fails when deleting a “Folder” which was removed from the triggered branch pushed. The temporary fix was to remove the folders path that were removed at the latest target branch from the
.ftp-deploy-sync-state.json
file located at the target FTP server.I’m having the same issue on 4.3.3, deleted the JSON file and synced everything again.