question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Timeout (control socket) in Sync files

See original GitHub issue

my deploy is giving an error in the Sync Files part Error: Error: Timeout (control socket)

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: 📂 Sync files
      uses: SamKirkland/FTP-Deploy-Action@4.2.0
      with:
        server: ${{ secrets.ftp_host }}
        username: ${{ secrets.ftp_user }}
        password: ${{ secrets.ftp_password }}
        server-dir: public_html/

  notify:
    name: Discord Notification
    runs-on: ubuntu-latest
    steps:
      - name: Discord Commits
        uses: Sniddl/discord-commits@v1.3
        with:
          webhook: ${{ secrets.discord_webhook }}
          message: "Novo commit em **{{ github.context.payload.repository.owner.name }}/{{ github.context.payload.repository.name}}**.\nLink: {{ github.context.payload.compare }}"
          embed: '{ "color": 201042, "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://riftmaker.com/resources/images/logos/logo-initials-background.png"} }'
          last-commit-only: false

My Action Log

Run SamKirkland/FTP-Deploy-Action@4.2.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
Failed to connect, are you sure your server works via FTP or FTPS? Users sometimes get this error when the server only supports SFTP.

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------

Error: Timeout (control socket)
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4778: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)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
arielbonardocommented, Jan 5, 2022

Hi, after the “with:” add 2 lines, so that it retries the connection with the FTP Server and makes 3 retries

timeout_minutes : 1 max_attempts : 3

0reactions
SamKirklandcommented, Mar 5, 2022

Duplicate of #106 No real fix for this besides using non encrypted ftp. As a router between the host and destination is killing the connection.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FTPS server giving Error: Timeout (control socket)
I am trying to connect to ftps server using node js. I am using "https://www.npmjs.com/package/basic-ftp" module. but its giving me ...
Read more >
Common FTP errors and Socket Error messages
This article provides information about common errors when using FTP with SyncBack V3 freeware or SyncBackSE V4.0.7 and earlier.
Read more >
The Connection Has Timed Out How To Fix It Tutorial - YouTube
A server connection timeout error does little to tell you what went wrong or why the error happened: it just identifies that the...
Read more >
Common Timeouts effecting Web Services, HTTP and SOAP ...
Problem. IOException,SocketTimeoutException results from Intermediary Server ... Client Timers, connectionIdleTimeout and syncTimeout:.
Read more >
TCP/IP connectivity issues troubleshooting - Windows Client
BizTalk application timeout errors; Remote Desktop Protocol (RDP) failures; File share access failures; General connectivity. When you suspect ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found