Hi Lee - sorry about this, we’ve got an import bug that can result in invalid version strings. I’ve created a ticket for the original issue, but this won’t fix the already invalid data in your database.
The “very quick” fix, depending on the number of duplicate releases, might be to open impacted documents in RavenDB (http://localhost:10931 on the Octopus server) and manually change them to valid (1.2.3-abc) release numbers.
I’ll start work now on a script using the API to fix these and update you via this thread once it is ready.
I’ve created a simple script to find broken release numbers and “fix” them by generating new unique numbers. The corrupted release number is written into the release notes so that you can identify the original release if needed.
Ensure you have an up-to-date backup of your Octopus server, and a copy of the master encryption key in a safe place
Create a new .NET console application in Visual Studio
Replace the contents of Program.cs with the code from the gist
Paste in an API key and URL for your Octopus server
Install the Octopus.Client NuGet package
Run!
Not knowing the full range of release numbers affected, I can’t reliably massage them back into a semblance of the original number; you might have a better idea for how to generate the new release numbers given the data, if so let me know and I’ll be happy to help. Currently just aiming to do the quickest thing possible to get you back up and deploying happily.
Hope this helps, apologies again for the inconvenience. Any questions or trouble with it please let me know.