cancel
Showing results for 
Search instead for 
Did you mean: 

[solved] Share -> Document Library stopped working after upgrade (3.4.e -> 4.0.e)

toaijala
Champ in-the-making
Champ in-the-making
I upgraded Alfresco recently and noticed that Document Library under /share does not work for any site anymore.

I can browse the document library for each site through Webdav and through /alfresco without problems.
But in share clicking on Document library (and any subfolder) give empty page. Check attachments.

Any idea how I can I debug or fix this?



P.S. I can only see one error in log-file, and I'm not sure if it's related at all as it appear randomly (kadm is a old administrator user that does not exist anymore)

2013-08-27 08:15:20,651  ERROR [extensions.webscripts.AbstractRuntime] [http-8080-11] Exception from executeScript - redirecting to status template error: 07270002 Wrapped Exception (with status template): 07270005 User does not exist and could not be created: kadm
org.springframework.extensions.webscripts.WebScriptException: 07270002 Wrapped Exception (with status template): 07270005 User does not exist and could not be created: kadm
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:970)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:393)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
        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.security.NoSuchPersonException: 07270005 User does not exist and could not be created: kadm
        at org.alfresco.repo.security.person.PersonServiceImpl.getPersonImpl(PersonServiceImpl.java:461)
        at org.alfresco.repo.security.person.PersonServiceImpl.getPerson(PersonServiceImpl.java:435)
        at org.alfresco.repo.security.person.PersonServiceImpl.getPerson(PersonServiceImpl.java:412)
        at sun.reflect.GeneratedMethodAccessor576.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 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: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 $Proxy82.getPerson(Unknown Source)
        at org.alfresco.repo.web.scripts.links.AbstractLinksWebScript.renderLink(AbstractLinksWebScript.java:221)
        at org.alfresco.repo.web.scripts.links.LinksListGet.executeImpl(LinksListGet.java:121)
        at org.alfresco.repo.web.scripts.links.AbstractLinksWebScript.executeImpl(AbstractLinksWebScript.java:310)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
        … 25 more
2 REPLIES 2

toaijala
Champ in-the-making
Champ in-the-making
Some update on the problem, when I open document library I see following errors with Firefox developer console.

[08:40:23.998] GET https://www.xxxxxxx.com/share/page/site/it/documentlibrary [HTTP/1.1 200 OK 179ms]
[08:40:24.771] Use of getAttributeNode() is deprecated. Use getAttribute() instead. @ https://www.xxxxxxx.com/share/res/yui/button/button-debug.js:216
[08:40:24.829] SyntaxError: missing } after property list @ https://www.xxxxxxx.com/share/page/site/it/documentlibrary:665
[08:45:12.102] GET https://www.xxxxxxx.com/share/proxy/alfresco/slingshot/profile/avatar/toaijala[HTTP/1.1 200 OK 12ms]
[08:45:12.103] GET https://www.xxxxxxx.com/share/proxy/alfresco/api/tagscopes/site/it/documentLibrary/tags?d=1377668711... [HTTP/1.1 200 OK 29ms]
[08:45:12.105] GET https://www.xxxxxxx.com/share/service/modules/header/sites?htmlid=global_x002e_header_x0023_default-... [HTTP/1.1 200 OK 36ms]
[08:45:12.106] GET https://www.xxxxxxx.com/share/yui/uploader/assets/uploader.swf?dt=1377668711228 [HTTP/1.1 200 OK 2ms]


After that when I click on anything in the menu left e.g. Documents -> mko or All Document nothing happens at all -> no entries gets written into web console.

Any suggestions what could be the problem or how to troubleshoot this further?

toaijala
Champ in-the-making
Champ in-the-making
Upgrading further to 4.2.c fixed the problem.
During upgrade I was required to run this "hotfix"
https://issues.alfresco.com/jira/browse/ALF-17483?focusedCommentId=206479#comment-206479

update alf_node_properties set list_index = -1 where qname_id = (select id from alf_qname where local_name = 'versionEdition');
commit;