Project

General

Profile

Actions

Bug #3414

closed

restoring an archive throws the "Error when importing groups, Directive library and Rules." message

Added by Arthur ANGLADE over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
Arthur ANGLADE
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

i created some rules, archived everything, and then deleted the rules. When i tried to restore them from the archive, i got an error message.

Here is the git commit history in the configuration repository :

commit ac3e3147938c57e77a6203b8bbba911464709b80
Author: jon.doe <email not set>
Date: Wed Apr 10 15:31:01 2013 +0200

Delete archive of rule with ID 'bf7375e0-c2c1-4323-abe1-2b32b95534dd'
Reason provided by user:

commit 415653ee2904cb2915e6b9a141a86377e91a4fa1
Author: jon.doe <email not set>
Date: Wed Apr 10 15:30:55 2013 +0200

Delete archive of rule with ID '2e5dc9e9-6254-46ca-b82c-0b1cafa033e4'
Reason provided by user:

commit 5be01fa320f8e0a442bc9a032ba86f03d7439dd4
Author: jon.doe <email not set>
Date: Wed Apr 10 15:30:48 2013 +0200

Delete archive of rule with ID '2d2c14da-a7a7-400e-a94d-ce0eecf10e18'
Reason provided by user:

commit 97870d1f21278a5d64de8b7ede58a99036dd60a8
Author: jon.doe <email not set>
Date: Wed Apr 10 15:30:41 2013 +0200

Delete archive of rule with ID '664058fe-269e-44b3-9c98-1dd1edaa8555'
Reason provided by user:

commit 22622f8e2a7a29c3bc83ed913621ca3efdb7f8dd
Author: jon.doe <email not set>
Date: Wed Apr 10 15:11:46 2013 +0200

#full-archive Archive and tag groups, technique library and rules, reason: User requested archive creation

Here is the log from the rudder-snapshot-2.6.normation.com :

2013-04-10 15:31:14] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing full archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:31:14] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:31:14] ERROR com.normation.rudder.repository.ldap.WoLDAPRuleRepository - Failure(Can not move 'ou=Rules,ou=Rudder,cn=rudder-configuration' to new parent 'ou=Archives,ou=Rudder,cn=rudder-configuration': new superior not found,Full(LDAPException(resultCode=32 (no such object), errorMessage='new superior not found', diagnosticMessage='new superior not found')),Empty)
[2013-04-10 15:31:14] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to add entry 'ruleId=inventory-all,ou=Rules,ou=Rudder,cn=rudder-configuration'.  Reported exception was: no such object
com.unboundid.ldap.sdk.LDAPException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.add(LDAPConnection.java:1648) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:31:14] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to add entry 'ruleId=root-DP,ou=Rules,ou=Rudder,cn=rudder-configuration'.  Reported exception was: no such object
com.unboundid.ldap.sdk.LDAPException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.add(LDAPConnection.java:1648) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:31:14] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to add entry 'ruleId=hasPolicyServer-root,ou=Rules,ou=Rudder,cn=rudder-configuration'.  Reported exception was: no such object
com.unboundid.ldap.sdk.LDAPException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.add(LDAPConnection.java:1648) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:31:14] INFO  com.normation.rudder.repository.ldap.WoLDAPRuleRepository - Rollback rules
[2013-04-10 15:31:14] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when importing groups, Directive library and Rules. <- Rollbacked imported rules to previous state <- Can not move 'ou=Rules,ou=Rudder,cn=rudder-configuration' to new parent 'ou=Archives,ou=Rudder,cn=rudder-configuration': new superior not found
[2013-04-10 15:31:14] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPException(resultCode=32 (no such object), errorMessage='new superior not found', diagnosticMessage='new superior not found')
[2013-04-10 15:31:22] WARN  non-compliant-reports - [2013-04-10 15:31:00+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_repaired] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Security parameters] V: [None] Some internal security parameters were adjusted
[2013-04-10 15:31:22] ERROR non-compliant-reports - [2013-04-10 15:31:00+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Binaries update] V: [None] An error occurred while updating the CFengine binaries in /var/rudder/cfengine-community/bin
[2013-04-10 15:31:22] ERROR non-compliant-reports - [2013-04-10 15:31:01+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: BF7375E0-C2C1-4323-ABE1-2B32B95534DD [Unknown rule] D: E462292B-40A2-4A14-B2C3-3F42DB18A919 [change permission on jquery] T: filesPermissions/1.1 C: [File permissions] V: [/home/jquery] The requested group () was not found on this machine: /home/jquery's group can't be set
[2013-04-10 15:31:22] ERROR non-compliant-reports - [2013-04-10 15:31:01+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: root-DP [Unknown rule] D: root-distributePolicy [Distribute Policy] T: distributePolicy/1.0 C: [Send inventories to CMDB] V: [None] Some inventories failed to add successfully to Rudder
[2013-04-10 15:31:34] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:31:34] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:31:34] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:31:34] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:31:41] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:36:15] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id '061fa416e5a0e503b0442d1d87165ed8c2dce02f'
[2013-04-10 15:36:15] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:36:15] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:36:15] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:36:18] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id '771ff1d0343ccbfd36621e3e383b65ff7a2f5fcd'
[2013-04-10 15:36:18] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:36:18] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:36:18] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:36:20] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:36:20] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:36:20] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:36:20] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:36:21] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id 'HEAD'
[2013-04-10 15:36:21] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:36:22] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:36:22] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:36:22] WARN  non-compliant-reports - [2013-04-10 15:35:50+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_repaired] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Security parameters] V: [None] Some internal security parameters were adjusted
[2013-04-10 15:36:22] ERROR non-compliant-reports - [2013-04-10 15:35:50+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Binaries update] V: [None] An error occurred while updating the CFengine binaries in /var/rudder/cfengine-community/bin
[2013-04-10 15:36:22] ERROR non-compliant-reports - [2013-04-10 15:35:50+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: root-DP [Unknown rule] D: root-distributePolicy [Distribute Policy] T: distributePolicy/1.0 C: [Send inventories to CMDB] V: [None] Some inventories failed to add successfully to Rudder
[2013-04-10 15:36:25] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id '7b78c23f074497fa076743f6d4c9762b26cf9fad'
[2013-04-10 15:36:25] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:36:25] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:36:25] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:36:27] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:37:17] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing full archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:37:17] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:37:18] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:37:18] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when importing groups, Directive library and Rules. <- Can't execute LDAP request
[2013-04-10 15:37:18] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:37:22] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing groups archive with id '30ab0c22912402a5e9b2d8a7c2a514e477fcc318'
[2013-04-10 15:37:22] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when importing groups. <- Error when swapping serialised library and existing one in LDAP <- Error when arching current Library with DN 'groupCategoryId=GroupLibrary-2013-04-10T15:37:22.323\+02:00,ou=Archives,ou=Rudder,cn=rudder-configuration' to LDAP <- Can not move 'groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration' to new parent 'ou=Archives,ou=Rudder,cn=rudder-configuration': new superior not found
[2013-04-10 15:37:22] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPException(resultCode=32 (no such object), errorMessage='new superior not found', diagnosticMessage='new superior not found')
[2013-04-10 15:37:25] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing rules archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:37:25] ERROR com.normation.ldap.sdk.ROPooledSimpleAuthConnectionProvider - Can't execute LDAP request
com.unboundid.ldap.sdk.LDAPSearchException: no such object
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]
[2013-04-10 15:37:25] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when imporing Rules. <- Can't execute LDAP request
[2013-04-10 15:37:25] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPSearchException(resultCode=32 (no such object), numEntries=0, numReferences=0, errorMessage='no such object', matchedDN='ou=Rudder,cn=rudder-configuration')
[2013-04-10 15:37:28] INFO  com.normation.rudder.repository.xml.ItemArchiveManagerImpl - Importing technique library archive with id 'd9a976d8dea27f460552cb490a2597373b9e9e6a'
[2013-04-10 15:37:28] ERROR com.normation.rudder.web.snippet.administration.Archives - Error when importing Directive library. <- Error when swapping serialised library and existing one in LDAP <- Error when arching current Library with DN 'techniqueCategoryId=ActiveTechniqueLibrary-2013-04-10T15:37:28.574\+02:00,ou=Archives,ou=Rudder,cn=rudder-configuration' to LDAP <- Can not move 'techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration' to new parent 'ou=Archives,ou=Rudder,cn=rudder-configuration': new superior not found
[2013-04-10 15:37:28] ERROR com.normation.rudder.web.snippet.administration.Archives - LDAPException(resultCode=32 (no such object), errorMessage='new superior not found', diagnosticMessage='new superior not found')
[2013-04-10 15:42:22] ERROR non-compliant-reports - [2013-04-10 15:41:39+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Binaries update] V: [None] An error occurred while updating the CFengine binaries in /var/rudder/cfengine-community/bin
[2013-04-10 15:42:22] ERROR non-compliant-reports - [2013-04-10 15:41:39+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: root-DP [Unknown rule] D: root-distributePolicy [Distribute Policy] T: distributePolicy/1.0 C: [Send inventories to CMDB] V: [None] Some inventories failed to add successfully to Rudder
[2013-04-10 15:47:22] ERROR non-compliant-reports - [2013-04-10 15:46:28+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Binaries update] V: [None] An error occurred while updating the CFengine binaries in /var/rudder/cfengine-community/bin
[2013-04-10 15:47:22] ERROR non-compliant-reports - [2013-04-10 15:46:28+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: root-DP [Unknown rule] D: root-distributePolicy [Distribute Policy] T: distributePolicy/1.0 C: [Send inventories to CMDB] V: [None] Some inventories failed to add successfully to Rudder
[2013-04-10 15:51:22] ERROR non-compliant-reports - [2013-04-10 15:51:17+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: hasPolicyServer-root [Unknown rule] D: common-root [Common] T: common/1.0 C: [Binaries update] V: [None] An error occurred while updating the CFengine binaries in /var/rudder/cfengine-community/bin
[2013-04-10 15:51:22] ERROR non-compliant-reports - [2013-04-10 15:51:18+0200] N: root [rudder-snapshot-2.6.normation.com] S: [result_error] R: root-DP [Unknown rule] D: root-distributePolicy [Distribute Policy] T: distributePolicy/1.0 C: [Send inventories to CMDB] V: [None] Some inventories failed to add successfully to Rudder
Actions

Also available in: Atom PDF