AnsweredAssumed Answered

Share import of wiki site with error

Question asked by paladinemishakal on Jul 19, 2012
Hi All,

I have Alfresco 4.0.d installed and I am trying to export some shares to another alfresco server with the same build. I downloaded the share-import-export python script at http://code.google.com/p/share-import-export/

I am able to successfully export the share site using this command:
$ python export-site.py systemadmin /tmp/systemadmin.json –username=alfresco –password="xxxxx" –url=http://test.abc.com/share –export-content
Log in (alfresco)
Get site information
Export all site content
Export documentLibrary
Export wiki
Saving /tmp/systemadmin-documentLibrary.acp
Saving /tmp/systemadmin-wiki.acp
Log out (alfresco)

Next I tried to import the share to the other alfresco server and before that I have checked that I have all the users created.

I got this error at the importing of the Wiki section
$ python import-site.py ~/engage/systemadmin.json –username=alfresco –password="xxxxxxxxx" –url=http://10.25.3.51:8080/share –containers=documentLibrary,wiki
Log in (alfresco)
Create site 'systemadmin'
Set site configuration
Set dashboard configuration
Setting config for dashlet page.component-1-1.site~systemadmin~dashboard
Setting config for dashlet page.component-1-2.site~systemadmin~dashboard
Setting config for dashlet page.component-2-1.site~systemadmin~dashboard
Setting config for dashlet page.component-2-2.site~systemadmin~dashboard
Add site members
Import documentLibrary content
Import wiki content
Log out (alfresco)
Traceback (most recent call last):
  File "import-site.py", line 241, in <module>
    main(sys.argv[1:])
  File "import-site.py", line 219, in main
    sc.importSiteContent(siteId, container, file(acpFile, 'rb'), deleteTempFiles)
  File "/home/alfresco/temp/share-import-export/alfresco.py", line 519, in importSiteContent
    self.updateProperties(nodeRef, {'prop_cm_title': f.name})
  File "/home/alfresco/temp/share-import-export/alfresco.py", line 599, in updateProperties
    return self.doJSONPost('proxy/alfresco/api/node/%s/formprocessor' % (urllib.quote(str(nodeRef).replace('://', '/'))), properties)
  File "/home/alfresco/temp/share-import-export/alfresco.py", line 137, in doJSONPost
    resp = self.doPost(path, dataStr, 'application/json; charset=UTF-8', method)
  File "/home/alfresco/temp/share-import-export/alfresco.py", line 120, in doPost
    return self.doRequest(method, path, data, dataType)
  File "/home/alfresco/temp/share-import-export/alfresco.py", line 112, in doRequest
    raise SurfRequestError(method, e.url, e.code, e.msg, e.hdrs, e.fp)
alfresco.SurfRequestError: Spring Surf Error 500 (Internal Server Error): "Failed to import package at line 1078; column 21 due to error: Association {http://www.alfresco.org/model/rendition/1.0}rendition is not valid for node {http://www.alfresco.org/model/content/1.0}content"

On the tomcat logs, I got this:
2012-07-19 15:56:51,739  ERROR [extensions.webscripts.AbstractRuntime] [http-8080-12] Exception from executeScript - redirecting to status                 template error: Failed to import package at line 1078; column 21 due to error: Association {http://www.alfresco.org/model/rendition/1.0}re                ndition is not valid for node {http://www.alfresco.org/model/content/1.0}content
org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 1078; column 21 due to error: Association {http://www.al                fresco.org/model/rendition/1.0}rendition is not valid for node {http://www.alfresco.org/model/content/1.0}content
        at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
        at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:414)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:263)
        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:309)
        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.jav                a:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy69.importView(Unknown Source)
        at org.alfresco.repo.action.executer.ImporterActionExecuter.executeImpl(ImporterActionExecuter.java:163)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:196)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:780)
        at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:66)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:196)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:780)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:700)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:538)
        at sun.reflect.GeneratedMethodAccessor1056.invoke(Unknown Source)
        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:309)
        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.jav                a:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy37.executeAction(Unknown Source)
        at org.alfresco.repo.rule.RuleServiceImpl.executeAction(RuleServiceImpl.java:1222)
        at org.alfresco.repo.rule.RuleServiceImpl.executeRule(RuleServiceImpl.java:1216)
        at org.alfresco.repo.rule.RuleServiceImpl.executePendingRule(RuleServiceImpl.java:1163)
        at org.alfresco.repo.rule.RuleServiceImpl.executePendingRulesImpl(RuleServiceImpl.java:1114)
        at org.alfresco.repo.rule.RuleServiceImpl.executePendingRules(RuleServiceImpl.java:1087)
        at org.alfresco.repo.rule.RuleTransactionListener.beforeCommit(RuleTransactionListener.java:57)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:747)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:727)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:687)
        at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:95)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:927)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:737)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:472)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:410)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:316)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.alfresco.service.cmr.view.ImporterException: Association {http://www.alfresco.org/model/rendition/1.0}rendition is not valid for node {http://www.alfresco.org/model/content/1.0}content
        at org.alfresco.repo.importer.view.ParentContext.<init>(ParentContext.java:109)
        at org.alfresco.repo.importer.view.ViewParser.processStartAssoc(ViewParser.java:837)
        at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:333)
        at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
        … 82 more

Can anyone advise me where did I go wrong or what do I have to do?

Thanks & Regards.

Outcomes