Project

General

Profile

Actions

Bug #19755

closed

Inventories are not processed by Rudder 6.2

Added by Nicolas CHARLES over 3 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

it seems that inventories are not processed, on a Rudder 6.2, in the following case (may or may not be the cause):
  • many inventories in /var/rudder/incoming
  • several with same hostname and different uuid
  • 12 threads for inventory processing
[2021-08-10 14:32:48+0200] DEBUG inventory-processing - Not starting process of 'nodename-uuid.ocs.sign': already processing.
[2021-08-10 14:32:49+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 14:32:50+0200] DEBUG inventory-processing - Enter pre-processed inventory for nodename-uuid.ocs with blocking='true' and current backend queue size=0 (saturated=false)
[2021-08-10 14:32:50+0200] DEBUG inventory-processing - Start parsing inventory 'nodename-uuid.ocs'
[2021-08-10 14:32:51+0200] DEBUG inventory-processing - Inventory 'nodename-uuid.ocs' for node 'uuid' pre-processed in 367 milliseconds ms
[2021-08-10 14:32:54+0200] INFO  inventory-processing - Inventory 'nodename-uuid.ocs' for node 'nodename.com.local' [uuid] (signature:certified) processed in 1 second and 143 milliseconds
[2021-08-10 14:49:08+0200] DEBUG inventory-processing - Watch incoming signature file '/var/rudder/inventories/incoming/nodename-uuid.ocs.sign' but no corresponding inventory available: waiting
[2021-08-10 14:49:09+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 14:53:18+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 14:53:19+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 15:02:48+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 15:02:48+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 15:03:09+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 15:03:10+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 15:12:48+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.
[2021-08-10 15:12:48+0200] INFO  inventory-processing - Watch new inventory file 'nodename-uuid.ocs' with signature available: process.

it might also be caused by

Fiber failed.
An unchecked error was produced.
scala.MatchError: Some(localhost) (of class scala.Some)
        at com.normation.inventory.provisioning.fusion.FusionReportUnmarshaller.getHostname(FusionReportUnmarshaller.scala:267)
        at com.normation.inventory.provisioning.fusion.FusionReportUnmarshaller.fromXmlDoc(FusionReportUnmarshaller.scala:113)
        at com.normation.inventory.services.provisioning.PipelinedReportUnmarshaller.$anonfun$fromXmlDoc$3(ReportUnmarshaller.scala:122)
        at zio.internal.FiberContext.evaluateNow(FiberContext.scala:916)
        at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:778)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

Fiber:Id(1628598767292,153) was supposed to continue to:
  a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:237)
  a future continuation at zio.ZIO.run(ZIO.scala:1640)


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #19632: Incorrect pattern matching leads to error in inventory parsingReleasedElaad FURREEDANActions
Actions #1

Updated by Nicolas CHARLES over 3 years ago

  • Related to Bug #19632: Incorrect pattern matching leads to error in inventory parsing added
Actions #2

Updated by Nicolas CHARLES over 3 years ago

  • Status changed from New to Rejected

it was caused by

Fiber failed.
An unchecked error was produced.
scala.MatchError: Some(localhost) (of class scala.Some)
        at com.normation.inventory.provisioning.fusion.FusionReportUnmarshaller.getHostname(FusionReportUnmarshaller.scala:267)
        at com.normation.inventory.provisioning.fusion.FusionReportUnmarshaller.fromXmlDoc(FusionReportUnmarshaller.scala:113)
        at com.normation.inventory.services.provisioning.PipelinedReportUnmarshaller.$anonfun$fromXmlDoc$3(ReportUnmarshaller.scala:122)
        at zio.internal.FiberContext.evaluateNow(FiberContext.scala:916)
        at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:778)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Actions

Also available in: Atom PDF