FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

ECONNRESET (control socket) in internal/stream_base_commons.js:201:27

Open phyle opened this issue 4 years ago • 7 comments
trafficstars

Bug Description Until May 12, I was able to successfully use FTP-Deploy daily for a personal site and it worked great! (Thanks!) Suddenly, I now always receive ECONNRESET errors every time the action runs. The FTP connection with the same credentials works well with FileZilla and other local clients. I know the Actions yml file, the related Secrets (I even reset them), and the the version 4.0.0 of FTP-Deploy did not change so it's probably an issue with our hosting (GoDaddy). I added verbose logging but it doesn't tell much more... I've read somewhere that others fixed similar tools having this error by setting keep-alive=false, but I don't think we have this option for FTP-Deploy. Can you please hint me what could be the cause and/or how to fix that? Thanks.

My Action Config


on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  workflow_dispatch:

jobs:
  web-deploy:
    name: 🎉 Deploy
    runs-on: ubuntu-latest
    timeout-minutes: 15

    steps:
      - name: 🚚 Get latest code
        uses: actions/checkout@v2
          
#[...] build hugo site

      - name: 📂 Upload files
        uses: SamKirkland/[email protected]
        with:
          server: <REDACTED>
          username: ${{ secrets.ftpuser }}
          password: ${{ secrets.ftppassword }}
          local-dir: <REDACTED>
          server-dir: <REDACTED>
          protocol: ftps
          log-level: verbose

My Action Log


Run SamKirkland/[email protected]
----------------------------------------------------------------
🚀 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 <REDACTED>/.ftp-deploy-sync-state.json
Local state created
Connected to ***:21 (No encryption)

----------------------------------------------------------------
---------------  🔥🔥🔥 A error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  Full Error below  ----------------------
Error: read ECONNRESET (control socket)
    at TCP.onStreamRead (internal/stream_base_commons.js:201:27) {
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  syscall: 'read'
}
Error: Error: read ECONNRESET (control socket)

phyle avatar May 16 '21 23:05 phyle

----------------------------------------------------------------
🚀 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

----------------------------------------------------------------
---------------  🔥🔥🔥 A error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  Full Error below  ----------------------
Error: Timeout (control socket)
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3793:58)
    at Object.onceWrapper (events.js:299:28)
    at Socket.emit (events.js:210:5)
    at Socket._onTimeout (net.js:469:8)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
Error: Error: Timeout (control socket)

I dont know if its the same error but i also get that

meshackjr avatar May 28 '21 09:05 meshackjr

Error: read ECONNRESET (data socket) at TCP.onStreamRead (internal/stream_base_commons.js:209:20) { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }

Rubon72 avatar Jun 15 '22 14:06 Rubon72

Anyone ever got this to work? I'm not using this action but ftp-deploy directly, but I'm encountering the same issue. Several uploads will go through, but then after some time it will fail with ECONNRESET.

Connum avatar Jul 06 '23 10:07 Connum