Actions
Bug #23954
closedFileTemplate technique fails with an error on the Directory-Create method call
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
Multiple issues here:
PS C:\Users\administrator> rudder agent run [01:13:08 ERR] > Could not load policy file 'C:\Program Files\Rudder\policy\fileTemplate\1_0_dd3c8a75_61c5_48e8_bfce_d546c2eeaef9\fileTemplate.ps1'. [01:13:08 ERR] > : At C:\Program Files\Rudder\policy\fileTemplate\1_0_dd3c8a75_61c5_48e8_bfce_d546c2eeaef9\fileTemplate.ps1:34 char:51 + for ($i=0; $i -lt $trackingkeys.length; $i++) { + ~ + CategoryInfo : ParserError: (:) [], ParseException + FullyQualifiedErrorId : MissingEndCurlyBrace Rudder agent 8.0.4.2000000000 Node uuid: 0b79faf0-ebff-4023-8265-4683f82194ff Start execution with config [20231222-091231-7506dd06] Mode State Technique Component Key Message Enforce control Common start 20231222-091231-7506dd06 Start execution Enforce result_success dsc-common Reporting configuration NXLog File C:\Program Files (x86)\nxlog\conf\nxlog.conf does not exists Enforce result_na dsc-common Service status nxlog Not applicable Enforce result_success dsc-common System variables data Defined Rudder properties, inventory variables and parameters. Enforce result_repaired dsc-common Agent tasks Rudder-Agent The Rudder-Agent task was succesfully created Enforce result_repaired dsc-common Agent tasks Rudder-Inventory The Rudder-Inventory task was succesfully created Enforce result_success dsc-common Log system for reports None All reports were successfully sent Enforce result_success dsc-common Prerun check $env:PATH Rudder presence in $env:PATH was correct fileTemplate_1_0_dd3c8a75_61c5_48e8_bfce_d546c2eeaef9 : The term 'fileTemplate_1_0_dd3c8a75_61c5_48e8_bfce_d546c2eeaef9' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Program Files\Rudder\policy\rudder-directives.ps1:29 char:3 + fileTemplate_1_0_dd3c8a75_61c5_48e8_bfce_d546c2eeaef9 -ReportId '32 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (fileTemplate_1_...ce_d546c2eeaef9:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Enforce control Common end 20231222-091231-7506dd06 End execution ## Summary ##################################################################### execution time: 5.68s ################################################################################
Updated by Félix DALLIDET 11 months ago
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
Updated by Félix DALLIDET 11 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from Félix DALLIDET to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1838
Updated by Félix DALLIDET 11 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|bfb5246e94166c16b50cc5298806579db40d89d4.
Updated by Elaad FURREEDAN 10 months ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ 9 months ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.3.11 which was released today.
Actions