-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(nexus-repository-migrator) Fixes Nexus 3.71 Breaking Change Upgrade #2519
base: master
Are you sure you want to change the base?
Commits on Sep 30, 2024
-
(nexus-repository) Adds Migration Logic for Version 3.71
Nexus' recent update has added some fairly catastrophic breaking changes, and necessitated a large addition to the install script for the sake of migrating the database to the new H2 format (previously only available to pro customers) This new migration process: - Checks to see if the version we're on can be migrated from (e.g. ==3.70) - Checks to see if the install is using OrientDb (and so needs to be upgraded) - Checks to see if the machine has sufficient memory and disk space - Backs up the OrientDb files from the $DataDir\db directory - Downloads the migration tool - Migrates the backed up databases - Copies the migrated file(s) back to the database directory - Updates the Nexus properties to enable the datastore - Deletes the entire target folder (there's a separate discussion that we may want to be doing this anyway) - Continues with the standard upgrade process This works back to PowerShell v3, largely due to `Compress-ArchiveCompat`
Configuration menu - View commit details
-
Copy full SHA for 209a526 - Browse repository at this point
Copy the full SHA 209a526View commit details -
(nexus-repository) Improves Parameter Handling
Sources all connection variables in Wait-NexusAvailability (other than Hostname) from the on-disk configuration. Also automatically backs-up and restores the port and SSL configuration if they are defined in the configuration.
Configuration menu - View commit details
-
Copy full SHA for 55b0ff4 - Browse repository at this point
Copy the full SHA 55b0ff4View commit details -
(nexus-repository-migrator) Extracts nexus-repository Migration Logic
It was raised that we should have a separate package for the Nexus Repository Migrator logic. This commit removes that code from the Nexus Repository package, and adds it to a separate package that can be installed.
Configuration menu - View commit details
-
Copy full SHA for c1fb44b - Browse repository at this point
Copy the full SHA c1fb44bView commit details -
(nexus-repository) Removes ProgramDir before Copying Files
The upgrade to JRE exposed that the package was simply copying new files over the old ones, which can break things when old files combine with new. This change solidifies the package logic to backup SSL configuration if it's present, and specifically removes the program directory before re-copying the latest files. This should ensure that Nexus can start, after the upgrade.
Configuration menu - View commit details
-
Copy full SHA for 1c00f10 - Browse repository at this point
Copy the full SHA 1c00f10View commit details -
(nexus-repository-migrator) Adds Longer Timeout to AttemptMigration
The post-migration launch process can take significantly longer than normal, due to the additional work Nexus is doing. This change adds a configurable timeout to the Wait-NexusAvailability command, and uses it in the Nexus-Repository-Migrator package to increase the timeout from 3 minutes to 15.
Configuration menu - View commit details
-
Copy full SHA for 0ad835a - Browse repository at this point
Copy the full SHA 0ad835aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1857bc4 - Browse repository at this point
Copy the full SHA 1857bc4View commit details