Changes to these variables could not be saved, because your available environment scopes changed while you were editing the variables

Hi,

I am using Octo.exe to replicate deployment projects between a staging and a production Octopus instance. After upgrading Octopus to v3.2.19 my replication process started failing with exit code -7:

17:57:04   Info     |       Octopus Deploy Command Line Tool, version 3.3.2+Branch.master.Sha.497e7f8ef2b193cd33560217bfecc38d721029a5
17:57:04   Info     |       Handshaking with Octopus server: https://******/
17:57:04   Info     |       Handshake successful. Octopus version: 3.2.19; API version: 3.0.0
17:57:04   Info     |       Authenticated as: ****** <******>
17:57:04   Info     |       Finding importer 'project'
17:57:04   Info     |       Validating the import
17:57:05   Info     |       Export file successfully loaded
17:57:05   Info     |       Checking that lifecycle Simple Lifecycle exists
17:57:05   Info     |       Found lifecycle 'Simple Lifecycle'
17:57:05   Info     |       Checking that all environments exist
17:57:05   Info     |       Checking that all machines exist
17:57:05   Info     |       Checking that all NuGet Feeds exist
17:57:05   Info     |       Checking that all Action Templates exist
17:57:05   Info     |       Checking that all Library Variable Sets exist
17:57:05   Info     |       Checking that the Project Group exist
17:57:05   Info     |       No validation errors found. Project is ready to import.
17:57:05   Info     |       Beginning the import
17:57:05   Info     |       Beginning import of project '******'
17:57:05   Info     |       Importing Project
17:57:05   Info     |       Project already exist, project will be updated with new settings
17:57:05   Info     |       Importing the Projects Deployment Process
17:57:05   Info     |       Updating ID of NuGet Feed
17:57:05   Info     |       Updating IDs of Environments
17:57:05   Info     |       Updating ID and version of Action Template
17:57:05   Info     |       Updating IDs of Environments
17:57:05   Info     |       Updating ID and version of Action Template
17:57:05   Info     |       Updating IDs of Environments
17:57:05   Info     |       Updating ID and version of Action Template
17:57:05   Info     |       Updating IDs of Environments
17:57:05   Info     |       Importing the Projects Variable Set
17:57:05   Info     |       Updating the Environments of the Variable Sets Scope Values
17:57:05   Info     |       Updating the Machines of the Variable Sets Scope Values
17:57:06   Info     |       Error from Octopus server (HTTP 400): There was a problem with your request.
17:57:06   Info     |       - Changes to these variables could not be saved, because your available environment scopes changed while you were editing the variables. Please reload or open a new tab to make your changes.
17:57:06   Info     |       Exit code: -7

I am struggling to figure out what is causing the error. Please advise!

Many thanks,
Daniel

Hi Daniel,

Thanks for getting in touch!

This is a known issue that was introduced a little while ago, we have a fix for it that will be released in the next few days.

Thank you and best regards,
Henrik

Hi Henrik,

Thanks for the quick response. Do you know which version I need wait for? The bug is assigned to 3.2.21 which is already available. Shall I go ahead and upgrade to 3.2.21?

Thanks,
Daniel

Hi Daniel,

Yes the fix was part of 3.2.21. You need to upgrade Octopus Server and not Octo.exe (as it was just the poor messenger). Sorry you ran into this.

Vanessa

Hi Vanessa,

The import is working fine after upgrading to 3.2.21

Thanks for your help!

Daniel

Hi Daniel,

Great to hear that your issue has been resolved!

Happy deployments!

Thank you and best regards,
Henrik