Create Octopus Release

Hi
I got an error in pipeline of the Azure DevOps below:

2021-04-14T07:03:36.0850286Z Creating release…
2021-04-14T07:03:36.2358215Z There was a problem with your request.
2021-04-14T07:03:36.2359005Z
2021-04-14T07:03:36.2359523Z - Release ‘1.12.6’ already exists for this project. Please use a different version, or look at using a mask to auto-increment the number.
2021-04-14T07:03:36.2359947Z
2021-04-14T07:03:36.2368779Z Error from Octopus Server (HTTP 400 BadRequest)
2021-04-14T07:03:36.2369685Z Exit code: -7
2021-04-14T07:03:36.2583177Z ##[error]Error: The process ‘C:\agent05_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967289
2021-04-14T07:03:36.2585815Z ##[error]Failed to deploy release The process ‘C:\agent05_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967289
2021-04-14T07:03:36.2650234Z ##[section]Finishing: Create Octopus Release

Hi @jianglili2015,

Thanks for getting in touch!

Apologies for asking the obvious question first, but does Release 1.12.6 already exist?
If you change the release number is the build successful?

Regards,
Paul

2021-04-14T07:03:35.9451316Z Finding release template…
2021-04-14T07:03:35.9972417Z The package version for some steps was not specified. Going to try and resolve those automatically…
2021-04-14T07:03:36.0484685Z Finding latest package for step: Create Web Site and Application Pool
2021-04-14T07:03:36.0742915Z Selected ‘CSI’ version ‘1.12.5.1’ for ‘Create Web Site and Application Pool’
2021-04-14T07:03:36.0790254Z Using version number from release template: 1.12.6
2021-04-14T07:03:36.0846737Z Release plan for CSI Test 02 1.12.6
2021-04-14T07:03:36.0847469Z Channel: ‘Default’ (this is the default channel)
2021-04-14T07:03:36.0848143Z # Name Version Source Version rules
2021-04-14T07:03:36.0848777Z — -------------------------------------- ---------- ------------------ -------------------
2021-04-14T07:03:36.0849429Z 1 Create Web Site and Application Pool 1.12.5.1 Latest available Allow any version
2021-04-14T07:03:36.0849902Z
2021-04-14T07:03:36.0850286Z Creating release…
2021-04-14T07:03:36.2358215Z There was a problem with your request.
2021-04-14T07:03:36.2359005Z
2021-04-14T07:03:36.2359523Z - Release ‘1.12.6’ already exists for this project. Please use a different version, or look at using a mask to auto-increment the number.
2021-04-14T07:03:36.2359947Z
2021-04-14T07:03:36.2368779Z Error from Octopus Server (HTTP 400 BadRequest)
2021-04-14T07:03:36.2369685Z Exit code: -7
2021-04-14T07:03:36.2583177Z ##[error]Error: The process ‘C:\agent05_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967289
2021-04-14T07:03:36.2585815Z ##[error]Failed to deploy release The process ‘C:\agent05_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967289
2021-04-14T07:03:36.2650234Z ##[section]Finishing: Create Octopus Release

I seem to have found a bit of a problem, but how do I fix this error?

Due to repeated testing, the current version is “Release 1.12.31”, how should I change it?

Within the Project Settings there is a Release Versioning option that stores the template used by Octopus to generate these release numbers.
e.g.

It looks like Octopus is seeing 1.12.5.1 as the latest release and uses the version template to increment that to 1.12.6.

If you manually create a higher release, such as 1.12.7 or 1.12.8 and then check the Create Release screen again does the “Most recent release” field update to that newer version?
If so, all you would need to do is bump that number past the current existing versions so that the version template can automatically increment to a version that does not already exist.

HI paul.calvert,

Thank you very much for your patience, I also want to know if I can delete the previous duplicate version number?

Of course, deleting the current 1.12.6 release shouldn’t have any major impact, if it has been deployed anywhere you will lose the deployment history.

If you’ll excuse me, I have one more question.

Can I delete a version that has already been deployed to the server?

That’s correct, you can delete any Releases within Octopus, even if they have been deployed. You will lose the deployment history and logs though.

Thank you very much, your answer has solved my problem perfectly, thanks again!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.