<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.88">
<TITLE>RE: [hobbit] Channel processing problem with 4.11</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Banging on it and no core dumps (yet). The hobbitd client channel process appears to resurrect off the parent channel process for the signal 6 faults (SIGABRT). Probably be able to get a core dump faster if re-disable the signals and pound the channel some more.</FONT></P>

<P><FONT SIZE=2>I have narrowed down the fault in the client message to the first line in the df output (how strange). Below is the client side code where only reporting the initial client line and then the [df] block header and the df output. If the HPUX df header line is removed before sending out message, no error on channel. </FONT></P>

<P><FONT SIZE=2>Using the hobbit bb binary for client side transmission. For the tests below, restored back the original hobbitd_channel binary with the standard signal handlers.  Playing around with the content of the df header line to try and figure out what is so special about it. Very confusing, guess will go back in and disable the signal handlers and try and force out a core dump.</FONT></P>

<P><FONT SIZE=2>!/bin/sh</FONT>
<BR><FONT SIZE=2>#</FONT>
<BR><FONT SIZE=2>#----------------------------------------------------------------------------#</FONT>
<BR><FONT SIZE=2># HP-UX client for Hobbit                                                    #</FONT>
<BR><FONT SIZE=2>#                                                                            #</FONT>
<BR><FONT SIZE=2># Copyright (C) 2005 Henrik Storner <henrik@hswn.dk>                         #</FONT>
<BR><FONT SIZE=2>#                                                                            #</FONT>
<BR><FONT SIZE=2># This program is released under the GNU General Public License (GPL),       #</FONT>
<BR><FONT SIZE=2># version 2. See the file "COPYING" for details.                             #</FONT>
<BR><FONT SIZE=2>#                                                                            #</FONT>
<BR><FONT SIZE=2>#----------------------------------------------------------------------------#</FONT>
<BR><FONT SIZE=2>#</FONT>
<BR><FONT SIZE=2># $Id: hobbitclient-hpux.sh,v 1.4 2005/07/24 11:32:51 henrik Exp $</FONT>
</P>

<P><FONT SIZE=2>MACHINE=`/usr/bin/hostname`</FONT>
<BR><FONT SIZE=2># no good - uname reports HP-UX, hobbit code uses hpux, need to ditch the minus sign</FONT>
<BR><FONT SIZE=2>#BBOSTYPE="`/usr/bin/uname -s | /usr/bin/tr '[A-Z]' '[a-z]'`"</FONT>
<BR><FONT SIZE=2>BBOSTYPE="hpux"</FONT>
</P>

<P><FONT SIZE=2>{</FONT>
<BR><FONT SIZE=2>echo "client $MACHINE.$BBOSTYPE"</FONT>
<BR><FONT SIZE=2>##echo "[date]"</FONT>
<BR><FONT SIZE=2>##/usr/bin/date</FONT>
</P>

<P><FONT SIZE=2>echo "[df]"</FONT>
<BR><FONT SIZE=2># the default does not work - header and metrics</FONT>
<BR><FONT SIZE=2>#/usr/bin/df -Pk</FONT>
<BR><FONT SIZE=2># the next line works - report filesystem metrics without a header line</FONT>
<BR><FONT SIZE=2>#/usr/bin/df -Pk | sed -ne '2,$p'</FONT>
<BR><FONT SIZE=2># the next line causes error on channel - just printing header line</FONT>
<BR><FONT SIZE=2>/usr/bin/df -Pk | sed -ne '1p'</FONT>
</P>

<P><FONT SIZE=2>##echo "[memory]"</FONT>
<BR><FONT SIZE=2>##echo "Total:`./bb-hp-memsz -p`"</FONT>
<BR><FONT SIZE=2>##echo "Free:`./bb-hp-memsz -f`"</FONT>
</P>

<P><FONT SIZE=2>} |  ./bb --debug aaa.bbb.ccc.ddd "@"</FONT>
</P>

<P><FONT SIZE=2>exit</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>The message body that results in a channel error is (grabbing snapshot on client - the server client/tmp/msg.txt keeps catching the content of the server's local check):</FONT></P>

<P><FONT SIZE=2>client csdaj401.hpux</FONT>
<BR><FONT SIZE=2>[df]</FONT>
<BR><FONT SIZE=2>Filesystem          1024-blocks  Used  Available Capacity Mounted on</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Henrik Storner [<A HREF="mailto:henrik@hswn.dk">mailto:henrik@hswn.dk</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, September 30, 2005 9:07 AM</FONT>
<BR><FONT SIZE=2>To: hobbit@hswn.dk</FONT>
<BR><FONT SIZE=2>Subject: Re: [hobbit] Channel processing problem with 4.11</FONT>
</P>
<BR>

<P><FONT SIZE=2>In <FB13116A8C464943B4A5436A616C95F80530AB1F@rocexu01> "Deiss, Mark" <Mark.Deiss@acs-inc.com> writes:</FONT>
</P>

<P><FONT SIZE=2>>First environment using Mandrake 9.0 server and Fedora Core 2 client -</FONT>
<BR><FONT SIZE=2>>client transmissions received and processed properly on server.</FONT>
</P>

<P><FONT SIZE=2>>Second environment using Fedora Core 3 server and HP-UX 11i client, have</FONT>
<BR><FONT SIZE=2>>problems with hobbitd_channel on server.</FONT>
</P>

<P><FONT SIZE=2>>Initial error was:  Worker process died with exit code 6, terminating</FONT>
</P>

<P><FONT SIZE=2>This means that the hobbitd_client program has crashed. There ought to be</FONT>
<BR><FONT SIZE=2>a core-dump in the ~hobbit/server/tmp/ directory; if you could run it</FONT>
<BR><FONT SIZE=2>through the procedure described in </FONT>
<BR><FONT SIZE=2>   <A HREF="http://www.hswn.dk/hobbit/help/known-issues.html#bugreport" TARGET="_blank">http://www.hswn.dk/hobbit/help/known-issues.html#bugreport</A></FONT>
<BR><FONT SIZE=2>it would make it simpler to find.</FONT>
</P>

<P><FONT SIZE=2>>I reduced down the size of the HP-UX client message - no longer sending</FONT>
<BR><FONT SIZE=2>>ps/top/vmstat output; still blowing up. </FONT>
</P>

<P><FONT SIZE=2>Please send me a copy of the client message. You'll find it in</FONT>
<BR><FONT SIZE=2>~hobbit/client/tmp/msg.txt on the HP-UX server. I've had one other report</FONT>
<BR><FONT SIZE=2>of HP-UX clients causing the hobbitd_client module to crash, so there is</FONT>
<BR><FONT SIZE=2>probably something special about the client messages from HP-UX based</FONT>
<BR><FONT SIZE=2>systems that trigger this.</FONT>
</P>
<BR>

<P><FONT SIZE=2>>Also, has anyone configured hobbit server to work with a number of HPUX</FONT>
<BR><FONT SIZE=2>>clients? Looking to handle around 50 HPUX servers and 50 Windows servers</FONT>
<BR><FONT SIZE=2>>into a single Hobbit server. </FONT>
</P>

<P><FONT SIZE=2>Shouldn't be a problem. I have about 1500 clients reporting into one Hobbit</FONT>
<BR><FONT SIZE=2>server (HP-UX, Solaris, Windows, AIX).</FONT>
</P>
<BR>

<P><FONT SIZE=2>Henrik</FONT>
</P>
<BR>

<P><FONT SIZE=2>To unsubscribe from the hobbit list, send an e-mail to</FONT>
<BR><FONT SIZE=2>hobbit-unsubscribe@hswn.dk</FONT>
</P>

</BODY>
</HTML>