[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000613: LDM Start Problems



Ken,
The log message you have:
/home/ldm/etc/ldmd.conf: line 22: syntax error

Means that the process is getting hung from a bad entry in your ldmd.conf file.

In your ldmd.conf file you have:

># LDM5 servers request data
>#
>#request        AFOS
>#       ".*"
>#       ^192\.168\.2\.11$
>
>request     ANY ".*" ^192\.168\.2\.11$
>
>
>
>#

In general, it is not correct to use regular expressions in your request line
for the host pattern, since you would never want to request from a pattern of 
hosts.
You want to make the request to exactly 192.168.2.11. The only place that you
would use regexps is in the pattern to request, eg ".*".

Try changing the request line to:
request ANY     ".*"    192.168.2.11


After that fix, you may also want to comment out the apparently blank lines 
around
that request, just in case you have any hidden control characters floating 
around.

Let me know if this does not solve your problem.

Steve Chiswell
Unidata User Support







>From: "Ken Waters" <address@hidden>
>Organization: NOAA
>Keywords: 200006131919.e5DJJXT16529

>This is a multi-part message in MIME format.
>--------------D7188C8740C89735B2EEBF87
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hello,
>
>We are having a problem with a Linux Redhat 6.2 box that is running
>ldm-5.0.9.  Basically, the ldm software will not start completely.  When
>running 'ldmadmin start' the software gets 'caught' inside either the
>"check_running" or the "check_registered" routines and never comes out
>of the loop until it's control-C'ed.  Upon examination of the log file I
>find it reports a syntax error in the ldmd.conf.  The line it is
>reporting the error in has nothing but an IP for a 'request' command.
>The line uses the standard method of showing an IP....namely anchored on
>the left with a "^" and on the right with a "$" and escaping all the
>periods with a backslash.  This is the same convention that is running
>just fine on another LDM box that is running Linux Redhat 6.1.
>
>I have confirmed that the datafeed is available and connectivity is
>there by issuing a "feedme -h" command.  I have added print statements
>to ldmadmin so that I can see where it is having problems.  The software
>starts up the first rpc.ldmd job just fine, along with its three child
>processes: pqexpire, pqbinstats, and pqact.  If I start clean, i.e.,
>make sure no ldm-related jobs are running, and run "ldmadmin start" the
>first time the infinite loop is in the "check_running" block.  If I then
>ctrl-C it and again wipe off all the ldm processes and restart "ldmadmin
>start" then it passes the "check_running" test but gets caught in the
>"check_registered" test.  Either way, it reports the mysterious "syntax
>error" in the ldmd.conf.
>
>I have attached the ldmd.conf and ldmd.log files to assist you.
>
>Thanks, as always, for your help!
>
>Ken Waters
>NWS Southern Region HQ
>
>--------------D7188C8740C89735B2EEBF87
>Content-Type: text/plain; charset=us-ascii;
> name="ldmd.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="ldmd.log"
>
>Jun 13 19:04:48 wwwldm rpc.ldmd[6540]: Starting Up (built: Apr 26 2000 13:02:2
> 9) 
>Jun 13 19:04:48 wwwldm rpc.ldmd[6540]: /home/ldm/etc/ldmd.conf: line 22: synta
> x error 
>Jun 13 19:04:48 wwwldm rpc.ldmd[6540]: Exiting 
>Jun 13 19:04:48 wwwldm rpc.ldmd[6540]: Terminating process group 
>Jun 13 19:04:48 wwwldm pqexpire[6541]: Starting Up 
>Jun 13 19:04:48 wwwldm pqbinstats[6542]: Starting Up (6540) 
>Jun 13 19:04:48 wwwldm pqact[6543]: Starting Up 
>
>--------------D7188C8740C89735B2EEBF87
>Content-Type: text/plain; charset=us-ascii;
> name="ldmd.conf"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="ldmd.conf"
>
>#####
># $Id: ldmd.conf,v 1.9 1998/10/07 16:51:16 rkambic Exp $
># Sample ldmd.conf for ldm5
>####
>#
># Programs that share a queue with rpc.ldmd
># are started by it and are in the same process group.
>#
>exec    "pqexpire"
>exec    "pqbinstats"
>exec    "pqact"
>#exec   "pqsurf"
>#
># LDM5 servers request data
>#
>#request        AFOS
>#       ".*"
>#       ^192\.168\.2\.11$
>
>request     ANY ".*" ^192\.168\.2\.11$
>
>
>
>##############################################################################
> #
># Begin Access control
>##############################################################################
> #
>#
>##############################################################################
> #
># ALLOW: Who we are willing to feed
>#
># allow <feedset> <hostname pattern>
>##############################################################################
> #
>#
># send anything to your own machine
>allow   ANY
>    ^((localhost|loopback)|(127\.0\.0\.1\.?$)|([a-z].*\.unidata\.ucar\.edu\.?$
> ))
>allow   ANY
>    ^ls1-ehu.srh.noaa.gov
>allow   ANY
>    ^ls1-fwr.srh.noaa.gov
>allow   ANY
>    ^198\.215\.18\.50$
>allow   ANY
>    ^192\.168\.2\.11$
>
>
>#
>##############################################################################
> #
># ACCEPT: Who can feed us, currently this action is only needed for WSI data
>#
># accept <feedset> <pattern> <hostname pattern>
>##############################################################################
> #
># accept anything from yourself
>#
>#accept ANY
>#    .*
>#    ^((localhost|loopback)|(127\.0\.0\.1\.?$))
>#
># accept from your upstream site
>#accept ANY ".*"    ^ls1-ehu.srh.noaa.gov
>accept  ANY ".*"    ^192\.168\.2\.11$
>
>##############################################################################
> #
># End Access control
>##############################################################################
> #
>
>--------------D7188C8740C89735B2EEBF87--
>