From 51211cac2faf1d664f959de62a1d8f1fe460f183 Mon Sep 17 00:00:00 2001 From: Dharmishtha Patel Date: Wed, 17 Dec 2025 21:20:56 -0800 Subject: [PATCH 1/2] Point RavenDB Management Studio link to localhost --- .../AdvancedOptions/ServiceControlAdvancedView.xaml | 4 ++-- .../ServiceControlAdvancedViewModel.cs | 2 +- .../Instances/ServiceControlBaseService.cs | 12 ++++-------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedView.xaml b/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedView.xaml index 896125aca5..00da1aaecd 100644 --- a/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedView.xaml +++ b/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedView.xaml @@ -54,12 +54,12 @@ Visibility="{Binding InMaintenanceMode, Converter={StaticResource boolToVis}}" Margin="0,0,0,20" > - This instance is in database maintenance mode. All message processing is disabled and the REST API is unavailable.ServicePulse and ServiceInsight cannot connect to this instance while it is in maintenance mode.Launch + This instance is in database maintenance mode. All message processing is disabled and the REST API is unavailable.ServicePulse and ServiceInsight cannot connect to this instance while it is in maintenance mode.Launch RavenDB Management Studio diff --git a/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedViewModel.cs b/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedViewModel.cs index 06a650ce21..3bfed4981f 100644 --- a/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedViewModel.cs +++ b/src/ServiceControl.Config/UI/AdvancedOptions/ServiceControlAdvancedViewModel.cs @@ -81,7 +81,7 @@ ForceUpgradeAuditInstanceCommand forceUpgradeAuditCommand public bool InMaintenanceMode => ServiceControlInstance.InMaintenanceMode; - public string StorageUrl => ServiceControlInstance.StorageUrl; + public string RavenStudioUrl => ServiceControlInstance.RavenDbStudioUrl; public bool IsRunning { diff --git a/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs b/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs index eb9e8f8f97..6e55b6bf5e 100644 --- a/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs +++ b/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs @@ -28,20 +28,16 @@ protected ServiceControlBaseService(IWindowsServiceController service) public bool InMaintenanceMode { get; set; } public ReportCard ReportCard { get; set; } - + /// /// Raven management URL /// - public string StorageUrl + public string RavenDbStudioUrl { get { - string host = HostName switch - { - "*" or "+" => "localhost", - _ => HostName, - }; - return $"http://{host}:{DatabaseMaintenancePort}/studio/index.html#databases"; + var port = DatabaseMaintenancePort ?? 33334; + return $"http://localhost:{port}/studio/index.html#databases"; } } From 0fa57abf9764491ba31e7cbc4c769d42e02e0b60 Mon Sep 17 00:00:00 2001 From: Dharmishtha Patel Date: Thu, 18 Dec 2025 18:08:45 -0800 Subject: [PATCH 2/2] Fix Formating --- .../Instances/ServiceControlBaseService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs b/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs index 6e55b6bf5e..5e2a3a762f 100644 --- a/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs +++ b/src/ServiceControlInstaller.Engine/Instances/ServiceControlBaseService.cs @@ -28,7 +28,7 @@ protected ServiceControlBaseService(IWindowsServiceController service) public bool InMaintenanceMode { get; set; } public ReportCard ReportCard { get; set; } - + /// /// Raven management URL ///