problem in ftp- Could not read from socket: ECONNABORTED - Connection aborted

Discussion in 'Installation/Configuration' started by shahad, Jul 27, 2020.

  1. shahad

    shahad New Member

    Hi

    I use "Ubuntu 18.04.4 LTS (Bionic Beaver)) ISPConfig 3.1.15p3"
    but I have a problem in ftp connect, here is the complete log from FileZilla:

    Code:
    Status:          Resolving address of server.?????.com[/B]
    [B]Status:          Connecting to ???.??.??.???:21...
    Status:          Connection established, waiting for welcome message...
    Status:          Initializing TLS...
    Status:          Verifying certificate...
    Status:          TLS connection established.
    Command:    USER admin_****
    Error:            Could not read from socket: ECONNRESET - Connection reset by peer
    Error:            Could not connect to server
    Status:          Waiting to retry...
    Status:          Resolving address of server.?????.com
    Status:          Connecting to ???.??.??.???:21...
    Status:          Connection established, waiting for welcome message...
    Response:     220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response:     220-You are user number 1 of 50 allowed.
    Response:     220-Local time is now 22:01. Server port: 21.
    Response:     220-This is a private system - No anonymous login
    Response:     220-IPv6 connections are also welcome on this server.
    Response:     220 You will be disconnected after 15 minutes of inactivity.
    Command:    AUTH TLS
    Response:     234 AUTH TLS OK.
    Status:          Initializing TLS...
    Status:          Verifying certificate...
    Status:          TLS connection established.
    Command:    USER admin_****
    Error:            GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
    Status:          Server did not properly shut down TLS connection
    Error:            Could not read from socket: ECONNABORTED - Connection aborted
    Error:            Could not connect to server


    I get the same error in active and passive FTP. I can connect the server only when I use (plain FTP) encryption.

    any help please?
     
    Last edited: Jul 27, 2020
  2. shahad

    shahad New Member

    Code:
    https://www.faqforge.com/linux/controlpanels/ispconfig3/how-to-set-the-passiveportrange-in-pure-ftpd-on-denian-and-ubuntu-linux/
    I tried to do the steps in this tutorial:
    but I don't know the external IP, Or how can I get it.
     
  3. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    the external ip is the public ip of the server/domain name you're trying to connect to. or a firewall/load-balancer in front of that server.
    ping or nslookup of the fqdn should give you the public ip address.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to use a different FTP client, might be that you just ran into an incompatibility between latest FileZilla version and the pure-ftpd version that ships with Ubuntu 18.04.
     
  5. shahad

    shahad New Member

    thank you for your reply

    I used FileZilla before with the same server and it worked fine (the control panel was VestaCP), but when I switched to Ispconfig 3 as a control panel I get this problem
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    As mentioned above, your issue is most likely not related to ISPConfig, its an issue between a specific FileZilla version in conjunction with a specific pure-ftpd version. So if you want to find a solution for your issue, then please do what I suggested.
     
  7. shahad

    shahad New Member

    problem is solved. Thank you Mr. Till
    I use "Transmit" and it works fine.
    Any suggestions about the best FTP client for macOS ?
     
  8. vinodbathi

    vinodbathi New Member

    Hi Shahad,
    what does "Transmit" means As i do face the same issue.
    newly configured ispconfig in ubuntu server.
    getting below error while connecting to ftp.

    Code:
    Error:    GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
    Status:    Server did not properly shut down TLS connection
    Error:    Could not read from socket: ECONNABORTED - Connection aborted
    Error:    Could not connect to server
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    As mentioned above, the issue is caused by specific FileZilla versions in conjunction with some older pure-ftpd versions. use a different FTP client like the original poster did, he switched from FileZilla to Transmit FTP client. But you can use any other FTP client as well like winSCP in FTP mode or FireFTP or others.
     
  10. vinodbathi

    vinodbathi New Member

    when i try to connect with winscp, i am getting below error.
    Code:
    Server sent passive reply with unroutable address <internal ip>, using host address instead.
    Timeout detected. (data connection)
    Could not retrieve directory listing
    Error listing directory '/'.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

  12. florian030

    florian030 Well-Known Member HowtoForge Supporter

    If you have problems with Filezilla and your OS is Ubuntu18:
    Code:
    apt update && apt upgrade
    echo 'deb-src http://de.archive.ubuntu.com/ubuntu/ focal universe' > /etc/apt/sources.list.d/pureftpd.list
    apt update
    cd /tmp
    apt source pure-ftpd
    cd pure-ftpd-1.0.49/
    apt build-dep ./
    dpkg-buildpackage -rfakeroot -uc -b
    rm /etc/apt/sources.list.d/pureftpd.list
    apt -y remove pure-ftpd-common pure-ftpd-mysql
    cd /tmp
    dpkg -i pure-ftpd-common_1.0.49-4_all.deb pure-ftpd-mysql_1.0.49-4_amd64.deb
    service pure-ftpd-mysql restart
    
     
  13. vinodbathi

    vinodbathi New Member

Share This Page