FTP does not work until restarting server?

Running on Ubuntu Linux 14.04.2.

I have been having this problem for a long time now. If I restart the server, FTP works fine. If I do not use it for a few hours, then it stops accepting connections and FTP client gives the following messages:

Status: Waiting to retry…
Status: Resolving address of x.com
Status: Connecting to xx.xx.xx.xx:21…
Status: Connection established, waiting for welcome message…
Error: Connection timed out after 10 seconds of inactivity
Error: Could not connect to server

At this point, in virtualmin ProFTPd is still running. If I stop it, and restart it in virtualmin, same exact results.

This issue does not fix until a full restart of the server. Which brings me back to to beginning again.

Any advice on how to resolve this issue?

Howdy,

After that issue occurs – what is the output of the command “dmesg | tail -30”?

Also, how much RAM does your server have?

You can determine that by running “free -m”.

-Eric