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

[LDM #BJD-928111]: LDM Queue corruption


> The following little snippet has been plaguing my LDM server for the
> past few weeks (I have been adjusting my pqact.conf/ldmd.conf as I learn
> which headers I really need from NIMAGE and FNEXRAD) it doesn't matter
> if I delete the queue and rebuild it, or use pqcat and pqcheck whenever
> I restart LDM I get the error.
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> address@hidden ~]$ ldmadmin restart
> Flushing the LDM product-queue to disk...
> Stopping the LDM server...
> Waiting for the LDM to terminate
> The writer-counter of the product-queue isn't zero.  Eithera process
> has the product-queue open for writing or the queuemight be corrupt.
> Terminate the process and recheck or use
> pqcat -l- -s -q /usr/local/ldm/data/ldm.pq && pqcheck -F -q
> /usr/local/ldm/data/ldm.pq
> to validate the queue and set the writer-counter to zero.
> Apr 14 20:31:18 UTC feeds.michiganwxsystem.net : LDM not started
> address@hidden ~]$ bin/pqcat -l- -s -q /usr/local/ldm/data/ldm.pq
> Apr 14 20:32:21 pqcat NOTE: Starting Up (16677)
> Apr 14 20:32:21 pqcat ERROR: pqcat queueSanityCheck: Product count doesn't
> match
> Apr 14 20:32:21 pqcat ERROR: products tallied: 37411   Value in queue: 37508
> Apr 14 20:32:21 pqcat NOTE: Exiting
> Apr 14 20:32:21 pqcat NOTE: Number of products 37411
> address@hidden ~]$ bin/pqcheck -F -q data/ldm.pq
> Apr 14 20:32:50 pqcheck NOTE: Starting Up (16832)
> Apr 14 20:32:50 pqcheck NOTE: Exiting
> address@hidden ~]$ ldmadmin start
> The product-queue is OK.
> Checking pqact(1) configuration-file(s)...
> /usr/local/ldm/etc/pqact.conf: syntactically correct
> Checking LDM configuration-file (/usr/local/ldm/etc/ldmd.conf)...
> Starting the LDM server...
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> is there a way to fix?? or should I just get use to delqueue and mkqueue
> when I restart??

Unconditionally executing the command "pqcheck -F -q" after the command
"pqcat -l- -s -q /usr/local/ldm/data/ldm.pq" won't fix a corrupt queue
if the latter command returned with a non-zero exit status.

I suspect that you have some process that's holding the queue open for
writing that's not executed by an EXEC entry in the the LDM server's
configuration-file, etc/ldmd.conf.  As a consequence, the  process
doesn't terminate when the LDM is restarted.

> Jeff Lake K8JSL
> http://www.MichiganWxSystem.com
> https://www.TheWeatherCenter.net

Steve Emmerson

Ticket Details
Ticket ID: BJD-928111
Department: Support LDM
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.