Failed to create new Instance


I have installed the latest evaluation version of Octopus Deploy.
I tried to create a new instance beside the Default one from the Octopus Manager but this step fails on the RavenDB setup, full log below:

Creating empty configuration file: D:\Octopus\Heineken Nederland\OctopusServer\Heineken Nederland.config
Saving instance: Heineken Nederland
Home directory set to: D:\Octopus\Heineken Nederland
Generating a new Master Key for this Octopus Server…
Master Key saved; use the Octopus Administration tool to back the key up.
Storage mode set to: Embedded
Allow checking for upgrades: True
Include usage statistics: False
Web authentication mode: UsernamePassword
Web force SSL: False
Web listen prefixes: http://localhost:8080/HeinekenNederland
Storage listen port set to: 10931
Creating or modifying administrator ‘dennis.velthuis’

A fatal exception occurred
System.Net.HttpListenerException (0x80004005): Failed to listen on prefix ‘http://+:10931/’ because it conflicts with an existing registration on the machine.
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Raven.Database.Server.HttpServer.StartListening() in c:\Builds\RavenDB-Stable\Raven.Database\Server\HttpServer.cs:line 369
at Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal() in c:\Builds\RavenDB-Stable\Raven.Client.Embedded\EmbeddableDocumentStore.cs:line 224
at Raven.Client.Document.DocumentStore.Initialize() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\DocumentStore.cs:line 459
at Octopus.Server.Storage.StorageEngine.InitializeStore() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Storage\StorageEngine.cs:line 135
at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()
at Octopus.Server.Storage.StorageEngine.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Storage\StorageEngine.cs:line 41
at Octopus.Server.Commands.AdminCommand.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Commands\AdminCommand.cs:line 69
at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\ConsoleHost.cs:line 36

Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe” admin --instance=“Heineken Nederland” --username=“dennis.velthuis” --password="********" --wait="5000"
Deleted instance: Heineken Nederland

Any ideas?

With kind regards,
Dennis Velthuis

Hi Dennis,

Thanks for the email, currently the only way to work around this is to use the command line to configure RavenDB to listen on a different port. I’ve noted the bug here to be fixed next release:


Hello Paul,

Thank you, I was able to workaround this issue by creating a custom PowerShell script which does the instance creation.

With kind regards,
Dennis Velthuis

Hi Paul and Dennis,

What is the command line to configure RavenDB to listen on different port ?



When you create a new instance, on the last page of the setup wizard, there’s a big green “Install” button. Next to it is a link - “Show script”. When you show the script, the second line will look like this:

Octopus.Server.exe configure ....... --storageListenPort="10931"

You’ll need to change this setting. You can then also add to that line:


Both these port numbers need to be changed to be unique.

Hope that helps!