Unable to delete an environment

I have removed the server from an environment.
And checked that not variables reference the environment.
The environment continues to show even after the environments page after hitting delete.

running Version 1.0.24.1316

Hi Keiran,

Is your user an Octopus administrator?

Could you possibly use a tool like Fiddler to capture the HTTP traffic to the Octopus server when you delete the environment, and send me a copy of the capture (paul at octopusdeploy.com)? It will help me to diagnose what is happening.

Paul

ah yes, thanks, I logged in as admin and then I could delete.

looking in fiddler there is a ‘you don’t have permission’ response it just
doesn’t display in the web page.
my non admin account seems to be able to rename the environment but not
delete it.
delete shows in the web ui to my non admin account.

These are some of the errors I get when looking in fiddler:
trying to get an image

Details:


System.Web.HttpException (0x80004005): The controller for path
'/Content/images/ui-icons_808080_256x240.png' was not found or does
not implement IController.
at
System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext
requestContext, Type controllerType)
at
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext
requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase
httpContext, IController& controller, IControllerFactory& factory)
at
System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
at
System.Web.Mvc.SecurityUtil.<>c__DisplayClassb1.&lt;ProcessInApplicationTrust&gt;b__a() at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func1
func)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

this doesnt show

You don't have permission to perform that action. Please contact your Octopus Administrator for assistance.

Thanks Keiran, I’ve added a task to Trello to fix this in the next release.

Paul