No package version was specified for the step 'Deploy new release'

Hi,
I am trying to deploy using Teamcity . However I am getting the following error message :-
“No package version was specified for the step ‘Deploy new release’”


[10:03:08]Step 2/2: Create and Deploy Release (1) (OctopusDeploy: Create release) (3s)
[10:03:10][Step 2/2] Octopus Deploy (1s)
[10:03:10][Octopus Deploy] Running command: octo.exe create-release --server https://octopus.worldremit.com:444 --apikey SECRET --project Correspondents Simulator --enableservicemessages --version 1.22.0.142 --deployto staging.worldremit.com --progress --packageVersion=1.22.0.142
[10:03:10][Octopus Deploy] Creating Octopus Deploy release
[10:03:10][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.5.3.33
[10:03:10][Octopus Deploy]
[10:03:11][Octopus Deploy] Handshaking with Octopus server: https://octopus.worldremit.com:444
[10:03:11][Octopus Deploy] Handshake successful. Octopus version: 2.6.5.1010; API version: 3.0.0
[10:03:11][Octopus Deploy] Finding project: Correspondents Simulator
[10:03:11][Octopus Deploy] Finding deployment process for project: Correspondents Simulator
[10:03:12][Octopus Deploy] Finding release template…
[10:03:12][Octopus Deploy] Using version number provided on command-line.
[10:03:12][Octopus Deploy] Release plan for release: 1.22.0.142
[10:03:12][Octopus Deploy] Steps:
[10:03:12][Octopus Deploy] # Name Version Source
[10:03:12][Octopus Deploy] — ------------------------ --------------- ------------------------------------
[10:03:12][Octopus Deploy] 1 Deploy Release Package 1.22.0.142 User specified
[10:03:12][Octopus Deploy]
[10:03:12][Octopus Deploy] Creating release…
[10:03:12][Octopus Deploy] Error from Octopus server (HTTP 400): There was a problem with your request.
[10:03:12][Octopus Deploy]
[10:03:12][Octopus Deploy] - No package version was specified for the step ‘Deploy new release’
[10:03:12][Octopus Deploy]
[10:03:12][Octopus Deploy] Exit code: -7
[10:03:12][Octopus Deploy] Octo.exe exit code: -7

Actually happening in OD hence getting error in TC . It would be great if you could help me.
I have checked that OD can access teamcity nuget feed and is getting the latest version of the package.

Hi Hsingh,

Thanks for getting in touch. Could you send me a screen shot of the project’s deployment process overview please, as well as the new release creation screen. Do you have a step named “Deploy new release”?

Do you get the same error if you run the same octo.exe command from the command line? You can download octo.exe from https://octopus.com/downloads.

One thing you could try is to remove the equals sign in the packageVersion argument.

Robert W

Hi Robert

Please see my above comment , when trying from OD . Hence I am unable to create any new releases.

As well as I have attached screenshots for nuget step as well as the the process. There is no step names “Deploy New release”

Process.JPG

Looked into the Audit. Machine role was added which was not in Environment and I am now able to create release by removing it.

Thank you again for your help . We can close it