04-29-2010 11:51 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 12:06 PM
05-25-2010 11:15 AM
export -user admin -pwd *** -s workspace://SpacesStore -path /sys:system/sys:authorities -verbose -overwrite gruppi
import -user admin -pwd *** -s workspace://SpacesStore -path /sys:system/sys:authorities -verbose -uuidBinding UPDATE_EXISTING gruppi
Tuttavia, una volta completato l'import, anche se i gruppi sono presenti sulla base di dati, probabilmente non li vedrai ancora se accedi alla console "Manage User Groups" . Nel caso si presentasse quest'anomalia prova a dare un'occhiata a questo link: http://forums.alfresco.com/en/viewtopic.php?f=6&t=2672106-04-2010 01:09 PM
Alfresco upgrade paths
When you upgrade Alfresco, it is recommended that you follow a structured upgrade path between versions.
The following list shows the supported upgrade paths:
• Version 2.1.x to Version 2.1.7 to Version 3.1.x
• Version 2.2.x to Version 2.2.4 to Version 3.1.x
• Version 2.1.x to Version 2.1.7 to Version 3.2.x
• Version 2.2.x to Version 2.2.5 to Version 3.2.x
• Version 3.1.x to Version 3.2.x
For example, if your production environment currently runs Alfresco Version 2.2.1, you need to upgrade to Version 2.2.4 before you can upgrade to Version 3.1.x.
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.