Uploaded image for project: 'Backup'
  1. Backup
  2. MGNLBACKUP-45

Restore on Derby fails with 'Failed to persist restored nodes with message deadbeef-face-babe-cafe-babecafebabe'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 1.0.2
    • None
    • MacOS X 10.6.8, Derby, Magnolia 3.6.8

    Description

      I am trying to use the Magnolia Backup module (v1.0.2) to sync all content from our production environment running Oracle as database to a local machine running Derby as database.

      I understand from this discussion and from the documentation of the module that this should be possible?

      I have tried to do this using the following steps:

      1. Export from the authoring production environment using the Magnolia backup module. This resulted in a backup of 3GB, mainly due to the BLOBs which we store on the file system (on production).
      2. Change the repoConfig.gz by replacing all instances of the Oracle persistence manager by the (default) Derby persistence manager.
      3. Install an empty Tomcat 6 on my local machine.
      4. Deploy our customized Magnolia WAR including our custom module. This is identical to the version running on production except that locally we use Derby instead of Oracle.
      5. Start the server once and perform the installation.
      6. Stop the server and remove the repositories folder.
      7. Import the backup locally into the magnoliaAuthor instance using ./restore -backup 20111019_magnolia_backup_production_derby -webapp /Applications/Dev/apache-tomcat-6.0.32/webapps/magnoliaAuthor

      However this fails with the mentioned error. See the attached log file for details.

      Any ideas?

      I also ran into out of memory issues regarding the heap space but fixed that by increasing -Xmx to 1024M in the restore script.

      Another thing I noticed is that that Magnolia backup tool does not seem to recognize that for the magnoliaAuthor instance we do not use the default/magnolia.properties but instead magnoliaAuthor/magnolia.properties:

       Loading configuration at /Applications/Dev/apache-tomcat-6.0.32/webapps/magnoliaAuthor/WEB-INF/config/default/magnolia.properties

      But I fixed that by manually re-arranging some stuff for the import.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              edgar Edgar Vonk
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD