[MGNLBACKUP-126] Error while restoring backup Created: 17/May/19  Updated: 29/Mar/22  Resolved: 20/May/19

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

Type: Bug Priority: Neutral
Reporter: Federico Grilli Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLBACKUP-127 Error while restoring backup (Magnoli... Closed
causality
caused by MAGNOLIA-7536 Lib update: jackrabbit 2.12.4 -> 2.18... Closed
dependency
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
Release notes required:
Yes
Documentation update required:
Yes
Sprint: Foundation 11
Story Points: 1
Team: Nucleus

 Description   

When testing the restore functionality in the upcoming Magnolia 5.5.14, as explained at https://documentation.magnolia-cms.com/display/DOCS55/Backup+module#Backupmodule-Restoringabackup the following error occurred.
It turns out that the updated Magnolia instance 5.5.14 features derby-10.14.2.0, whereas the backup module has derby-10.5.3.0_1

java.sql.SQLException: Database at /Users/fgrilli/devel/backup/version/db has an incompatible format with the current version of the software.  The database was created by or upgraded by version 10.14.
	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)


 Comments   
Comment by Federico Grilli [ 17/May/19 ]

akhamis A new version of the backup 2.1.4 will have to be released with 5.5.14 due to the major library updates it involves, in particular the Jackrabbit update. The new module is to be utilised for all new backups (that is backups done with Magnolia 5.5.14 and greater) whereas for old backups prior to 5.5.14, the old 2.1.3 will have be utilised. This is because the versions of JDBC drivers, such as Derby and other database may have changed, thus possibly leading to errors like the one in the description while trying to restore a repository.

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