We were able to identify that sequence of events that lead to something similar on a node behind a relay (details below). In that case, the generation failed because a file wasn't find for the new node, but it could be in a different timing, it's an other group whose computing is not yet done, and that group lead to a silent missing "promises.cf".
- Node with the missing
promises.cf
appears with API
2025-07-15 12:04:32+0200 INFO nodes - API request for creating nodes: [d4c955a2-74d8-4908-9c95-139ebba251b2 (accepted)]
(snip)
- dynamic where being updated, some start to get it - see the appearance of the second node here:
2025-07-15 12:04:36+0200 INFO dynamic-group - Dynamic group f291e535-...: added node with id: [ 0b1c201d-0ac4-4ee8-86f8-77bb4c0b4bcc
], removed: nothing
2025-07-15 12:04:36+0200 INFO dynamic-group - Dynamic group 14e5ec74-...: added node with id: [ d4c955a2-74d8-4908-9c95-139ebba251b2
, 0b1c201d-0ac4-4ee8-86f8-77bb4c0b4bcc ], removed: nothing
- node detected and asking for a generation
2025-07-15 12:04:43+0200 INFO nodes - Update in node 'd4c955a2-74d8-4908-9c95-139ebba251b2' inventories main information detected: triggering dynamic group update and a policy generation
2025-07-15 12:04:44+0200 INFO dynamic-group - Dynamic group all-nodes-with-cfengine-agent: added node with id: [ d4c955a2-74d8-4908-9c95-139ebba251b2 ], removed: nothing
2025-07-15 12:04:44+0200 INFO dynamic-group - Dynamic group hasPolicyServer-39ef812a-XXX: added node with id: [ d4c955a2-74d8-4908-9c95-139ebba251b2 ], removed: nothing
(snip)
- End of generation A in error
2025-07-15 12:05:50+0200 INFO policy.generation.timing - Policy generation failed after: 1 min 28 s
Can't stat file '/var/rudder/share/39ef812a-XXX/share/d4c955a2-74d8-4908-9c95-139ebba251b2/rules.new/cfengine-community/promises.cf' for parsing. (stat: No such file or directory)][stderr:] (for node(s)
2025-07-15 12:05:50+0200 INFO policy.generation - Start policy generation, checking updated rules
(snip)
2025-07-15 12:07:09+0200 INFO policy.generation.manager - Successful policy update 'xxx' [started 2025-07-15 12:05:50 - ended 2025-07-15 12:07:09]