FTP-Deploy-Action: Error: Client is closed / Closing reason: Error: read ECONNRESET (data socket)
Bug Description
First time using the action, ~so not sure if this is a regression~ confirmed new in 4.0.0, works in 3.1.1 (see comment below)
Followed README and action appears to work (due to #123) but log inspection shows otherwise.
Opening this issue specifically for the Error: Client is closed / Closing reason: Error: read ECONNRESET (data socket) error (see log below).
My Action Config
ftp-share:
name: Upload assets to FTP server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
fetch-depth: 2
- name: Update files on FTP server
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ftp.<REDACTED IIS FTP SITE>.com
username: <REDACTED>
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftps
security: strict
log-level: verbose
My Action Log
----------------------------------------------------------------
π 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
Creating local state at ./.ftp-deploy-sync-state.json
Local state created
Connected to 72.203.251.54:21 (No encryption)
< 220 Microsoft FTP Service
> AUTH TLS
< 234 AUTH command ok. Expecting TLS Negotiation.
Control socket is using: TLSv1.2
Login security: TLSv1.2
> USER <REDACTED>
< 331 Password required
> PASS ###
< 230 User logged in.
> TYPE I
< 200 Type set to I.
> STRU F
< 200 STRU F ok.
> OPTS UTF8 ON
< 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> OPTS MLST type;size;modify;unique;unix.mode;unix.owner;unix.group;unix.ownername;unix.groupname;
< 501 Option not supported.
> PBSZ 0
< 200 PBSZ command successful.
> PROT P
< 200 PROT command successful.
changing dir to ./
> MKD .
< 550 Access is denied.
> CWD .
< 250 CWD command successful.
dir changed
Trying to find optimal transfer strategy...
> EPSV
< 229 Entering Extended Passive Mode (|||5844|)
Optimal transfer strategy found.
> RETR .ftp-deploy-sync-state.json
----------------------------------------------------------------
No file exists on the server "./.ftp-deploy-sync-state.json" - this much be your first publish! π
The first publish will take a while... but once the initial sync is done only differences are published!
If you get this message and its NOT your first publish, something is wrong.
----------------------------------------------------------------
Local Files: 973
Server Files: 973
----------------------------------------------------------------
Calculating differences between client & server
----------------------------------------------------------------
β Upload: favicon.ico
[SNIP]
----------------------------------------------------------------
Making changes to 973 files to sync server state
Uploading: 432 MB -- Deleting: 0 B -- Replacing: 0 B
----------------------------------------------------------------
creating folder "gmap_files/"
changing dir to gmap_files
Error: Client is closed
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3704:29
at new Promise (<anonymous>)
at FTPContext.handle (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3684:16)
at Client.sendIgnoringError (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2745:25)
at Client._openDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3251:20)
at Client.ensureDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3242:24)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1962:121
at Generator.next (<anonymous>)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1823:71
at new Promise (<anonymous>)
Closing reason: Error: read ECONNRESET (data socket)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27) ***
code: 'ECONNRESET'
***
Error: Client is closed
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3704:29
at new Promise (<anonymous>)
at FTPContext.handle (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3684:16)
at Client.sendIgnoringError (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2745:25)
at Client._openDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3251:20)
at Client.ensureDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3242:24)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1962:121
at Generator.next (<anonymous>)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1823:71
at new Promise (<anonymous>)
Closing reason: Error: read ECONNRESET (data socket)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27) ***
code: 'ECONNRESET'
***
----------------------------------------------------------------
Time spent hashing: 1.7 seconds
Time spent connecting to server: 902 milliseconds
Time spent deploying: 3 milliseconds (156 GB/second)
- changing dirs: 126 milliseconds
- logging: 28 milliseconds
----------------------------------------------------------------
Total time: 3 seconds
----------------------------------------------------------------
IIS Log
2020-12-31 20:11:38 52.184.187.148 - <REDACTED> 21 ControlChannelOpened - - 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:38 52.184.187.148 - <REDACTED> 21 AUTH TLS 234 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:38 52.184.187.148 - <REDACTED> 21 USER <REDACTED> 331 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:38 52.184.187.148 <REDACTED> <REDACTED> 21 PASS *** 230 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 /
2020-12-31 20:11:38 52.184.187.148 <REDACTED> <REDACTED> 21 TYPE I 200 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:38 52.184.187.148 <REDACTED> <REDACTED> 21 STRU F 200 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:38 52.184.187.148 <REDACTED> <REDACTED> 21 OPTS UTF8+ON 200 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 OPTS MLST+type;size;modify;unique;unix.mode;unix.owner;unix.group;unix.ownername;unix.groupname; 501 87 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 PBSZ 0 200 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 PROT P 200 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 MKD . 550 5 5 a1147643-fb62-4d6f-a4ce-97843f640354 /
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 CWD . 250 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 /
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 EPSV - 229 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 5822 DataChannelOpened - - 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 5822 DataChannelClosed - - 2 3 a1147643-fb62-4d6f-a4ce-97843f640354 -
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 RETR .ftp-deploy-sync-state.json 550 2 3 a1147643-fb62-4d6f-a4ce-97843f640354 /.ftp-deploy-sync-state.json
2020-12-31 20:11:39 52.184.187.148 <REDACTED> <REDACTED> 21 ControlChannelClosed - - 0 0 a1147643-fb62-4d6f-a4ce-97843f640354 -
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 6
- Comments: 15
Commits related to this issue
- π #5: Fix for FTP-Deployment - based on an open issue in FTP-Deploy-Action: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 - empty file should help — committed to OpenFoxes/vim-cheatsheet-interactive by Hirschfuchs 2 years ago
- π #5: Fix for FTP-Deployment - based on an open issue in FTP-Deploy-Action: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 - empty file should help — committed to OpenFoxes/vim-cheatsheet-interactive by Hirschfuchs 2 years ago
- π #5: Fix for FTP-Deployment - based on an open issue in FTP-Deploy-Action: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 - empty file should help — committed to OpenFoxes/vim-cheatsheet-interactive by Hirschfuchs 2 years ago
- π #5: Fix for FTP-Deployment - based on an open issue in FTP-Deploy-Action: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 - empty file should help — committed to OpenFoxes/vim-cheatsheet-interactive by Hirschfuchs 2 years ago
- π #5: Fix for FTP-Deployment - based on an open issue in FTP-Deploy-Action: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 - empty file should help — committed to OpenFoxes/vim-cheatsheet-interactive by Hirschfuchs 2 years ago
- Apply workaround for ECONNRESET while deploying website via FTP See: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 — committed to tinylog-org/website by pmwmedia 2 years ago
- Apply workaround for ECONNRESET while deploying website via FTP See: https://github.com/SamKirkland/FTP-Deploy-Action/issues/153 — committed to tinylog-org/website by pmwmedia 2 years ago
The workaround for adding an empty sync state json file seems to work. This is the second time this workaround has been helpful.
I have also ran into this problem for the initial deployment and adding the empty
.ftp-deploy-sync-state.jsonfile workaround did the trick!Always coming back to this issue when after months I need to create a new deployment action and already forgotten that I need that empty file. Any updates on a fix?
same solution for me, i just create an empty β.ftp-deploy-sync-state.jsonβ file on my repo and the problem fixed.
https://github.com/SamKirkland/FTP-Deploy-Action/issues/153#issuecomment-753198797 is working after hours. Only cause i thought ftpes:// was a mistake so i replaced it with ftps://
God damn iβm stupid.