Error 550 while removing directory
See original GitHub issueBug Description Iβm using this action to deploy current version of my app to an ftp. So one subdirectory is 1.0.0.1 then *.2 and so on. When the new version is compiled, the old folder does not exist, so this action tries to delete the old folder after removing every file. While removing the files works, the folder throws an error 550.
While this error is annoying I actually want to keep the old files. How do I achieve this or should I create a new issue?
My Action Config
name: Release Build
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
[...]
- name: FTP Deploy
# You may pin to the exact commit or the version.
# uses: SamKirkland/FTP-Deploy-Action@d2724c6194d42ae5d4d042070d51d23cbc6ad83f
uses: SamKirkland/FTP-Deploy-Action@4.1.0
with:
server: example.org
username: ${{secrets.FTPUSER}}
password: ${{secrets.FTPPASS}}
local-dir: /bin/Release/app.publish/
server-dir: Release/
log-level: verbose
My Action Log
[...]
file removed
completed
removing folder "Application Files/2_0_0_23/"
removing folder "Application Files/2_0_0_23/"
> PWD
< 257 "/Release" is current directory.
> CWD Application Files/2_0_0_23/
< 250 CWD command successful.
> EPSV
< 229 Entering Extended Passive Mode (|||56277|)
> LIST -a
< 150 Opening BINARY mode data connection.
Downloading from 185.64.125.11:56277 (No encryption)
list progress for "". Progress: 0 bytes of 5990926 bytes
list progress for "". Progress: 0 bytes of 5990926 bytes
< 226 Transfer complete.
> CDUP
< 250 CDUP command successful.
> RMD Application Files/2_0_0_23/
< 550
> CWD /Release
< 250 CWD command successful.
----------------------------------------------------------------
-------------- π₯π₯π₯ an error occurred π₯π₯π₯ --------------
----------------------------------------------------------------
----------------------------------------------------------------
---------------------- full error below ----------------------
----------------------------------------------------------------
FTPError: 550
at FTPContext._onControlSocketData (D:\a\_actions\SamKirkland\FTP-Deploy-Action\4.1.0\dist\index.js:3945:39)
at Socket.<anonymous> (D:\a\_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
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Cannot Delete Folder, 550 Error Message - SmartFTP Forums
The directory seems to be deleted already, it probably only exists in the cache. Try pressing F5 to refresh the file / folder...
Read more >550 Operation not permitted when deleting file through FTP
To delete a file, you need to have write permissions to the parent directory, not to the file itself.
Read more >550 Permission Denied (or No such file or folder)
A file upload is being attempted but the remote server has denied the needed permission. The 550 error code is a result of...
Read more >550 Remove directory operation failed. - FileZilla Forums
Hi, In FTP i am trying to delete some folders and all folders got permission 777 so its not the permissions that are...
Read more >FTP error -- 550: The directory is not empty - 3Essentials Hosting
FTP error -- 550: The directory is not empty. Article ID: 1092 ; Back to Search ; This error may occur because there...
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
I think I have a similar problem. I have a cache folder, that is stored under a folder with the hash name (
YCiIk-L5RdA4md0bJOcVZ
) in this case:The next upload has a similar structure, but with a different hash. The action correctly detects, that the outdated cache folder should be deleted, but throws a 550 error, when it tries to remove the folder, after all files inside it have been removed.
The folder is empty, but still exists on the server. Deleting it manually works just fine. Might there be a problem with deleting empty folders?
Same error here. We are using FTP-Deploy-Action with Gatsby. It seems that it throws an error when trying to access (or delete?) an empty folder. Would be nice to have this fixed as right now we canβt use automatic deployment because of this bugβ¦