AnsweredAssumed Answered

No se pudieron recuperar las etiquetas

Question asked by alkalde on Apr 15, 2014
Latest reply on Apr 15, 2014 by alkalde
Hola de nuevo, vuelvo a la carga con otra consulta.

Hace unos días instalé un Alfresco Community 4.2.f en un Ubuntu, utilicé el paquete que deja instalado el tomcat junto con alfresco y demás herramientas. El caso es que esta insatalación no iba bien el consumo de CPU y memoria era desproporcionado. Lo solucioné instalando el tomcat y alfresco por separado.

Y ahora viene mi problema, reutilicé la base de datos que ya tenía de la instalación previa y el directorio alf_data para aprovechar los datos y configuraciones que ya tenía hechas. Antes la instalación de todo Alfresco estaba en la ruta /opt/alfresco incluyendo dentro el directorio tomcat con su contenido. Ahora tengo /opt/alfresco con el alf_data y demás contenidos de scripts y herramientas externas, (libreoffice, pdf2swf …) y por otro lado tengo /opt/tomcat con los ficheros war de alfresco y share. Creo que los problemas vienen por cambiar las rutas respecto al instalación primera al reutilizar la base de datos de la primera instalación.

Cuando accedo al Share me aparece el mensaje en rojo "No se pudieron recuperar las etiquetas" , si me voy a Herramientas de Administración y le doy a Administrador de Etiquetas, me sale el siguiente mensaje:
<blockcode>
03150039 Wrapped Exception (with status template): 03150375 Failed to execute script classpath*:alfresco/templates/webscripts/org/alfresco/repository/tagging/tags.get.js': 03150374
</blockcode>

Igualmente si le doy a Administrador de Categorías me aparece:

<blockcode>
JavaException: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 03150379
</blockcode>

En el log catalina.out tengo:

<blockcode>
2014-04-15 09:54:20,342  ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-9] Exception from executeScript - redirecting to status template error: 03150028 Wrapped Exception (with status template): 03150336 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 03150335 Failed to execute search: ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
org.springframework.extensions.webscripts.WebScriptException: 03150028 Wrapped Exception (with status template): 03150336 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 03150335 Failed to execute search: ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:422)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
Caused by: org.alfresco.scripts.ScriptException: 03150336 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 03150335 Failed to execute search: ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:204)
   at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   … 31 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 03150335 Failed to execute search: ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
   at org.alfresco.repo.jscript.Search.query(Search.java:827)
   at org.alfresco.repo.jscript.Search.query(Search.java:782)
   at org.alfresco.repo.jscript.Search.query(Search.java:741)
   at org.alfresco.repo.jscript.Search.luceneSearch(Search.java:329)
   at org.alfresco.repo.jscript.Search.luceneSearch(Search.java:314)
   at sun.reflect.GeneratedMethodAccessor1478.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c2._c1(file:/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js:51)
   at org.mozilla.javascript.gen.c2.call(file:/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   at org.mozilla.javascript.gen.c2._c0(file:/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js:184)
   at org.mozilla.javascript.gen.c2.call(file:/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c2.call(file:/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.mozilla.javascript.gen.c2.exec(file:/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)
   … 36 more
Caused by: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 03150334
   at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:490)
   at org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:49)
   at org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:348)
   at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:78)
   at sun.reflect.GeneratedMethodAccessor899.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy33.query(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor899.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   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 net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
   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 com.sun.proxy.$Proxy33.query(Unknown Source)
   at org.alfresco.repo.jscript.Search.query(Search.java:807)
   … 57 more
Caused by: java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:579)
   at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
   at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:451)
   at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:140)
   at org.alfresco.encryption.ssl.AuthSSLProtocolSocketFactory.createSocket(AuthSSLProtocolSocketFactory.java:168)
   at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
   at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
   at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
   at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
   at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:444)
   … 84 more
</blockcode>

He comprobado que el fichero tagQuery.get.js existe en la ruta que aparentemente es buscado, en :

/opt/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/collaboration

En esta ruta tengo:
<blockcode>
blogSpace.get.desc.xml          colleaguePresence.get.html.ftl  forumSummary.get.js          tagActions.post.desc.xml
blogSpace.get.html.ftl          colleaguePresence.get.js        gallery.get.desc.xml         tagActions.post.js
blogSpace.get.js                docLibrary.get.desc.xml         gallery.get.js               tagActions.post.json.ftl
blogSummary.get.desc.xml        docLibrary.get.html.ftl         gallery.get.xml.ftl          tagQuery.get.desc.xml
blogSummary.get.html.ftl        docSummary.get.desc.xml         gallerySummary.get.desc.xml  tagQuery.get.js
blogSummary.get.js              docSummary.get.html.ftl         gallerySummary.get.html.ftl  tagQuery.get.json.ftl
calendar.get.desc.xml           docSummary.get.js               gallerySummary.get.js        viewgallery.get.desc.xml
calendar.get.html.ftl           emailSummary.get.desc.xml       projectSpace.get.desc.xml    viewgallery.get.html.ftl
calendarSummary.get.desc.xml    emailSummary.get.html.ftl       projectSpace.get.html.ftl    viewgallery.get.js
calendarSummary.get.html.ftl    emailSummary.get.js             projectSpace.get.js
calendarSummary.get.js          forumSummary.get.desc.xml       tagActions.get.desc.xml
colleaguePresence.get.desc.xml  forumSummary.get.html.ftl       tagActions.get.html.ftl
</blockcode>

¿Alguien me podría dar alguna pista de como solucionar esto?

Muchas gracias por adelantado.

Un saludo.

Outcomes