Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7674

Migrating encrypted changelog files during upgrade fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.0.1, 7.1.0
    • Fix Version/s: 7.1.0
    • Component/s: upgrade

      Description

      Hit with 7.1.0-SNAPSHOT rev. d3430161430 but it's probably not the first failing commit and happens with upgrade from 7.0.0.  I found that with upgrade paths ds job and two test cases. The easiest way to reproduce is to use config (recheck hostname) from attachment and run following cmd:

      ./run-pybot.py -v -s upgrade_group.upgradeTasksPart1 -t upgrade_tasks dj
      

      The error during upgrade is:

      stdout

      >>>> OpenDJ Upgrade Utility
      
       * OpenDJ will be upgraded from version
       7.0.0.8f86179938248fdff37e3273e98405df7ae6f7a6 to
       7.1.0.d34301614306d656e401f7c84de3a4cc42fc67e3
       * See
      '/media/fuchsik/DATA/work/fr/forks/pyforge/results/20201127-090257/upgrade_group/UpgradeTasksPart1/DJ_TASKS7/opendj/logs/upgrade.log'
       for a detailed log of this operation
      
      >>>> Preparing to upgrade
      
        The upgrade is ready to proceed. Do you wish to continue? (yes/no) yes
      
      
      >>>> Performing upgrade
      
        Removing empty configuration for groups.   0%       Removing empty configuration for groups.............................   100%     
        Removing 'ds-cfg-load-balancing-algorithm' attribute from the proxy
        backend.   0%       backend.............................................................   100%     
        Replacing schema file '02-config.ldif'.   0%       Replacing schema file '02-config.ldif'......   20%       Replacing schema file '02-config.ldif'..............................   100%     
        Archiving concatenated schema.   0%       Archiving concatenated schema.......................................   100%     
        Migrating encrypted replication changelog files.   0%       Migrating encrypted replication changelog files.....................   FAIL
        Migrating encrypted replication changelog files.....................   FAIL
       * See
      '/media/fuchsik/DATA/work/fr/forks/pyforge/results/20201127-090257/upgrade_group/UpgradeTasksPart1/DJ_TASKS7/opendj/logs/upgrade.log'
       for a detailed log of this operation

      stderr:

      ** An error occurred while migrating encrypted changelog files: Detected one
       or more corrupted records in log file
      '/media/fuchsik/DATA/work/fr/forks/pyforge/results/20201127-090257/upgrade_group/UpgradeTasksPart1/DJ_TASKS7/opendj/changelogDb/3.dom/dj_tasks3.server/0109017608bbe66e0000007cdj_tasks3.log',
       this replication server will be removed from the replication topology.
       Recover the server from a valid filesystem backup if available or re-create
       it.

      In upgrade.log we have similar messages:

      [27/11/2020:09:06:47 +0100] category=org.opends.server.tools.upgrade.UpgradeTasks severity=SEVERE seq=35 msg=An error occurred while migrating encrypted changelog files: Detected one or more corrupted records in log file '/media/fuchsik/DATA/work/fr/forks/pyforge/results/20201127-090257/upgrade_group/UpgradeTasksPart1/DJ_TASKS7/opendj/changelogDb/3.dom/dj_tasks3.server/0109017608bbe66e0000007cdj_tasks3.log', this replication server will be removed from the replication topology. Recover the server from a valid filesystem backup if available or re-create it.
       [27/11/2020:09:06:47 +0100] category=org.opends.server.tools.upgrade.UpgradeCli severity=SEVERE seq=36 msg=An error occurred while migrating encrypted changelog files: Detected one or more corrupted records in log file '/media/fuchsik/DATA/work/fr/forks/pyforge/results/20201127-090257/upgrade_group/UpgradeTasksPart1/DJ_TASKS7/opendj/changelogDb/3.dom/dj_tasks3.server/0109017608bbe66e0000007cdj_tasks3.log', this replication server will be removed from the replication topology. Recover the server from a valid filesystem backup if available or re-create it.
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cforel carole forel
              Reporter:
              ondrej.fuchsik Ondrej Fuchsik
              Dev Assignee:
              Fabio Pistolesi Fabio Pistolesi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: