LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Crashing ldirectord

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] Crashing ldirectord
From: Rob de Wit <rdewit@xxxxxxxxxxxx>
Date: Tue, 01 Jun 2010 11:24:20 +0200
Hi all,

We've been using ldirectord for years now and because I wanted to
use the 'checktype=external' option, we've upgraded heartbeat and
it's accompanying software.

We've never had problems untill the upgrade: every now and then
ldirectord just quits. I've run it in debug mode and this is what
I get:

DEBUG2: check_http: http://10.0.10.1:80/nagios.php is up
DEBUG2: Checking negotiate: real
server=negotiate:http:tcp:10.0.10.2:80:XXXX.XX::75:gate:\/nagios\.php:OK
(virtual=tcp:XX.XX.XX.XX:80)
DEBUG2: check_http: url="http://10.0.10.2:80/nagios.php";
virtualhost="XXXX.XX"
LWP::UserAgent::new: ()
DEBUG2: Starting Check
DEBUG2: Starting HTTP/HTTPS
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://10.0.10.2:80/nagios.php
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 16 bytes
Can't call method "is_success" on an undefined value at
/usr/sbin/ldirectord line 2759.
failure

I'm no perl expert, but looking at the code, it seems to be
unhappily surprised by an undefined response from $ua->request.

Why would that happen?
How can I stop ldirectord from crashing on it?

ldirectord --version => Linux Director v1.186-ha

Kind regards,

        Rob

-- 
Rob de Wit
rdewit@xxxxxxxxxxxx

WiseGuys Internet B.V.
http://www.wise-guys.nl/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>