Find the answer to your Linux question:
Results 1 to 8 of 8
I'm using Ubuntu 6.06 and Apache. I connect to the machine via FTP. It seems as if the connection times out every few seconds. If I u/l a file it ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5

    While using FTP, connection closes frequently

    I'm using Ubuntu 6.06 and Apache.

    I connect to the machine via FTP. It seems as if the connection times out every few seconds. If I u/l a file it will take 15 seconds to connect. Once that connection is open I can u/l more files instantly. If I wait a few seconds it closes, then I have to wait another 15 seconds for it to reopen. Any ideas how to make it not time out so frequently? I wouldn't know where to begin to look since I've never really worked on a Linux machine.

  2. #2
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    No wifi. I also don't think it would be the router/firewall. This doesn't happen with other linux machines I connect to.

    As far as I know this is the only thing. I'm not sure if the issue lies with the FTP, Apache, Linux, or Ubuntu.

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by Lex87 View Post
    Just going to toss this out there, since it's possible you didn't check yet..

    Look in your ftpd.conf for the timeout setting.

    AFAIK the lowest value is 15 seconds though?
    I don't seem to have a ftpd.conf file. I typed "locate ftpd.conf" and all it returned was "/var/lib/dpkg/info/pure-ftpd.conffiles"
    I went into that file and it contains this

    /etc/init.d/pure-ftpd
    /etc/ftpusers

  4. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    most likely whatever your flavor of FTP servers it will be in /etc. Vsftpd is probably the most common.
    linux user # 503963

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by scathefire View Post
    most likely whatever your flavor of FTP servers it will be in /etc. Vsftpd is probably the most common.
    I seem to have Pure-FTP, that's the only FTP directory in /etc. Unfortunately I don't see any .conf files

    I have a /etc/pure-ftpd directory that contains
    "AltLog MinUID NoAnonymous PAMAuthentication PureDB UnixAuthentication"

    I went in each file and saw nothing about a timeout.

    Unfortunately also I inherited this server so I wasn't the one who set it up, so I'm trying to figure everything out with it.

  6. #6
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    it should be keeping logs somewhere (/var/log) usually lags like that sound like DNS timeouts, if the server is set to do a lookup on a machine. These aren't local LAN connections are they?
    linux user # 503963

  7. #7
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    the previous user may have stashed the startup commands somewhere like /etc/rc.local or somewhere that runs local configs after all the init scripts have ran. or there very well maybe an init script controlling the process.
    linux user # 503963

  8. #8
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by scathefire View Post
    it should be keeping logs somewhere (/var/log) usually lags like that sound like DNS timeouts, if the server is set to do a lookup on a machine. These aren't local LAN connections are they?
    I can't seem to access the transfer.log file. It says permission denied when I try to read it. I can't even copy it. Here's a cap of the files

    /var/log/pure-ftpd$ ls -lrt

    -rw------- 1 root root 656 2010-02-25 17:02 transfer.log.3.gz
    -rw------- 1 root root 2193 2010-02-26 17:55 transfer.log.2.gz
    -rw------- 1 root root 59137 2010-03-05 16:52 transfer.log.1
    -rw------- 1 root root 71435 2010-03-11 13:27 transfer.log

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...