3
votes

Hi I am new to Octopus deploy.

I have created a nupkg and trying to deploy it to an IIS server.

I am getting following error.

There was a problem with your request. There must be at least one enabled healthy machine to deploy to in the environment, or the Project Deployment Target settings must be set to allow deployments to empty environments. Once you have corrected these problems you can try again. If the problem is related to a variable you will need to update the variables for this release or recreate the release for the changes to take effect. If the problem is related to the deployment process you will need to create a new release for the changes to take effect.

4
What could be the reason of the error ?user2746466
On your deployment process steps, do the roles align with the roles associated with the deployment target? You can actually type new roles on the role selection on the deployment step, so it could be that you have typed a different role name.benPearce

4 Answers

1
votes

In Target Machine you have to add environment names.

Go to Infrastructure -> Deployment Targets -> any Target

then add your environment to this target. try as per below image.

enter image description here

0
votes

You need to trigger a Heath Check on the environment page and double check you have a tentacle with the role specified in your deployment step.

0
votes

On mine my Target Role had a typo so resulted in nonsense.

Instead of being in two roles: "web-server" and "app-server" mine was in a new role called "web-server;app-server"

enter image description here

Which was pretty hard to spot

-2
votes

Target status is healthy - please see following screenshot:

enter image description here