Please read the documentation for the backup module.
"For it to work correctly you should clean your database schema before running 
it." ... so yes, you need to cleanup your DB before running the restore.

"Backup data does not contain search indexes. They are created on the fly when 
running restore. The indexer runs asynchronously and it might happen that the 
indexer is not finished when restore is done. This leads to situation where not 
all indexes are yet generated after restore.
It is therefore recommended to remove all the indexes before starting up 
restored instance to make sure those are freshly generated on startup (might 
take couple of minutes)." ... if you have performed this step you should have 
no problems logging in after running the restore.
HTH,
Jan

On Jan 23, 2012, at 11:00 AM, Magnolia Forums (on behalf of Frank Sommer) wrote:
> I change the WEB-INF/lib against the lib dir from the magnolia empty webapp 
> and add the scheduler and the mysql connector library. Now the restore script 
> runs. But only if the mysql database is empty. Otherwise a mysql exception 
> occures. 
> 
> [code]2012-01-23 10:48:58,300 INFO  info.magnolia.module.backup.BackupManager 
>         : Restoring 
> info.magnolia.module.backup.NodeVersionHistoriesBackup@c6f734
> 2012-01-23 10:48:58,316 INFO  info.magnolia.module.backup.Backup              
>   : Replacing deadbeef-face-babe-cafe-babecafebabe node.
> 2012-01-23 10:48:58,353 WARN  
> ersistence.bundle.AbstractBundlePersistenceManager: Deleted node state's 
> parent is not modified or deleted: 
> deadbeef-cafe-babe-cafe-babecafebabe/deadbeef-face-babe-cafe-babecafebabe
> 2012-01-23 10:48:58,367 ERROR 
> .persistence.bundle.util.ConnectionRecoveryManager: could not execute 
> statement, reason: Duplicate entry ']?' for key 1, state/code: 23000/1062
> 2012-01-23 10:48:58,369 ERROR 
> core.persistence.bundle.BundleDbPersistenceManager: failed to write bundle: 
> 5dd40022-d023-49ad-b467-18079e1f4b78
> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: 
> Duplicate entry ']?' for key 1
>        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1036)
>        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)
>        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)
>        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)[/code]
> 
> The recommendation said that the database should be initialized before 
> restore (see http://documentation.magnolia-cms.com/modules/backup.html).
> 
> With an empty database I can not login to magnolia. The folowing exception is 
> showing in the log.
> 
> [code]ERROR  info.magnolia.cms.security.SystemUserManager 23.01.2012 10:43:10 
> -- Failed to login as anonymous user
> javax.security.auth.login.AccountNotFoundException: User account anonymous 
> not found.
>        at 
> info.magnolia.jaas.sp.jcr.JCRAuthenticationModule.validateUser(JCRAuthenticationModule.java:117)
>        at 
> info.magnolia.jaas.sp.AbstractLoginModule.login(AbstractLoginModule.java:200)[/code]
> 
> There are any further hints for me? Otherwise I have to say the backup module 
> is not suitable for us and have to use a database and file system backup.
> 
> Regards Frank
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=e435b914-7fee-44be-9950-d9e62f689b20
> 
> 
> ----------------------------------------------------------------
> 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]>
> ----------------------------------------------------------------

-  
Best regards,

Jan Haderka, PhD.
Magnolia International Ltd.
http://www.magnolia-cms.com

Join us for our next Webinar:
http://www.magnolia-cms.com/resource-directory/webinars/elekta.html
--------------------------------------
Magnolia®  - Yes, we're open!



----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to