04-28-2010 06:12 AM
1. Export the users from the user://alfrescoUserStore. This will generate an alfrescoUserStore-people.xml file. Command: export -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -path /sys:system/sys:people -verbose alfrescoUserStore-people
2. Remove the 'admin' account from alfrescoUserStore-people.xml
3. Export the groups from the user://alfrescoUserStore. This will generate an alfrescoUserStore-authorities.xml file. Command: export -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -path /sys:system/sys:authorities -verbose alfrescoUserStore-authorities
4. Export the users from the workspace://SpacesStore. This will generate an spacesstore-people.xml file. Command: export -user admin -pwd admin -s workspace://SpacesStore -p /sys:system/sys:people -verbose spacesstore-people
5. Remove the <cm:person> element for the "admin" and "guest" accounts from the spacesstore-people.xml file.
6. Copy alfrescoUserStore-people.xml, alfrescoUserStore-authorities.xml and spacesstore-people.xml to the target Alfresco system.
7. Import the users into user://alfrescoUserStore. Command: import -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -p /sys:system/sys:people -uuidBinding UPDATE_EXISTING -verbose alfrescoUserStore-people
8. Import groups into user://alfrescoUserStore. Command: import -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -p /sys:system/sys:authorities -uuidBinding UPDATE_EXISTING -verbose alfrescoUserStore-authorities
9. Import users into workspace://SpacesStore. Command: import -user admin -pwd <PROTECTED> -s workspace://SpacesStore -p /sys:system/sys:people -uuidBinding UPDATE_EXISTING -verbose spacesstore-people
10. Restart Alfresco where the users were imported.
Alfresco Repository Importer
Connected as admin
Time to login 68.63162 seconds
Importing from package /Users/michele/Desktop/alfrescoUserStore-authorities.xml
Failed to import package due to Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location caused by: Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location
org.alfresco.tools.ToolException: Failed to import package due to Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location
at org.alfresco.tools.Import.execute(Import.java:229)
at org.alfresco.tools.Tool.start(Tool.java:226)
at org.alfresco.tools.Import.main(Import.java:60)
Caused by: org.alfresco.service.cmr.view.ImporterException: Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location
at org.alfresco.repo.importer.ImporterComponent.getNodeRef(ImporterComponent.java:261)
at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:43)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:135)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy83.importView(Unknown Source)
at org.alfresco.tools.Import.execute(Import.java:225)
… 2 more
04-29-2010 11:39 AM
04-29-2010 12:05 PM
05-12-2010 03:17 AM
05-18-2010 02:11 PM
Hi,Also try to change target store in step 3 !
I tried to do the same process and i found, that authorities are moved from user://alfrescoUserStore
to workspace://SpacesStore/.
Try to change target store in step 8.
3. export -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -path /sys:system/sys:authorities -verbose alfrescoUserStore-authorities
To:3. export -user admin -pwd <PROTECTED> -s workspace://SpacesStore -path /sys:system/sys:authorities -verbose alfrescoSpaceStore-authorities
08-12-2013 06:35 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.