proftpd process hangs and cannot be killed.

Discussion in 'General' started by kanour, Nov 6, 2006.

  1. kanour

    kanour Member

    Hi.
    I am running ISPconfig on XEN (xen-3.0.2-2). Everything worked quite well untill now when proftpd process hangs very often and cannot be killed. Only restart of machine fix the issue.
    root 2731 0.0 0.8 19728 2596 ? D 10:38 0:00 /usr/sbin/proftpd

    Do you have any idea?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try to kill it like this:

    kill -9 2731

    where 2731 is the current process IP of the hanging proftpd process.
     
  3. sysconfig

    sysconfig New Member

    Use the command ps to display running processes.

    ps -aux will show all processes under all users. In order to kill a certain process, just type:

    kill -s KILL [process ID]

    The process ID will be listed in the pid column when you run ps -aux


    ps aux | grep 'processname'

    It will give you details about the process.

    Then kill -9 pid
     
  4. kanour

    kanour Member

    The problem is that the process cannot be killed. I tried the procedure what you mentioned before I even wrote here.

    The state of the process is "D". I just don't know where I should dig to find out some solution to this.
     
  5. sysconfig

    sysconfig New Member

    It means that there is some I/O related issues. check your disk speed and accuracy I think.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors related to this in your logs?
     
  7. spazio

    spazio Member HowtoForge Supporter

    Is there a solution, i have the same problem?

    I have the system up and running for a while (debian and ispconfig 2.3.1) but in the last couple of days i've notice an increase in the process number. My understanding is the following. Ispconfig monitor the proftpd daemond. At one point proftpd freeze for a reason and ispconfig tries to restart it after the script check_services.php, but it also freeze. Every haft hour the same story occures so after a while the load average is up to the roof:( One process for proftpd, one for check_services.php every 30 minutes.)

    Basically every thing is the same in regards to this tread, after running for a while proftpd feeze up and i need to restart the machine to kill the process.

    Any suggestions? Thanks in advance :)
     
  8. falko

    falko Super Moderator Howtoforge Staff

    DO you get any errors when you run
    Code:
    /etc/init.d/proftpd restart
    ?
     
  9. spazio

    spazio Member HowtoForge Supporter

    here is the result:
    Restarting ProFTPD ftp daemon..
    .. - warning: "ProFTPD" address/port (xxx.xxx.xxx.xxx:21) already in use by "ProFTPD"

    and nothing else. The consol just sit there.
    The number of process seems to average 170 after a couple of days instead of 80 to 110. All the ftp and webftp sites are unavaileble.

    The 4 process that repeats themself every 30 minutes are:
    root 1445 0.0 0.0 2108 736 ? S Jan01 0:00 \_ /USR/SBIN/CRON
    root 1446 0.0 0.0 2804 1208 ? Ss Jan01 0:00 | \_ /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.ph
    root 1448 0.0 0.1 10980 3948 ? S Jan01 0:00 | \_ /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
    root 1485 0.0 0.0 2832 1300 ? S Jan01 0:00 | \_ /bin/sh /etc/init.d/proftpd restart
    root 1494 0.0 0.1 5044 2348 ? D Jan01 0:00 | \_ /usr/sbin/proftpd
    r

    This is really a pain :) Thanks for the reply:)
     
  10. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    ?
     
  11. spazio

    spazio Member HowtoForge Supporter

    hostname:/# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:imaps *:* LISTEN 9193/couriertcpd
    tcp 0 0 *:pop3s *:* LISTEN 9214/couriertcpd
    tcp 0 0 ip-xxx-xxx-xxx-xxx:mysql *:* LISTEN 9271/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 9201/couriertcpd
    tcp 0 0 *:imap2 *:* LISTEN 9180/couriertcpd
    tcp 0 0 *:www *:* LISTEN 15155/apache2
    tcp 0 0 *:81 *:* LISTEN 9522/ispconfig_http
    tcp 0 0 *:ftp *:* LISTEN 4162/proftpd: (acce
    tcp 0 0 ip-xxx-xxx-xxx-xxx:domain *:* LISTEN 9981/named
    tcp 0 0 ip-xxx-xxx-xxx-xxx:domain *:* LISTEN 9981/named
    tcp 0 0 ip-xxx-xxx-xxx-xxx:domain *:* LISTEN 9981/named
    tcp 0 0 ip-xxx-xxx-xxx-xxx.s:ssh *:* LISTEN 9428/sshd
    tcp 0 0 *:smtp *:* LISTEN 8081/master
    tcp 0 0 ip-xxx-xxx-xxx-xxx.s:953 *:* LISTEN 9981/named
    tcp 0 0 *:https *:* LISTEN 15155/apache2
    tcp 0 53 ip-xxx-xxx-xxx-xxx.:smtp client-190.40.77.1:2442 ESTABLISHED5207/smtpd
    tcp 0 0 ip-xxx-xxx-xxx-xxx.:smtp mailgw2.mh.bbc.co:62054 TIME_WAIT -
    tcp 0 0 ip-xxx-xxx-xxx-xxx.:smtp 190-48-241-23.spee:8722 TIME_WAIT -
    tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:52806 CLOSE_WAIT -
    tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:44383 CLOSE_WAIT -
    tcp 0 0 ip-xxx-xxx-xxx-xxx.:smtp cpe-075-182-124-0:29090 ESTABLISHED4232/smtpd
    tcp 0 0 ip-xxx-xxx-xxx-xxx.:pop3 74-210-197-116.hy.:2064 TIME_WAIT -
    tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:60435 CLOSE_WAIT -
    tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:46387 CLOSE_WAIT -
    tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:60810 CLOSE_WAIT -
    tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:49837 CLOSE_WAIT -
    hostname:/#
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Please try
    Code:
    kill -9 4162
    and start Proftpd.
     
  13. spazio

    spazio Member HowtoForge Supporter

    Here is the ps of the process after the kill -9 4162. It didn't change a thing. The process is "Ds" looks like it's waiting for sa reply or something from the kernel.

    nobody 4162 0.0 0.0 5044 1220 ? Ds 2007 0:00 proftpd: (accepting connections)

    I think my next step is to upgrade proftpd and hope this is fix in the new version. Do you think it's a good idea?
    ciao
     
  14. falko

    falko Super Moderator Howtoforge Staff

    You can try that at least because I'm running out of ideas... :(
     

Share This Page