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

[IDD #ORW-949630]: pqact file issues

Hi Tim,

> I am working on getting my configuration files edited and ready for getting
> my new ldm running. In editing my pqact file, I copied a line from an older
> ldm pact file that is working and running on a Mandriva OS that will serve
> as a file action for my radar software.


> My upstream sites for Nexrad2 data are: idd.tamu.edu, idd.meteo.psu.edu,
> and idd.unidata.ucar.edu

Very good.

> Afterwards, I ran ldmadmin pqactcheck and received this error
> Aug 19 20:10:48 pqact[21429] NOTE: Starting Up
> Aug 19 20:10:48 pqact[21429] ERROR: Syntax error at line 172, not enough 
> fields
> Aug 19 20:10:48 pqact[21429] ERROR: Error in configuration-file 
> "/home/ldm/etc/pqact.conf"
> Aug 19 20:10:48 pqact[21429] NOTE: Exiting--

OK, so the pattern in the pqact.conf pattern-action file has an error in it.

> The line in question is the following:
> NEXRAD  ^SDUS5. .... ([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(...)(...)
> FILE -close data/nexrad/\5/\4/\4_(\1:yyyy)(\1:mm)\1_\2\3

The problem is most likely that some of the whitespace in pattern-action
file actions are tabs, not spaces.  Written to accentuate the location
of tabs, your entry will look like:

NEXRAD<tab>^SDUS5. .... ([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(...)(...)

The solution is to edit your pattern-action file and replace the spaces
with tabs as indicated by the accentuated listing.

> This was the line I copied from the pqact file from another working ldm, so
> I am confused as to why there is a problem with the syntax.

If you cut and pasted the entry from a terminal window, it is likely
that the tabs were replaced/interpreted as spaces.

> Can you help
> me figure out how to set up the line correctly? I am using Ubuntu 14.04 as
> my Linux OS.

After making the editing changes listed above, check the integrity of
your pattern-action file actions again using:

<as 'ldm'>

ldmadmin pqactcheck

If there are no errors indicated, you should be able to start your LDM
without errors.


Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
Unidata HomePage                       http://www.unidata.ucar.edu

Ticket Details
Ticket ID: ORW-949630
Department: Support IDD
Priority: Normal
Status: Closed