[MGNLBACKUP-26] After restoring a backup, unable to login to restored instance Created: 24/Sep/09  Updated: 29/Mar/22  Resolved: 24/Sep/09

Status: Closed
Project: Backup
Component/s: None
Affects Version/s: 1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jon Holmes Assignee: Jan Haderka
Resolution: Not an issue Votes: 0
Labels: backup, restore
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Vista, mg4.1 Enterprise, m-m-backup1.1, MySQL5.1 (5.0 driver)., vanilla mg install


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: Nucleus

 Description   

After backup of a vanilla mg author instance, after running the restore script, I am unable to login to the restored author instance. Before I even attempt to login, this exception is thrown as the login screen is rendered.

Extra information, - On both the backup and the restore I get a number of 'Unclosed session detected' being logged - is this expected.

2009-09-24 15:39:56,652 ERROR info.magnolia.cms.security.SystemUserManager : Failed to login as anonymous user
javax.security.auth.login.AccountNotFoundException: User account anonymous not found.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at info.magnolia.jaas.sp.jcr.JCRAuthenticationModule.specificExceptionIfPossible(JCRAuthenticationModule.java:94)
at info.magnolia.jaas.sp.jcr.JCRAuthenticationModule.validateUser(JCRAuthenticationModule.java:76)
at info.magnolia.jaas.sp.AbstractLoginModule.login(AbstractLoginModule.java:201)
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:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at info.magnolia.cms.security.SystemUserManager.getSubject(SystemUserManager.java:179)
at info.magnolia.cms.security.SystemUserManager.getRequiredSystemUser(SystemUserManager.java:156)
at info.magnolia.cms.security.SystemUserManager.getAnonymousUser(SystemUserManager.java:125)
at info.magnolia.cms.security.Security.getAnonymousUser(Security.java:69)
at info.magnolia.context.UserContextImpl.getUser(UserContextImpl.java:75)
at info.magnolia.context.MgnlContext.getUser(MgnlContext.java:83)
at info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:76)
at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:64)
at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:96)
at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:199)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)



 Comments   
Comment by Jan Haderka [ 24/Sep/09 ]

User account anonymous not found.

Seems like indexing was not finished when the restored repo was shut down. Try to delete all repositories/magnolia/*/index folders and startup again .. the issue should go away then.

Comment by Jan Haderka [ 24/Jun/11 ]

Closing all previously resolved and released issues.

Comment by Edgar Vonk [ 08/May/12 ]

Hi Jan, just a quick note: I also ran into this issue. I think it would be a very worthwhile addition to the Magnolia Backup Module's documentation page. It cost me a lot of time before I found this solution (which is also causes by the fact that searching is quite hard in JIRA in my opinion..).

Generated at Sun Feb 11 23:24:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.