Project

General

Profile

Actions

Bug #17862

closed

error when importing techniques and running reload-techniques in 6.1

Added by Nicolas CHARLES over 4 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

I unziped a full archive in /var/rudder/configuration-repository/ and executed

# rudder server reload-techniques
error: Could not reload techniques from files
Error: An error occured when updating the Technique library from file system
cause:Accumulated: Error when automatically activating technique 'NTP_configuration'; cause was: Consistancy: Can not add a technique with id 'NTP_configuration' in user library. active technique 'activeTechniqueId=0075285c-8da9-4fc9-be46-3a9bf03f5f29,techniqueCategoryId=ncf_techniques,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration}' is already defined with such a reference technique.

it does work but this is surprising
webapp logs says
[2020-06-29 12:55:45+0000] INFO  com.normation.rudder.services.policies.TechniqueAcceptationUpdater - Automatically addi
ng technique 'Desactivate_Telnet' in category 'User Techniques (ncf_techniques)' of active techniques library
[2020-06-29 12:55:45+0000] INFO  com.normation.rudder.services.policies.DeployOnTechniqueCallback - Technique library re
loaded from REST API
[2020-06-29 12:55:45+0000] ERROR com.normation.rudder.rest.v1.RestTechniqueReload - An error occured when updating the Technique library from file system <- Accumulated: Error when automatically activating technique 'NTP_configuration'; cause was: Consistancy: Can not add a technique with id 'NTP_configuration' in user library. active technique 'activeTechniqueId=0075285c-8da9-4fc9-be46-3a9bf03f5f29,techniqueCategoryId=ncf_techniques,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration}' is already defined with such a reference technique.


Related issues 3 (2 open1 closed)

Related to Rudder - Bug #17690: When creating a user technique with restore archive, policy are not correctly regeneratedNewActions
Related to Rudder - Bug #17774: Duplicate category name error when saving a new user techniqueReleasedVincent MEMBRÉActions
Related to Rudder - Bug #20520: Error while importing ncf techniques using the restore from latest commit featureNewActions
Actions

Also available in: Atom PDF