You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem are you trying to solve?
The issue occurred when using the :latest Docker image tag for the Nexus server. This led to an unintended database schema migration from OrientDB to H2/PostgreSQL, which was incompatible with the existing data stored in the volume.
Do you have a workaround you are using at present?
Yes, I rolled back to the sonatype/nexus3:3.70.1 image, which resolved the issue.
What feature or behavior is this required for?
The requirement is to prevent automatic database schema migration when updating the Nexus server image to a newer version.
How could we solve this issue? (Not knowing is okay!)
A potential solution could be to provide a more explicit warning or flag regarding database schema changes in newer image versions, or implement a version control mechanism for the database schema migration process. Additionally, enabling users to opt-out of automatic migrations during image updates would provide more control over the process.
How to fix the issue:
To fix the issue, the following steps can be taken:
Rollback
to a Known Working Version: Roll back to a previous stable version of the Nexus image (e.g., sonatype/nexus3:3.70.1) to avoid the unintended database migration.
Pin Specific Image Versions: Avoid using the :latest tag in Docker and Docker Compose files. Pin the image to a specific version that is known to be stable and compatible with the existing database.
Backup Data Before Updating: Always back up the Nexus data before upgrading to a new image version. This will allow easy recovery if there are compatibility issues after the update.
Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?
Nexus Repository Version: Latest version, updated from sonatype/nexus3:3.70.1
Operating System: Ubuntu 22.04
Database: Originally OrientDB, migrated to H2/PostgreSQL
Anything else?
This issue caused compatibility problems with our existing data. A mechanism for controlling or verifying database migrations in updates would be beneficial to avoid such issues in the future.
Reference:
For more information on database options and migration strategies, please refer to Sonatype’s Database Options documentation.
The text was updated successfully, but these errors were encountered:
What problem are you trying to solve?
The issue occurred when using the
:latest
Docker image tag for the Nexus server. This led to an unintended database schema migration from OrientDB to H2/PostgreSQL, which was incompatible with the existing data stored in the volume.Do you have a workaround you are using at present?
Yes, I rolled back to the
sonatype/nexus3:3.70.1
image, which resolved the issue.What feature or behavior is this required for?
The requirement is to prevent automatic database schema migration when updating the Nexus server image to a newer version.
How could we solve this issue? (Not knowing is okay!)
A potential solution could be to provide a more explicit warning or flag regarding database schema changes in newer image versions, or implement a version control mechanism for the database schema migration process. Additionally, enabling users to opt-out of automatic migrations during image updates would provide more control over the process.
How to fix the issue:
To fix the issue, the following steps can be taken:
to a Known Working Version: Roll back to a previous stable version of the Nexus image (e.g.,
sonatype/nexus3:3.70.1
) to avoid the unintended database migration.:latest
tag in Docker and Docker Compose files. Pin the image to a specific version that is known to be stable and compatible with the existing database.Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?
sonatype/nexus3:3.70.1
Anything else?
This issue caused compatibility problems with our existing data. A mechanism for controlling or verifying database migrations in updates would be beneficial to avoid such issues in the future.
Reference:
For more information on database options and migration strategies, please refer to Sonatype’s Database Options documentation.
The text was updated successfully, but these errors were encountered: