1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Qmail stops

Discussion in 'Plesk for Linux - 8.x and Older' started by postcard, Dec 20, 2007.

  1. postcard

    postcard Guest

    0
     
    I've got a problem with Qmail crashing, a couple of times per day.

    from '/usr/local/psa/var/log/maillog' I get the following:
    Dec 20 13:10:29 lvps212-241-217-126 qmail-remote-handlers[7215]: starter: submitter[7216] exited on signal 15
    Dec 20 13:10:29 lvps212-241-217-126 qmail-remote-handlers[7215]: starter: submitter[7216] terminates abnormally with status 0
    Dec 20 13:10:29 lvps212-241-217-126 qmail-remote-handlers[7215]: cannot reinject message to mail system
    Dec 20 13:10:29 lvps212-241-217-126 qmail: 1198156229.943115 delivery 778: deferral: qmail-remote_produced_no_output./
    Dec 20 13:10:29 lvps212-241-217-126 qmail: 1198156229.943201 status: local 0/10 remote 0/20 exitasap
    Dec 20 13:10:29 lvps212-241-217-126 qmail: 1198156229.956813 status: exiting

    It restarts OK from Plesk - Services Management, and empties mail queue OK.

    Any help much appreciated.
     
  2. Monica@

    Monica@ Guest

    0
     
    As workaround you can replace qmail-queue, qmail-local and qmail-remote with the qmail-queue.moved, qmail-local.moved and qmail-remote.moved accordingly:

    # cd /var/qmail/bin
    # cp -p qmail-local.moved qmail-local
    # cp -p qmail-remote.moved qmail-remote
    # cp -p qmail-queue.moved qmail-queue

    Make sure that the permissions and ownersips are right:

    # ls -la qmail-queue qmail-local qmail-remote
    -r-xr-xr-x 1 root qmail 44060 Jun 13 2006 qmail-local
    -r-s--x--x 1 qmailq qmail 15784 Jan 26 14:06 qmail-queue
    -r-xr-xr-x 1 root qmail 43364 Jun 13 2006 qmail-remote

    Check maillog after.
     
  3. postcard

    postcard Guest

    0
     
    ..thanks for the response.

    Whilst I was waiting for a response things have deteriorated a bit.

    I installed Watchdog which seemed to be handling restarting Qmail OK for a day or two... but now QMail fails to start completely.

    I'm getting the following response if I try to start Qmail through Plesk...

    "Internal Plesk error occurred: Unable to make action: Unable to manage service by mailmng: mailmng: Service /etc/init.d/qmail failed to start System error 2: No such file or directory"

    and when I've tried to run the restore mail configuration command through ssh..
    "/usr/local/psa/admin/sbin/mchk -v
    mchk: Service /etc/init.d/qmail failed to restart
    System error 11: Resource temporarily unavailable
    mchk: Service /etc/init.d/qmail failed to restart"

    I've since uninstalled Watchdog as from searching through the forum I've found mention of problems... but this has had no effect either.

    My ISP suggested they would be contacting Plesk for support help a couple of days ago.. but I'm not getting any response from them currently.
     
  4. dirty@

    dirty@ Guest

    0
     
    `sh -x /etc/init.d/qmail restart` will help you to see what file is missed or at what step the error appears..
     
  5. postcard

    postcard Guest

    0
     
    Thanks...

    I get the following....

    sh -x /etc/init.d/qmail restart
    + '[' -f /etc/sysconfig/network ']'
    + '[' -f /etc/init.d/functions ']'
    + test -s /etc/rc.status
    + type status
    + type pidofproc
    + myname=qmail
    + qmail_dir=/var/qmail
    + subsys=/var/lock/subsys/qmail
    + PATH=/var/qmail/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/b in:/usr/bin/X11:/usr/games
    + export PATH
    + proccess=qmail-send
    + case "$1" in
    + restart
    + stop
    + '[' -f /var/lock/subsys/qmail ']'
    ++ dirname /var/lock/subsys/qmail
    + '[' -x /sbin/start-stop-daemon -a '!' -d /var/lock/subsys ']'
    + start-stop-daemon --user qmails --stop --quiet --oknodo --exec /var/qmail/bin/ qmail-send
    + '[' -f /var/lock/subsys/qmail ']'
    + for i in 1 1 1 1 1 5 10 10 10 10 10
    + pidofproc qmail-send
    + '[' 0 -ne 1 ']'
    + return 0
    + start
    ++ dirname /var/lock/subsys/qmail
    + '[' -x /sbin/start-stop-daemon -a '!' -d /var/lock/subsys ']'
    + sh -c 'start-stop-daemon --start --quiet --user qmails - -exec /var/qmail/bin/qmail-send --startas /var/q mail/bin/qmail-start -- ./Maildir/ splogger qmail 2 &'
    + sleep 1
    + pidofproc qmail-send
    + ret=1
    + '[' 1 -eq 0 ']'
    + report_action 'Starting qmail: ' /bin/false
    + case `type -t action` in
    ++ type -t action
    + case `type -t rc_reset` in
    ++ type -t rc_reset
    + echo -n 'Starting qmail: '
    Starting qmail: + /bin/false
    + '[' 1 -eq 0 ']'
    + echo failed
    failed
    + '[' 1 -eq 0 ']'
    + return 1
    + exit 1


    any suggestions?
     
Loading...