How do you use cloud databases? Take the survey.

Can't see Overview or Alerts after moving Monitor database to a new server

Graham_BGraham_B Posts: 7 New member
edited May 10, 2019 3:16AM in SQL Monitor
After stopping the Base monitor Service, backing up the database and restoring to the new server, updating the connection string in the config file and restarting the Base Monitor, I find that the Overview and Alerts are no longer displaying, but Analysis and Reports are working normally. Any ideas?
Tagged:

Best Answer

Answers

  • Graham_BGraham_B Posts: 7 New member
    We have only one base monitor. We are getting this error though. I can see that EXECUTE permission is being denied. I can fix that and then see how it runs.
    "System.AggregateException: One or more errors occurred. ---\u003e RedGate.SqlMonitor.Common.Networking.Client.Exceptions.RpcNoResultException: System.Data.SqlClient.SqlException was thrown by method GetActiveAlertSummaries on service AlertSummaryRepositoryRpcServer:\nSystem.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission was denied on the object \u0027DateTimeToTicks\u0027, database \u0027RedGateMonitor\u0027, schema \u0027utils\u0027.   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean\u0026 dataReady)   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()   at System.Data.SqlClient.SqlDataReader.get_MetaData()   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task\u0026 task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task\u0026 task, Boolean\u0026 usedCache, Boolean asyncWrite, Boolean inRetry)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)   at RedGate.SqlMonitor.Common.Utilities.Sql.Abstraction.ProfilingSqlCommand.LogCommandTextOnSqlException[T](Func`1 func)   at RedGate.SqlMonitor.Engine.Alerting.Base.Core.AlertSummaryRepository.GetActiveAlertSummaries()   at RedGate.SqlMonitor.RPC.AlertSummaryRepositoryRpcServer.GetActiveAlertSummaries()ClientConnectionId:27cf2429-ef1a-4346-a158-8802b3107adbError Number:229,State:5,Class:14   at RedGate.SqlMonitor.Common.Networking.Client.RpcSynchronousChannel.CallMethod(String serviceName, MethodInfo method, Object[] args)   at RedGate.SqlMonitor.Common.Networking.Client.RpcSynchronousTcpChannel.CallMethod(String serviceName, MethodInfo method, Object[] args)   at RedGate.SqlMonitor.Common.Networking.Client.RpcProxyGenerator.RpcChannelInterceptor`1.Intercept(IInvocation invocation)   at Castle.DynamicProxy.AbstractInvocation.Proceed()   at Castle.Proxies.IAlertSummaryRepositoryRpcServerProxy.GetActiveAlertSummaries()   at RedGate.SqlMonitor.RPC.AlertSummaryRepositoryRpcClient.GetActiveAlertSummaries()   at RedGate.SqlMonitor.UI.Website.Controllers.GlobalDashboardController.\u003c\u003ec__DisplayClass32_0.\u003cGetDashboardModel\u003eb__0(String context)   at RedGate.SqlMonitor.UI.Website.Infrastructure.BaseMonitorConnectionProvider.\u003c\u003ec__DisplayClass14_0`1.\u003cDelegateForAllConnections\u003eb__0(String context)   at RedGate.SqlMonitor.UI.Website.Infrastructure.BaseMonitorConnectionProvider.\u003c\u003ec__DisplayClass16_0`1.\u003cDelegateForAllConnectionsPrivate\u003eb__0(IBaseMonitorConnection connection)   --- End of inner exception stack trace ---   at RedGate.SqlMonitor.UI.Website.Infrastructure.BaseMonitorConnectionProvider.DelegateForAllConnectionsPrivate[T](Func`2 action, BaseMonitorConnectionFilter baseMonitorConnectionFilter)   at RedGate.SqlMonitor.UI.Website.Infrastructure.BaseMonitorConnectionProvider.DelegateForAllConnections[T](Func`2 action, BaseMonitorConnectionFilter baseMonitorConnectionFilter)   at RedGate.SqlMonitor.UI.Website.Controllers.GlobalDashboardController.GetDashboardModel(Boolean basicOnly)   at lambda_method(Closure , ControllerBase , Object[] )   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)   at System.Web.Mvc.Async.AsyncControllerActionInvoker.\u003c\u003ec.\u003cBeginInvokeSynchronousActionMethod\u003eb__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.\u003c\u003ec__DisplayClass11_0.\u003cInvokeActionMethodFilterAsynchronouslyRecursive\u003eb__0()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.\u003c\u003ec__DisplayClass11_2.\u003cInvokeActionMethodFilterAsynchronouslyRecursive\u003eb__2()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.\u003c\u003ec__DisplayClass11_2.\u003cInvokeActionMethodFilterAsynchronouslyRecursive\u003eb__2()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.\u003c\u003ec__DisplayClass11_2.\u003cInvokeActionMethodFilterAsynchronouslyRecursive\u003eb__2()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.\u003c\u003ec__DisplayClass11_2.\u003cInvokeActionMethodFilterAsynchronouslyRecursive\u003eb__2()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.\u003c\u003ec__DisplayClass11_2.\u003cInvokeActionMethodFilterAsynchronouslyRecursive\u003eb__2()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.\u003c\u003ec__DisplayClass7_0.\u003cBeginInvokeActionMethodWithFilters\u003eb__1(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncControllerActionInvoker.\u003c\u003ec__DisplayClass3_6.\u003cBeginInvokeAction\u003eb__4()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.\u003c\u003ec__DisplayClass3_1.\u003cBeginInvokeAction\u003eb__1(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)   at System.Web.Mvc.Controller.\u003c\u003ec.\u003cBeginExecuteCore\u003eb__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)   at System.Web.Mvc.Controller.\u003c\u003ec.\u003cBeginExecute\u003eb__151_2(IAsyncResult asyncResult, Controller controller)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)   at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)   at System.Web.Mvc.MvcHandler.\u003c\u003ec.\u003cBeginProcessRequest\u003eb__20_1(IAsyncResult asyncResult, ProcessRequestState innerState)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean\u0026 completedSynchronously)---\u003e (Inner Exception #0) RedGate.SqlMonitor.Common.Networking.Client.Exceptions.RpcNoResultException: System.Data.SqlClient.SqlException was thrown by method GetActiveAlertSummaries on service AlertSummaryRepositoryRpcServer:\nSystem.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission was denied on the object \u0027DateTimeToTicks\u0027, database \u0027RedGateMonitor\u0027, schema \u0027utils\u0027.   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean\u0026 dataReady)   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()   at System.Data.SqlClient.SqlDataReader.get_MetaData()   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task\u0026 task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task\u0026 task, Boolean\u0026 usedCache, Boolean asyncWrite, Boolean inRetry)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)   at RedGate.SqlMonitor.Common.Utilities.Sql.Abstraction.ProfilingSqlCommand.LogCommandTextOnSqlException[T](Func`1 func)   at RedGate.SqlMonitor.Engine.Alerting.Base.Core.AlertSummaryRepository.GetActiveAlertSummaries()   at RedGate.SqlMonitor.RPC.AlertSummaryRepositoryRpcServer.GetActiveAlertSummaries()ClientConnectionId:27cf2429-ef1a-4346-a158-8802b3107adbError Number:229,State:5,Class:14   at RedGate.SqlMonitor.Common.Networking.Client.RpcSynchronousChannel.CallMethod(String serviceName, MethodInfo method, Object[] args)   at RedGate.SqlMonitor.Common.Networking.Client.RpcSynchronousTcpChannel.CallMethod(String serviceName, MethodInfo method, Object[] args)   at RedGate.SqlMonitor.Common.Networking.Client.RpcProxyGenerator.RpcChannelInterceptor`1.Intercept(IInvocation invocation)   at Castle.DynamicProxy.AbstractInvocation.Proceed()   at Castle.Proxies.IAlertSummaryRepositoryRpcServerProxy.GetActiveAlertSummaries()   at RedGate.SqlMonitor.RPC.AlertSummaryRepositoryRpcClient.GetActiveAlertSummaries()   at RedGate.SqlMonitor.UI.Website.Controllers.GlobalDashboardController.\u003c\u003ec__DisplayClass32_0.\u003cGetDashboardModel\u003eb__0(String context)   at RedGate.SqlMonitor.UI.Website.Infrastructure.BaseMonitorConnectionProvider.\u003c\u003ec__DisplayClass14_0`1.\u003cDelegateForAllConnections\u003eb__0(String context)   at RedGate.SqlMonitor.UI.Website.Infrastructure.BaseMonitorConnectionProvider.\u003c\u003ec__DisplayClass16_0`1.\u003cDelegateForAllConnectionsPrivate\u003eb__0(IBaseMonitorConnection connection)\u003c---"
  • Graham_BGraham_B Posts: 7 New member
    Fixing the EXECUTE permissions resolved this problem. Thanks for your help.
  • Russell DRussell D Posts: 1,324 Diamond 5
    If only they were all that easy @Graham_B . Good news!
    Have you visited our Help Centre?
Sign In or Register to comment.