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

Record does not exist, repair datastore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Workaround exists
    • Neutral
    • None
    • None
    • None
    • Deveopment

    Description

      Hi. I want do a backup of my magnolia author instance, can it do via API:

      curl --location 'https://<server>/.rest/commands/v2/backup/backup' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Basic <credentials>' \
      --data '{
          "repositoryPath": "/mgnl_author/mgnl_data/repositories/author",
          "configurationPath": "/mgnl_author/mgnl_conf/jackrabbit-bundle-mysql-search.xml",
          "backupLocation": "/mgnl_author/backups/01",
          "compression": false
      }'

      When I execute the curl, in the catalina.out show this:

      ----------------------------------------------------------------
      Mon Oct 02 11:49:29 CEST 2023:
      Booting Derby version The Apache Software Foundation - Apache Derby - 10.14.2.0 - (1828579): instance 5b0eecb3-018a-ef6e-3aaf-0000281784c0 
      on database directory /mgnl_author/backups/01/version/db with class loader ParallelWebappClassLoader
        context: author
        delegate: false
      ----------> Parent Classloader:
      java.net.URLClassLoader@37f8bb67
       
      Loaded from file:/opt/tomcat/apache-tomcat-9.0.41/webapps/author/WEB-INF/lib/derby-10.14.2.0.jar
      java.vendor=Red Hat, Inc.
      java.runtime.version=1.8.0_352-b08
      user.dir=/
      os.name=Linux
      os.arch=amd64
      os.version=3.10.0-1160.80.1.el7.x86_64
      derby.system.home=null
      Database Class Loader started - derby.database.classpath=''
      ----------------------------------------------------------------
      

      three times, and show this line:

      INFO  ule.backup.executor.ObservationAwareBackupExecutor: An error occurred while backup was ongoing, therefore, retrying to backup once more. 

      Finally show a error track with this message:

      javax.jcr.RepositoryException: Failed to copy content
      ...
      Caused by: org.apache.jackrabbit.core.data.DataStoreException: Record ccc2fab22bfe8fc035c4fd7dd105d27b3bb74d1fb327c97d3bbf4a02c41725df does not exist 

      I readed this incidence now closed https://jira.magnolia-cms.com/browse/MGNLBACKUP-143

      In this incidence comment that the solution is repair the datastore, so in the logs not found a record because not exist.

       

      In the incidence comment that doing this:

      Can work, but not work. 

       

      I don't understand very well the error.

      But understand that the datastore folder in the author instance contains the database data indexs and as in the folder exist the path repositories/author/magnolia/repository/datastore/cc/c2/fa/ with the file ccc2fab22bfe8fc035c4fd7dd105d27b3bb74d1fb327c97d3bbf4a02c41725df. Magnolia is searching this uuid in the database and this not exist. Is correct?

       

      The solution is reparir the datastore, How to I do this? Understand that the repositories must have the same indexs that in the database...Is correct?

       

      Someone know as solved it?

       

      Thank you very much.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              iheredia@riu.com Ivan Heredia Planas
              Ivan Heredia Planas, Ivan Heredia Planas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD