Dr. Web Fatal Exception

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
User avatar
JnascECSI
Forum Regular
Forum Regular
Posts: 306
Joined: Mon Apr 14, 2008 8:29 am
Location: Rhode Island

Dr. Web Fatal Exception

Unread post by JnascECSI »

Yesterday i yummed our box and noticed there was a Dr. web Update with some other's. I did'nt see any errors or issues as the update was doing it's thing and now all of a sudden this morning i noticed in Service Managemnet that Dr. web was not running tried to start it and i got this. Any ideas on how to fix it?

ERROR: PleskFatalException
Create ShortcutCreate Shortcut
Up LevelUp Level
Unable to make action: Unable to manage service by drwebmng: drwebmng: Service /etc/init.d/drwebd failed to start
drwebmng: drweb start failed

0: /usr/local/psa/admin/plib/common_func.php3:190
psaerror(string 'Unable to make action: Unable to manage service by drwebmng: drwebmng: Service /etc/init.d/drwebd failed to start drwebmng: drweb start failed')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
James Nascimento
Chief Information Officer
East Commerce Solutions, Inc.
22 Morris Lane
East Providence, RI 02914
Ph. 800-527-5395 x263
Fax. 888-999-5891
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Dr. Web Fatal Exception

Unread post by breun »

Does service drwebd restart give any useful info? If not I'd start looking at the logs.
Lemonbit Internet Dedicated Server Management
User avatar
JnascECSI
Forum Regular
Forum Regular
Posts: 306
Joined: Mon Apr 14, 2008 8:29 am
Location: Rhode Island

Re: Dr. Web Fatal Exception

Unread post by JnascECSI »

Tried that but it always just sat there and i had to (ctrl + C) to get back to prompt... So i rebooted the box 3 times thins morning and now i get this below, We do have a valid license for the Dr. Web junk. Not sure what's making this thing be retarded.


Restarting Dr. Web daemon...
Dr.Web (R) daemon for Linux/Plesk Edition v5.0.0 (Jun 4 2009)
Copyright (c) Igor Daniloff, 1992-2009
Doctor Web, Moscow, Russia
Support service: http://support.drweb.com
To purchase: http://buy.drweb.com
mprotect(): 13 (Permission denied)
James Nascimento
Chief Information Officer
East Commerce Solutions, Inc.
22 Morris Lane
East Providence, RI 02914
Ph. 800-527-5395 x263
Fax. 888-999-5891
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dr. Web Fatal Exception

Unread post by coolemail »

did you manage to sort this? If so do you remember what did it and what worked for you?

I found http://kb.parallels.com/en/811 but still not working:
[root@plesk2 ~]# ls -la /usr/local/psa/admin/bin/drwebmng
lrwxrwxrwx 1 root psaadm 15 Nov 18 08:12 /usr/local/psa/admin/bin/drwebmng -> ../sbin/wrapper
[root@plesk2 ~]# ls -al /usr/local/psa/admin/sbin/drwebmng
-r-xr-x--- 1 root psaadm 80216 Oct 16 2009 /usr/local/psa/admin/sbin/drwebmng
[root@plesk2 ~]# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.035 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.022 ms
64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.032 ms
64 bytes from localhost (127.0.0.1): icmp_seq=8 ttl=64 time=0.023 ms
^C
--- localhost ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7002ms
rtt min/avg/max/mdev = 0.022/0.028/0.036/0.006 ms
[root@plesk2 ~]# /etc/init.d/drwebd restart
Restarting Dr. Web daemon...
/etc/init.d/drwebd: line 32: 7165 Killed $PROGRAM
[root@plesk2 ~]# cat /var/drweb/log/drwebd.log
[root@plesk2 ~]#
so it seems there are no messages in drwebd.log. :?
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dr. Web Fatal Exception

Unread post by coolemail »

Mine too stopped working after a yum update on the server. I have Plesk 9.2.3, CentOS5 and ASL 2.2.6.
When I try to start Dr.Web from Plesk, I get:
Error: Unable to make action: Unable to manage service by drwebmng: drwebmng: Service /etc/init.d/drwebd failed to start
System error 2: No such file or directory ('--start', 'drweb')
From shell, it says:
[root@plesk2 ~]# /usr/local/psa/admin/bin/drwebmng --start
/etc/init.d/drwebd: line 32: 14171 Killed $PROGRAM
drwebmng: Service /etc/init.d/drwebd failed to start

System error 2: No such file or directory
drwebmng: Service /etc/init.d/drwebd failed to start

System error 2: No such file or directory
/usr/local/psa/admin/bin/drwebmng[14169]: Unable to start drweb antivirus daemon
[root@plesk2 ~]#
/var/log/sw-cp-server/error_log shows the following:
/etc/init.d/drwebd: line 32: 17354 Killed $PROGRAM
drwebmng: Service /etc/init.d/drwebd failed to start

System error 2: No such file or directory
/usr/local/psa/admin/bin/drwebmng[17352]: Unable to start drweb antivirus daemon
2010-05-15 04:08:28: (log.c.135) server stopped
2010-05-15 04:08:29: (log.c.75) server started
2010-05-15 04:08:29: (mod_fastcgi.c.1337) Dynamic spawning with max_procs > 1 is not supported; setting min_procs = max_procs
2010-05-15 04:08:29: (mod_fastcgi.c.1337) Dynamic spawning with max_procs > 1 is not supported; setting min_procs = max_procs
2010-05-15 04:38:51: (log.c.135) server stopped
2010-05-15 04:39:00: (log.c.75) server started
2010-05-15 04:39:00: (mod_fastcgi.c.1337) Dynamic spawning with max_procs > 1 is not supported; setting min_procs = max_procs
2010-05-15 04:39:00: (mod_fastcgi.c.1337) Dynamic spawning with max_procs > 1 is not supported; setting min_procs = max_procs
/etc/init.d/drwebd: line 32: 13278 Killed $PROGRAM
drwebmng: Service /etc/init.d/drwebd failed to start

System error 2: No such file or directory
/usr/local/psa/admin/bin/drwebmng[13276]: Unable to start drweb antivirus daemon
and the init file says:
[root@plesk2 ~]# cat /etc/init.d/drwebd
#!/bin/sh
#
# Dr.Web (R) init script
# $Revision: 1.10.14.7 $
#

# chkconfig: 2345 20 80
# description: drwebd is a Dr.Web (R) daemon
# processname: drwebd
# config: /etc/drweb/drweb32.ini
# pidfile: /var/drweb/run/drwebd.pid
BIN="drwebd"
PROGRAM="/opt/drweb/$BIN"
PIDFILE="/var/drweb/run/drwebd.pid"

RUNFILE=/etc/drweb/daemons.run
if test -f $RUNFILE ; then
. $RUNFILE
if test "$RUN_DRWEBD" != "1" ; then
echo "DrWeb Daemon is disabled according to $RUNFILE"
exit 0
fi
fi

check_pidfile()
{
pid=`head -1 $PIDFILE` || { echo "cannot read PID file"; exit 1; }
[ "$pid" != "" ] && [ "$pid" -lt 100000 ] || { echo "invalid PID file for $PIDFILE"; exit 1; }
}


case "$1" in
stop)
echo "Shutting down Dr. Web daemon..."
if [ -f $PIDFILE ] ; then
check_pidfile;
kill `head -1 $PIDFILE`
fi
;;
reload)
echo "Reloading Dr. Web daemon..."
if [ -f $PIDFILE ] ; then
check_pidfile;
kill -HUP `head -1 $PIDFILE`
fi
;;
restart)
echo "Restarting Dr. Web daemon..."
if [ -f $PIDFILE ] ; then
check_pidfile;
kill `head -1 $PIDFILE`
fi
sleep 3
$PROGRAM
;;
start)
echo "Starting Dr. Web daemon..."
$PROGRAM
;;
status)
if test -f "$PIDFILE"
then
echo "Dr.Web daemon started"
exit 0
else
echo "Dr.Web daemon not started"
exit 1
fi
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
;;
esac
[root@plesk2 ~]#
and /var/log/messages shows:
May 15 07:00:01 plesk2 psmon[14612]: Forking second background daemon, process 14613.
May 15 07:00:01 plesk2 update.pl[14592]: Dr.Web (R) Updater ($Revision: 1.7.2.32.2.5 $) started ...
May 15 07:00:01 plesk2 update.pl[14592]: Path to bases : /var/drweb/bases/
May 15 07:00:01 plesk2 update.pl[14592]: Path to URL list : /var/drweb/bases/
May 15 07:00:01 plesk2 update.pl[14592]: Path to blacklists : /var/drweb/dws/
May 15 07:00:01 plesk2 update.pl[14592]: Path to lzma: /opt/drweb/lzma
May 15 07:00:01 plesk2 update.pl[14592]: md5sum found in: /usr/bin/md5sum
May 15 07:00:02 plesk2 update.pl[14592]: custom URL list isn't defined
May 15 07:00:02 plesk2 update.pl[14592]: try using Dr.Web URL list (/var/drweb/bases/update.drl)
May 15 07:00:02 plesk2 update.pl[14592]: exec(/opt/drweb/read_signed drl /var/drweb/bases/update.drl) ...
May 15 07:00:02 plesk2 update.pl[14592]: exec(/opt/drweb/read_signed drl /var/drweb/bases/update.drl) exits with error #137
May 15 07:00:02 plesk2 update.pl[14592]: no custom update servers
May 15 07:00:02 plesk2 update.pl[14592]: main update servers:
May 15 07:00:02 plesk2 update.pl[14592]: drldir not found: "/var/drweb/drl", assuming there are no plugins to update
May 15 07:00:02 plesk2 update.pl[14592]: Finish Success: 2010-05-15 07:00:02
May 15 07:00:02 plesk2 update.pl[14592]: Socket path is /var/drweb/run/updateSock
Because we had updated openssl, we had to follow the Plesk fix at http://kb.parallels.com/en/8338 if that gives any clue.

Can anyone help me get this back working? Many thanks, as ever, in advance.
Post Reply