Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Missing variable set snapshot causes NullReferenceExceptions during deployment and variable set editing #4989
During deployment a NullReferenceException can be encountered, due to a missing variable set snapshot.
In the case of a deployment, when updating the deployment history an error with message
Appears to be related to an old migration artifact: a "Legacy Variable Mappings" Variable Set. This may have been effected by a recent database upgrade. Investigation underway.
If a user tries to remove this Variable set, a similar error occurs.
Contact us at support if this issue is blocking you from releasing.
If you cannot wait for a patch: and can rollback your installation from backup. You must restore your Octopus database from a backup taken before your update to 2018.7.x you can then install the matching version of Octopus with that backup.
If possible, we ask that customers wait until we have provided a patch for this to avoid any further potential data corruption.
What I expected to happen
Deployments should work as usual, should be able to remove the "1.6 Legacy Variable Mappings" variable set as per usual.
Steps to reproduce
To be confirmed - but based on current reports - we suspect that the following reproduces the issue.