Some user dashboards not shown

cancel
Showing results for 
Search instead for 
Did you mean: 
lngtai001
Member II

Some user dashboards not shown

Hi All,

We have the issue that when some users login to alfresco their dashboard is missing (It worked previously and stopped one day only for some). Showing the following error:

I see the dashboard.xml files are here /app:company_home/st:sites/cm:surf-config/cmSmiley Tongueages/cm:user/cm:username/cm:dashboard.xml but because cm:surf-config has aspect sys:hidden I cannot view the contents of this file. 

Share.log error:

2017-02-07 08:20:43,982 ERROR [org.alfresco.web.site] [http-apr-8080-exec-14] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.PlatformRuntimeException: 01$
org.springframework.extensions.surf.exception.PlatformRuntimeException: 01070000 Failed to init Request Context: Unable to initialise user during Request Context init. Probably a stale user Session.
at org.alfresco.web.site.SlingshotPageViewResolver.lookupPage(SlingshotPageViewResolver.java:70)
at org.springframework.extensions.surf.mvc.PageViewResolver.canHandle(PageViewResolver.java:144)
at org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:395)
at org.springframework.extensions.webscripts.servlet.mvc.AbstractWebScriptViewResolver.resolveViewName(AbstractWebScriptViewResolver.java:64)
at org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1255)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1196)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
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.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:189)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:322)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:457)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:81)
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:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
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:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.extensions.surf.exception.RequestContextException: Unable to initialise user during Request Context init. Probably a stale user Session.
at org.springframework.extensions.surf.RequestContextUtil.initRequestContext(RequestContextUtil.java:118)
at org.springframework.extensions.surf.RequestContextUtil.initRequestContext(RequestContextUtil.java:61)
at org.alfresco.web.site.SlingshotPageViewResolver.lookupPage(SlingshotPageViewResolver.java:66)
... 46 more
Caused by: org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
at org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:195)
at org.alfresco.web.site.SlingshotUserFactory.loadUser(SlingshotUserFactory.java:142)
at org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:183)
at org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:101)
at org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:260)
at org.springframework.extensions.surf.RequestContextUtil.initRequestContext(RequestContextUtil.java:114)
... 48 more
Caused by: org.json.JSONException: A JSONObject text must begin with '{' at character 0
at org.json.JSONTokener.syntaxError(JSONTokener.java:410)
at org.json.JSONObject.<init>(JSONObject.java:179)
at org.json.JSONObject.<init>(JSONObject.java:402)
at org.alfresco.web.site.SlingshotUserFactory.constructUser(SlingshotUserFactory.java:122)
at org.springframework.extensions.surf.support.AlfrescoUserFactory.constructAlfrescoUser(AlfrescoUserFactory.java:288)
at org.springframework.extensions.surf.support.AlfrescoUserFactory.buildAlfrescoUser(AlfrescoUserFactory.java:256)
at org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:190)
... 53 more

Please assist if you can.

5 Replies
Highlighted
dpmillau
Member II

Re: Some user dashboards not shown

I feel your pain

I have the same problem trying to migrate Alfresco COmmunity 5.1 from one machine to a new one. Doesn' happen to all users, but to some. I can't work out why or how to fix.

lngtai001
Member II

Re: Some user dashboards not shown

Hi David,

What we have realized thus far is that even if we generate a new alf_ticket with:

http://<host>:<port>/alfresco/service/api/login?u=<username>&pw=<password>

and use this ticket number to get dashboard.xml of user with:

http://<host>:<port>/alfresco/s/remoteadm/has/alfresco/site-data/pages/user/<username>/dashboard.xml?s=sitestore&alf_ticket=<ticketNumber>%20HTTP/1.1

It returns false for broken users and true for non-broken users. So the ticket is not recognised.

We are still investigating.

dpmillau
Member II

Re: Some user dashboards not shown

For us we've also noticed that /share/page/console - the Surf Console

isn't showing

dpmillau
Member II

Re: Some user dashboards not shown

Hi

We worked out our problem. A bit bizzare - we are using postgresql and

had the database tables in the public schema and the alfresco schema - a

database restore accident. This meant that probably the wrong tables

were getting read.

lngtai001
Member II

Re: Some user dashboards not shown

Hi David,

That's great! 

We worked out our issue too. Alfresco ran out of disk space and some users cmSmiley TonguereferenceValues binary files were missing.

So we did this to fix it.