Your best friend for file transfer.

Fetch application logoFetch

FTP Server Dropped the Connection (4 posts)

  • Started 10 years ago by Tony
  • Latest reply 10 years ago from Jim Matthews
  • Tony Member

    Hi there, longtime user of Fetch and love it!

    I'm setting up a web server (Ubuntu Server 12.0.4) and have vsftpd running on it. I also have a mysql database for usernames and passwords. I created the first username/password and connected just fine:

    [code]Connecting to 192.168.0.26 port 21 (Mac OS X firewall is allowing connections) (7/24/13 6:15 PM)
    Connected to 192.168.0.26 port 21 (7/24/13 6:15 PM)
    220 (vsFTPd 2.3.5)
    AUTH TLS
    234 Proceed with negotiation.
    USER username1
    331 Please specify the password.
    PASS
    230 Login successful.
    PBSZ 0
    200 PBSZ set to 0.
    PROT P
    200 PROT now Private.
    SYST
    215 UNIX Type: L8
    PWD
    257 "/var/www/example1.com"
    PWD
    257 "/var/www/example1.com"
    TYPE A
    200 Switching to ASCII mode.
    PASV
    227 Entering Passive Mode (192,168,0,26,82,14).
    Making data connection to 192.168.0.26 port 21006
    LIST -al
    150 Here comes the directory listing.
    drwxr-xr-x 3 1001 65534 4096 Jul 17 02:15 .
    drwxr-xr-x 6 0 0 4096 Jul 17 02:41 ..
    drwxr-xr-x 3 1001 65534 4096 Jul 24 18:40 public_html
    226 Directory send OK.
    PWD
    257 "/var/www/example1.com"
    QUIT
    221 Goodbye.[/code]

    Then I added a new user to the database using the same method as the first:

    [code]INSERT INTO accounts (username, pass) VALUES('username2', PASSWORD('secret2'));
    quit;[/code]

    but when I go to connect with fetch, I get a message that the server dropped the connection.

    [code]Connecting to 192.168.0.26 port 21 (Mac OS X firewall is allowing connections) (7/24/13 6:17 PM)
    Connected to 192.168.0.26 port 21 (7/24/13 6:17 PM)
    220 (vsFTPd 2.3.5)
    AUTH TLS
    234 Proceed with negotiation.
    USER username2
    331 Please specify the password.
    PASS
    get_reply():con_conn->Getline() returns 3,-9800
    An FTP with TLS/SSL connection to “192.168.0.26” could not be opened because the FTP server dropped the connection. (Try again, or contact the server administrator to verify that the server is running.)[/code]

    Any insight you could provide would be greatly appreciated, I've been banging my head on this one all day.

    Tony

    Posted 10 years ago #

  • Jim Matthews Administrator

    Hi,

    I would look at vsFTPd's log files to see if there's useful information there. It could be that there's something else you need to do to set up a new user account for FTP access.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

  • Tony Member

    I tried logging in first with the user account that usually works but it gave me a Mac OS Error 32767. Here is the output from Fetch Transcript:

    Connecting to 192.168.0.26 port 21 (Mac OS X firewall is allowing connections) (7/25/13 4:51 PM)
    Connected to 192.168.0.26 port 21 (7/25/13 4:51 PM)
    220 (vsFTPd 2.3.5)
    AUTH TLS
    234 Proceed with negotiation.
    USER username1
    send_cmd():con_conn->Putline() returns 2,32767
    An FTP with TLS/SSL connection to “192.168.0.26” could not be opened because an error has occurred. (Mac OS error 32767.)

    I closed the window and tried again and it connected fine (bizarre). Then I tried the username2 which has never worked and got this from Fetch Transcript (just like above):

    Connecting to 192.168.0.26 port 21 (Mac OS X firewall is allowing connections) (7/25/13 4:57 PM)
    Connected to 192.168.0.26 port 21 (7/25/13 4:57 PM)
    220 (vsFTPd 2.3.5)
    AUTH TLS
    234 Proceed with negotiation.
    USER username2
    331 Please specify the password.
    PASS
    get_reply():con_conn->Getline() returns 3,-9800
    An FTP with TLS/SSL connection to “192.168.0.26” could not be opened because the FTP server dropped the connection. (Try again, or contact the server administrator to verify that the server is running.)

    Here is the output in vsftpd.log from the 3 attempts, only the second one being successful:

    Thu Jul 25 16:58:33 2013 [pid 2] CONNECT: Client "192.168.0.3"
    Thu Jul 25 16:58:34 2013 [pid 2] [username1] DEBUG: Client "192.168.0.3", "Connection terminated without SSL shutdown - buggy client?"

    Thu Jul 25 16:58:35 2013 [pid 2] CONNECT: Client "192.168.0.3"
    Thu Jul 25 16:58:36 2013 [pid 1] [username1] OK LOGIN: Client "192.168.0.3"

    Thu Jul 25 16:59:06 2013 [pid 2] CONNECT: Client "192.168.0.3"
    Thu Jul 25 16:59:06 2013 [pid 1] [username2] OK LOGIN: Client "192.168.0.3"

    Any more ideas? Thanks.

    Tony

    Edited 10 years ago #

  • Jim Matthews Administrator

    Have you tried logging into username2 with any other FTP clients?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.