These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for FTP dies after a couple of days on the new forum.
In short: I setup a new server with the current script (downloaded Midth of May) and everything seems to work. But FTP does not. When the server runs a couple of days, it won't accept any FTP connection. So i have to reboot, and then FTP works like magic. Some days later, FTP dies again. Anything i can check in order to have continious FTP access?
Thanks and best
Howdy,
How much RAM does your server have? You can determine that by running this command:
free -m
Also, after FTP stops working, what is the output of this command:
dmesg | tail -30
Thanks for help.
Howdy,
Hmm, on one hand, it looks like your server has 16GB of RAM, which is quite a bit.
On the other hand, it's currently used nearly 14GB of that.
That suggests to me that something on your server is using quite a bit of RAM, and could potentially be the source of the issue you're seeing (that is, if the Linux kernel runs low on RAM, it will start killing processes).
You could always run the "top" command, and sort the output by memory usage, to get an idea of what the top memory users are.
I personally tend to run "ps auxwf" though, and review all the processes that are output to try and determine what's using the memory.
Feel free to post the output of "ps auxwf" here, and we can try and help determine what's going on there.
-Eric
Here it is:
well, if i put the following Part into code brackets, the complete post will be gone. so i have to put this in plain text ;-(
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ? S Jun08 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Jun08 0:01 _ [ksoftirqd/ 0]
root 4 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/0: 0]
root 5 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/0: 0H]
root 6 0.0 0.0 0 0 ? S Jun08 0:20 _ [kworker/u1 6:0]
root 7 0.0 0.0 0 0 ? S Jun08 6:40 _ [rcu_sched]
root 8 0.0 0.0 0 0 ? S Jun08 3:04 _ [rcuos/0]
root 9 0.0 0.0 0 0 ? S Jun08 2:52 _ [rcuos/1]
root 10 0.0 0.0 0 0 ? S Jun08 2:50 _ [rcuos/2]
root 11 0.0 0.0 0 0 ? S Jun08 3:19 _ [rcuos/3]
root 12 0.0 0.0 0 0 ? S Jun08 0:56 _ [rcuos/4]
root 13 0.0 0.0 0 0 ? S Jun08 1:34 _ [rcuos/5]
root 14 0.0 0.0 0 0 ? S Jun08 1:02 _ [rcuos/6]
root 15 0.0 0.0 0 0 ? S Jun08 1:12 _ [rcuos/7]
root 16 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcu_bh]
root 17 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/0]
root 18 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/1]
root 19 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/2]
root 20 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/3]
root 21 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/4]
root 22 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/5]
root 23 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/6]
root 24 0.0 0.0 0 0 ? S Jun08 0:00 _ [rcuob/7]
root 25 0.0 0.0 0 0 ? S Jun08 0:00 _ [migration/0]
root 26 0.0 0.0 0 0 ? S Jun08 0:03 _ [watchdog/0 ]
root 27 0.0 0.0 0 0 ? S Jun08 0:03 _ [watchdog/1 ]
root 28 0.0 0.0 0 0 ? S Jun08 0:00 _ [migration/ 1]
root 29 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 1]
root 30 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/1: 0]
root 31 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/1: 0H]
root 32 0.0 0.0 0 0 ? S Jun08 0:03 _ [watchdog/2 ]
root 33 0.0 0.0 0 0 ? S Jun08 0:00 _ [migration/ 2]
root 34 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 2]
root 35 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/2: 0]
root 36 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/2: 0H]
root 37 0.0 0.0 0 0 ? S Jun08 0:03 _ [watchdog/3 ]
root 38 0.0 0.0 0 0 ? S Jun08 0:00 _ [migration/ 3]
root 39 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 3]
root 40 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/3: 0]
root 41 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/3: 0H]
root 42 0.0 0.0 0 0 ? S Jun08 0:03 _ [watchdog/4 ]
root 43 0.0 0.0 0 0 ? S Jun08 0:02 _ [migration/ 4]
root 44 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 4]
root 45 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/4: 0]
root 46 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/4: 0H]
root 47 0.0 0.0 0 0 ? S Jun08 0:02 _ [watchdog/5 ]
root 48 0.0 0.0 0 0 ? S Jun08 0:02 _ [migration/ 5]
root 49 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 5]
root 50 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/5: 0]
root 51 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/5: 0H]
root 52 0.0 0.0 0 0 ? S Jun08 0:02 _ [watchdog/6 ]
root 53 0.0 0.0 0 0 ? S Jun08 0:01 _ [migration/ 6]
root 54 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 6]
root 55 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/6: 0]
root 56 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/6: 0H]
root 57 0.0 0.0 0 0 ? S Jun08 0:02 _ [watchdog/7 ]
root 58 0.0 0.0 0 0 ? S Jun08 0:02 _ [migration/ 7]
root 59 0.0 0.0 0 0 ? S Jun08 0:00 _ [ksoftirqd/ 7]
root 60 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/7: 0]
root 61 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kworker/7: 0H]
root 62 0.0 0.0 0 0 ? S< Jun08 0:00 _ [khelper]
root 63 0.0 0.0 0 0 ? S Jun08 0:00 _ [kdevtmpfs]
root 64 0.0 0.0 0 0 ? S< Jun08 0:00 _ [netns]
root 65 0.0 0.0 0 0 ? S< Jun08 0:00 _ [writeback]
root 66 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kintegrity d]
root 67 0.0 0.0 0 0 ? S< Jun08 0:00 _ [bioset]
root 69 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kblockd]
root 70 0.0 0.0 0 0 ? S< Jun08 0:00 _ [ata_sff]
root 71 0.0 0.0 0 0 ? S Jun08 0:00 _ [khubd]
root 72 0.0 0.0 0 0 ? S< Jun08 0:00 _ [md]
root 73 0.0 0.0 0 0 ? S< Jun08 0:00 _ [devfreq_wq ]
root 74 0.0 0.0 0 0 ? S Jun08 0:07 _ [kworker/0: 1]
root 76 0.0 0.0 0 0 ? S Jun08 0:00 _ [khungtaskd ]
root 77 0.0 0.0 0 0 ? S Jun08 0:00 _ [kswapd0]
root 78 0.0 0.0 0 0 ? SN Jun08 0:00 _ [ksmd]
root 79 0.0 0.0 0 0 ? SN Jun08 0:09 _ [khugepaged ]
root 80 0.0 0.0 0 0 ? S Jun08 0:00 _ [fsnotify_m ark]
root 81 0.0 0.0 0 0 ? S Jun08 0:00 _ [ecryptfs-k threa]
root 82 0.0 0.0 0 0 ? S< Jun08 0:00 _ [crypto]
root 94 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kthrotld]
root 96 0.0 0.0 0 0 ? S Jun08 0:04 _ [kworker/7: 1]
root 97 0.0 0.0 0 0 ? S Jun08 0:06 _ [kworker/1: 1]
root 98 0.0 0.0 0 0 ? S Jun08 0:07 _ [kworker/2: 1]
root 99 0.0 0.0 0 0 ? S Jun08 0:09 _ [kworker/3: 1]
root 118 0.0 0.0 0 0 ? S< Jun08 0:00 _ [deferwq]
root 119 0.0 0.0 0 0 ? S< Jun08 0:00 _ [charger_ma nager]
root 125 0.0 0.0 0 0 ? S Jun08 0:13 _ [kworker/4: 1]
root 184 0.0 0.0 0 0 ? S Jun08 0:00 _ [scsi_eh_0]
root 185 0.0 0.0 0 0 ? S Jun08 0:00 _ [scsi_eh_1]
root 186 0.0 0.0 0 0 ? S Jun08 0:00 _ [scsi_eh_2]
root 187 0.0 0.0 0 0 ? S Jun08 0:00 _ [scsi_eh_3]
root 188 0.0 0.0 0 0 ? S Jun08 0:00 _ [scsi_eh_4]
root 189 0.0 0.0 0 0 ? S Jun08 0:00 _ [scsi_eh_5]
root 195 0.0 0.0 0 0 ? S Jun08 0:00 _ [kworker/u1 6:7]
root 196 0.0 0.0 0 0 ? S< Jun08 0:00 _ [raid5wq]
root 227 0.0 0.0 0 0 ? S< Jun08 0:00 _ [bioset]
root 228 0.0 0.0 0 0 ? S Jun08 0:00 _ [md0_raid1]
root 235 0.0 0.0 0 0 ? S< Jun08 0:00 _ [bioset]
root 236 0.0 0.0 0 0 ? S Jun08 1:04 _ [md2_raid1]
root 240 0.0 0.0 0 0 ? S< Jun08 0:00 _ [bioset]
root 241 0.0 0.0 0 0 ? S Jun08 0:00 _ [md1_raid1]
root 247 0.0 0.0 0 0 ? S< Jun08 0:00 _ [bioset]
root 248 0.0 0.0 0 0 ? S Jun08 0:00 _ [md3_raid1]
root 253 0.0 0.0 0 0 ? S Jun08 0:06 _ [kworker/5: 1]
root 254 0.0 0.0 0 0 ? S< Jun08 0:00 _ [bioset]
root 261 0.0 0.0 0 0 ? S Jun08 0:05 _ [kworker/6: 1]
root 264 0.0 0.0 0 0 ? S Jun08 0:37 _ [jbd2/md2-8 ]
root 265 0.0 0.0 0 0 ? S< Jun08 0:00 _ [ext4-rsv-c onver]
root 426 0.0 0.0 0 0 ? S Jun08 0:00 _ [jbd2/md1-8 ]
root 427 0.0 0.0 0 0 ? S< Jun08 0:00 _ [ext4-rsv-c onver]
root 487 0.0 0.0 0 0 ? S< Jun08 0:00 _ [kvm-irqfd- clean]
root 488 0.0 0.0 0 0 ? S< Jun08 0:00 _ [led_workqu eue]
root 591 0.0 0.0 0 0 ? S Jun08 0:00 _ [jbd2/md3-8 ]
root 596 0.0 0.0 0 0 ? S< Jun08 0:00 _ [ext4-rsv-c onver]
root 2387 0.0 0.0 0 0 ? S Jun08 0:00 _ [kauditd]
root 31374 0.0 0.0 0 0 ? S< 11:05 0:00 _ [kworker/u1 7:2]
root 2147 0.0 0.0 0 0 ? S< 11:52 0:00 _ [kworker/u1 7:1]
root 1 0.0 0.0 33740 3112 ? Ss Jun08 0:08 /sbin/init
root 398 0.0 0.0 19604 912 ? S Jun08 0:00 upstart-udev-br idge --daemon
root 408 0.0 0.0 51456 1788 ? Ss Jun08 0:00 /lib/systemd/sy stemd-udevd --daemon
root 558 0.0 0.0 15256 680 ? S Jun08 0:00 upstart-socket- bridge --daemonsyslog 780 0.0 0.1 256228 29224 ? Ssl Jun08 1:17 rsyslogd
root 786 0.0 0.0 15272 644 ? S Jun08 0:00 upstart-file-br idge --daemon message+ 841 0.0 0.0 39216 1320 ? Ss Jun08 0:39 dbus-daemon --s ystem --fork
root 930 0.0 0.0 44052 2484 ? Ss Jun08 0:39 /lib/systemd/sy stemd-logind
root 1015 0.0 0.0 15816 964 tty4 Ss+ Jun08 0:00 /sbin/getty -8 38400 tty4
root 1018 0.0 0.0 15816 964 tty5 Ss+ Jun08 0:00 /sbin/getty -8 38400 tty5
root 1022 0.0 0.0 15816 952 tty2 Ss+ Jun08 0:00 /sbin/getty -8 38400 tty2
root 1023 0.0 0.0 15816 960 tty3 Ss+ Jun08 0:00 /sbin/getty -8 38400 tty3
root 1027 0.0 0.0 15816 952 tty6 Ss+ Jun08 0:00 /sbin/getty -8 38400 tty6
root 1043 0.0 0.0 17772 1520 ? Ss Jun08 0:20 /usr/sbin/dovec ot -F -c /etc/dovecot/dovecot.conf dovecot 1335 0.0 0.0 9280 960 ? S Jun08 0:11 _ dovecot/anv il
root 1336 0.0 0.0 9408 1156 ? S Jun08 0:08 _ dovecot/log
root 4338 0.0 0.0 18600 2104 ? S 04:28 0:00 _ dovecot/con fig dovecot 4339 0.0 0.0 16124 1392 ? S 04:28 0:00 _ dovecot/aut h
root 4340 0.0 0.0 13228 1280 ? S 04:28 0:00 _ dovecot/ssl -params
root 1054 0.0 0.0 4364 664 ? Ss Jun08 0:00 acpid -c /etc/a cpi/events -s /var/run/acpid.socket
root 1131 0.0 0.0 23652 1044 ? Ss Jun08 0:01 cron
mysql 1156 0.0 1.1 1140820 188964 ? Ssl Jun08 8:33 /usr/sbin/mysql d
bind 1173 0.0 0.2 690692 44800 ? Ssl Jun08 1:19 /usr/sbin/named -u bind
root 1188 0.0 0.0 19184 756 ? Ss Jun08 0:53 /usr/sbin/irqba lance
postgres 1354 0.0 0.0 247732 16180 ? S Jun08 0:48 /usr/lib/postgr esql/9.3/bin/postgres -D /var/lib/postgresql/9.3/mai
postgres 1369 0.0 0.0 247732 1888 ? Ss Jun08 0:00 _ postgres: c heckpointer process
postgres 1370 0.0 0.0 247732 2684 ? Ss Jun08 0:04 _ postgres: w riter process
postgres 1371 0.0 0.0 247732 1672 ? Ss Jun08 0:04 _ postgres: w al writer process
postgres 1372 0.0 0.0 248592 3096 ? Ss Jun08 0:41 _ postgres: a utovacuum launcher process
postgres 1373 0.0 0.0 103688 1968 ? Ss Jun08 1:26 _ postgres: s tats collector process
clamav 1644 0.0 0.0 54652 2880 ? Ss Jun08 11:18 /usr/bin/freshc lam -d --quiet
root 1726 0.0 0.0 61364 3076 ? Ss Jun08 0:22 /usr/sbin/sshd -D
root 5644 0.1 0.0 105632 4312 ? Ss 12:55 0:00 _ sshd: root@ pts/0
root 5663 0.5 0.0 23060 4232 pts/0 Ss 12:55 0:00 _ -bash
root 5686 0.0 0.0 18604 1468 pts/0 R+ 12:55 0:00 _ ps -auxwf
root 1727 0.0 0.0 9472 3508 ? Ss Jun08 6:09 /usr/sbin/haveg ed -w 1024
root 1847 0.0 0.0 25340 1696 ? Ss Jun08 0:05 /usr/lib/postfi x/master
postfix 1860 0.0 0.0 27572 1568 ? S Jun08 0:00 _ qmgr -l -t unix -u
postfix 8398 0.0 0.0 40308 3136 ? S Jun08 0:00 _ tlsmgr -l - t unix -u -c
postfix 4780 0.0 0.0 27404 1536 ? S 12:39 0:00 _ pickup -l - t unix -u -c
root 1885 0.0 0.0 93152 2032 ? Ss Jun08 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd
root 1886 0.0 0.0 93152 2032 ? S Jun08 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau
root 1887 0.0 0.0 93152 2028 ? S Jun08 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau
root 1889 0.0 0.0 93152 2024 ? S Jun08 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau
root 1890 0.0 0.0 93152 2032 ? S Jun08 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau
root 2388 0.0 0.1 76792 19216 ? Ss Jun08 0:09 /usr/bin/perl / usr/share/usermin/miniserv.pl /etc/usermin/miniserv.
root 2431 0.0 0.0 13408 708 ? Ss Jun08 0:00 /sbin/mdadm --m onitor --pid-file /run/mdadm/monitor.pid --daemonise
root 2495 0.0 0.1 460664 26224 ? Ss Jun08 0:22 /usr/sbin/apach e2 -k start
www-data 23321 0.0 0.0 238728 8440 ? S Jun21 0:00 _ /usr/sbin/a pache2 -k start
www-data 23326 0.0 0.2 477672 38456 ? S Jun21 0:02 _ /usr/sbin/a pache2 -k start
www-data 23867 0.0 0.1 468104 31892 ? S Jun21 0:08 _ /usr/sbin/a pache2 -k start
www-data 6247 0.0 0.2 488224 39648 ? S Jun21 0:07 _ /usr/sbin/a pache2 -k start
www-data 6249 0.0 0.2 485768 37592 ? S Jun21 0:02 _ /usr/sbin/a pache2 -k start
www-data 6294 0.0 0.2 486024 37852 ? S Jun21 0:05 _ /usr/sbin/a pache2 -k start
www-data 6315 0.0 0.1 479724 30676 ? S Jun21 0:04 _ /usr/sbin/a pache2 -k start
www-data 21625 0.0 0.1 477480 28468 ? S 08:44 0:00 _ /usr/sbin/a pache2 -k start
www-data 21626 0.0 0.2 488908 40832 ? S 08:44 0:04 _ /usr/sbin/a pache2 -k start
www-data 21675 0.0 0.1 477120 28292 ? S 08:45 0:01 _ /usr/sbin/a pache2 -k start
www-data 21874 0.0 0.1 472444 23620 ? S 08:47 0:02 _ /usr/sbin/a pache2 -k start
clamav 2916 0.0 1.9 449420 323820 ? Ssl Jun08 4:42 /usr/sbin/clamd
root 2940 0.0 0.3 92100 63456 ? Ss Jun08 0:00 /usr/share/webm in/virtual-server/lookup-domain-daemon.pl
list 2954 0.0 0.0 60560 9260 ? Ss Jun08 0:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl -s -q start
list 2981 0.0 0.0 60488 11448 ? S Jun08 1:26 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=ArchRunne
list 2982 0.0 0.0 60496 11484 ? S Jun08 1:29 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=BounceRun
list 2983 0.0 0.0 60528 11456 ? S Jun08 1:26 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=CommandRu
list 2984 0.0 0.0 60432 11452 ? S Jun08 1:25 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=IncomingR
list 2985 0.0 0.0 60452 11512 ? S Jun08 1:26 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=NewsRunne
list 2986 0.0 0.0 60472 11580 ? S Jun08 1:29 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=OutgoingR
list 2987 0.0 0.0 60488 11452 ? S Jun08 1:26 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=VirginRun
list 2988 0.0 0.0 60488 11440 ? S Jun08 0:00 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=RetryRunn
root 2990 0.0 0.3 137508 64420 ? Ss Jun08 1:47 /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -
root 2991 0.0 0.3 137508 62584 ? S Jun08 0:01 _ spamd child
root 2992 0.0 0.3 137508 62596 ? S Jun08 0:01 _ spamd child
root 2995 0.0 0.4 137676 74036 ? Ss Jun08 0:34 /usr/bin/perl / usr/share/webmin/miniserv.pl /etc/webmin/miniserv.co
root 2999 0.0 0.0 15816 952 tty1 Ss+ Jun08 0:00 /sbin/getty -8 38400 tty1
ntp 3102 0.0 0.0 31444 2088 ? Ss Jun08 0:33 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:112 root@server04 ~ #
[/code] top says this:
Howdy,
Yeah it does look like you have a good bit of RAM still available.
Do you see anything in the logs when that occurs?
Also, which distro/version is it that you're using?
-Eric
seen this: Fatal: unable to open incoming connection: Transport endpoint is not connected
and the ftp process has been killed last monday:
2015-06-15 06:25:12,941 proftpd[2457] server04.serververwaltung.biz: ProFTPD killed (signal 15) 2015-06-15 06:25:12,942 proftpd[2457] server04.serververwaltung.biz: ProFTPD 1.3.5rc3 standalone mode SHUTDOWN
i didn't reboot, so i am wondering... No ftp daemon in process list, when i check it. So it will kill itself, i think. If i restart it would be back up again. But why would it die after a couple of days?
Howdy,
I'm unfortunately not sure what's causing the issue you're seeing. The only time I've seen FTP dying like that is when a server is low on resources.
It doesn't look like you're low on RAM though.
Are you by chance using an OpenVZ VPS? Or another type of VPS? Or is this a dedicated server?
-Eric
I noticed this on all servers I have installed virtualmin too. After few days, ftp will shut down. I don't have to reboot, just start again, but I don't know why (and it's not a memory problem, on my test server I have a lot of free memory ^^)
specific one did it again. I loggged in to upgrade bind, just to see, that the ftp service is down again ...
So what? I have enough ressources
Howdy,
Do you see anything in the logs that would indicate why it's not running?
-Eric
Hi, we've been seeing the same behaviour with 3 different Virtualmin instances on Ubuntu 14.04. ProFTPD just up and dies after a few days, nothing of any use in the logs. No issue on Centos.
Howdy,
Do you by chance see anything after running "dmesg | tail -30"?
If it's related to RAM, that will usually show up there.
Also, how much RAM is in your system? You can determine that with "free -m".
-Eric