Ok here is what i have done. I took MySql dumps of magnolia from our production
boxes (including from the one which has the problem). Updated the MySql of
TEST instance with MySql dump from each production instance at a time. Removed
*indexes* before starting server. With one of production server MySql dump, i
got the login page issue. (weird though, the login issue is generated when i
was using dump from the box which is running fine). As [b]you[/b] mentioned
earlier, i deleted the **/users/index and restarted the server. THERE U GO.. no
*ANONYMOUS USER* exception noticed. So, i am going to consider it closed as
Anonymous user exception can be handled by deleting indexes under users
sub-directory.
[b]Now coming to the other issue:[/b] Here is what i believe. Since, all issues
(page load takes more than 4s, Can't render template, index out of bounds) are
happening on same page and not on others, i think somehow this page is corrupt.
We have content synched on all instances using superuser. So no problem with
content. Able to login to all instances using superuser. So no issues with user
who synched up relevant content for this page. I have to some how reproduce
this issue on TEST instance. [b]Everything works fine, until this error
suddenly shows up on one of production boxes.[/b]
[code]java.lang.RuntimeException: javax.servlet.ServletException: Can't render
template /templates/kajeet/templates/somepage.jsp
at
info.magnolia.module.cache.filter.CacheFilter.doFilter(CacheFilter.java:160)
at
info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.i18n.I18nContentSupportFilter.doFilter(I18nContentSupportFilter.java:75)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.filters.RangeSupportFilter.doFilter(RangeSupportFilter.java:86)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
at
info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:64)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.security.LogoutFilter.doFilter(LogoutFilter.java:91)
at
info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:85)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
at
info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:86)
at
info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:104)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:120)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at
info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:66)
at
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
at
info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:105)
at
info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:216)[/code]
I believe that the above issue is responsible for everything. Since the page
takes a while to load, it is some how having an impact on indexes (may be
sometimes, indexes aren't getting created while application loads for the first
time due to the load time of this page) which is then leading to either login
problems (or) specific page problems. As you pointed out earlier:
[code]This just says that rendering of a page takes more then 4 seconds. But
not why. You might want to have a look at the page and what it does. Judging
from the name and from the fact that you ran into issues w/ indexes at the same
time, is it possible that this page executes search? Maybe search is taking too
long?[/code]
The page does run a query, as i mentioned in my earlier comments. It searches
for articles. At present it only has 109 nodes and they take anything between
100ms to 2000ms. However, we need this query. What doesn't make sense is, what
could cause "Can't render template" exception. I am going to have the same
query run 2 or 3 times on the Test Instance and see if i see any of the above
noted behavior.
In short, all i want to say is, i think all the issues are related to this one
page. I am not an expert on Magnolia but its my hunch. Jan, you mentioned about
[b]by using checkConsistency and fixConsistency params in indexing
configuration[/b]. Can you tell me how can i do this. Where will i find this.
Is it in Tools section?
Can you let me know how i can reproduce the *Can't render template* exception.
I am actually looking for magnolia [b]source[/b] 4.4.7 community version to
debug further. Any idea where i can find it.
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=ce0c2684-7e76-4084-a120-65bd493a2f32
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------