Octopus Server not starting

We installed Octopus , when we are trying to start the server, it crashes or stops suddenly.

Below are the errors I have captured from event:

Application: Octopus.Server.exe
CoreCLR Version: 4.700.19.60701
.NET Core Version: 3.1.1
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.AspNetCore.Server.HttpSys.HttpSysException (183): The prefix ‘http://+:443/’ is already registered.
at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)
at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)
at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()
at Microsoft.AspNetCore.Server.HttpSys.MessagePump.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.WebHost.Start()
at Octopus.Server.Web.WebServerInitializer.Start() in C:\buildAgent\work\47b5b27d3625d6ca\source\Octopus.Server\Web\WebServerInitializer.cs:line 61
at Octopus.Server.OctopusServerEngine.Start() in C:\buildAgent\work\47b5b27d3625d6ca\source\Octopus.Server\OctopusServerEngine.cs:line 69
at Octopus.Server.Commands.RunCommand.Start() in C:\buildAgent\work\47b5b27d3625d6ca\source\Octopus.Server\Commands\RunCommand.cs:line 79
at Octopus.Shared.Startup.AbstractCommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions)
at Octopus.Shared.Startup.OctopusProgram.Start(ICommandRuntime commandRuntime)
at Octopus.Shared.Startup.WindowsServiceHost.<>c__DisplayClass1_0.b__0()
at Octopus.Shared.Startup.WindowsServiceAdapter.RunService()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location where exception was thrown —
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Faulting application name: Octopus.Server.exe, version: 2020.1.12.0, time stamp: 0x5dedc13b
Faulting module name: KERNELBASE.dll, version: 10.0.14393.3630, time stamp: 0x5e8d43a3
Exception code: 0xe0434352
Fault offset: 0x0000000000034c48
Faulting process id: 0x63c4
Faulting application start time: 0x01d618019f6d705b
Faulting application path: C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 5eb02ad7-1747-4a80-b763-7873b57a4671
Faulting package full name:
Faulting package-relative application ID:

The OctopusDeploy service terminated unexpectedly. It has done this 4 time(s).

Hi @viswanath.mannam,

Thanks for getting in touch!

Looking at the error being generated:

Microsoft.AspNetCore.Server.HttpSys.HttpSysException (183): The prefix ‘http://+:443/’ is already registered.
at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)

My first thought here would be that you have a conflict with your bindings for the website. As a test you could try removing any bindings you’ve added from Octopus Manager and see if the service starts with just localhost in there.

Are you running any other websites from this machine that could be conflicting or could something else be running on that port?

Regards,
Paul

Paul,

Thanks for replying. We have web server running on this server that uses port 443. What is the alternative to fix the issue?

What about this issue above ?

Hi @viswanath.mannam,

I’ve seen that my colleague is currently assisting you with this issue via our support email so will allow this thread to close rather than doubling up on the responses.

Regards,
Paul