Skip to content
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

Missing variable set snapshot causes NullReferenceExceptions during deployment and variable set editing #4989

Closed
jburger opened this issue Oct 17, 2018 · 2 comments

Comments

@jburger
Copy link

commented Oct 17, 2018

The bug

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 the resource '$variablesets-libraryvariablesets-legacy-snapshot1' was not found occurs.

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.

Workarounds

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.

  1. On an instance prior to 2018.6 that has been upgraded from ~v1.6 create a project
  2. Upgrade
  3. Attempt to deploy this project - error occurs
  4. Attempt to remove "1.6 Legacy Variable Mappings" - error occurs

Screen capture

image

image001 1

Log exerpt

The resource '$variablesets-libraryvariablesets-legacy-snapshot1' was not found. 

Affected versions

Octopus Server:
Appears to be effecting customers that upgraded from versions of Octopus deploy prior to version 2.6.5
and have recently upgraded. Will update this issue as more details about particular upgrade versions are involved as information arises.

Links

https://secure.helpscout.net/conversation/681999298 (internal)
https://secure.helpscout.net/conversation/686692415 (internal)
https://secure.helpscout.net/conversation/686534119/33619 (internal)
https://help.octopus.com/t/upgrade-to-2018-4-0-from-2018-3-8-deploys-fail/19725 (internal)

#4743

Prerequisites

  • I have verified the problem exists in the latest version
  • I have searched open and closed issues to make sure it isn't already reported
  • I have written a descriptive issue title
  • I have linked the original source of this report
  • I have tagged the issue appropriately (area/*, kind/bug, tag/regression?)
@octoreleasebot

This comment has been minimized.

Copy link

commented Oct 23, 2018

Release Note: Fix for error reporting missing variable set snapshot NullReferenceException during deployments and variable set editing

@lock

This comment has been minimized.

Copy link

commented Jan 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.