Unable to install the current Version of SQL Monitor
anka00
Posts: 1 New member
We are trying to upgrade to SQL Monitor 9. We already had an older version installed previsoly. But at the end of the installation it stucks while it's trying to start the "SQL Monitor Base Monitor" and we get the message "Service SQL Monitor Base Monitor" could not be installed. Verify that you have sufficinet privileges to install system services." (Even we run it as admin)
We uninstalled everything and tried again, but with the same result.
We also tried to just remove the service and install the SQLMonitorBaseMonitorInstaller.exe, but this didn't help either.
We uninstalled everything and tried again, but with the same result.
We also tried to just remove the service and install the SQLMonitorBaseMonitorInstaller.exe, but this didn't help either.
Tagged:
Answers
We have seen occasions when this occurs for a while, even when the users are using Domain Admins and have not been able to reproduce the behavior.
What we have seen, is that if you install just the web portion of SQL Monitor, but do not install the base monitor at this point, it should succeed.
Then, if you navigate to "<PathToWebInstall>\Download" (e.g. C:\Program Files\Red Gate\SQL Monitor\WebSite\Download) and run the SQLMonitorBaseMonitorInstaller.exe found therein it should then install successfully. The only difference here is that you may need to specify the location of the base monitor as localhost (if installing on the same machine) when you first start the web UI.
Please let me know if this helps!
Kind regards,
Alex
Have you visited our Help Center?
I've followed these steps but still get failure based on permissions.
The install log shows the following error:
RedGate.SqlMonitor.Default.Config.SchemaVersioning.Sql.SqlSchemaUpgradeException: Violation of PRIMARY KEY constraint 'PK_datawarehouse_AllRPOs'. Cannot insert duplicate key in object 'datawarehouse.AllRPOs'. The duplicate key value is (~HostnameSnip~, , ~DatabaseNameSnip~, 636879933070000000). ---> System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_datawarehouse_AllRPOs'. Cannot insert duplicate key in object 'datawarehouse.AllRPOs'. The duplicate key value is (~HostnameSnip~, , ~DatabaseNameSnip~, 636879933070000000).
Further digging shows that a new procedure is created called [datawarehouse].[PopulateAllRPOs] that contains the following:
I'm not sure if this has anything to do with the issue, but the two repositories where it succeeded, were on SQL Server 2016, but the 5 that failed were hosted on SQL Server 2012.
At any rate, I haven't been able to get the repositories on 2012 to upgrade.
No matter what we do, the 9.0.4 update fails during Base Monitor installation indicating an "insufficient privileges" error, but is actually due to a primary key violation in a new stored procedure called [datawarehouse].[PopulateAllRPOs].
Our [RedGateMonitor] database is also stored on SQL Server 2012.
It throws a generic service won't start permissions error, but upon digging further I also noticed the primary key issue that DonFerguson mentioned above. It also seems to apply to multiple DBs, not just one. Always with the issue:
SqlSchemaUpgradeException: Violation of PRIMARY KEY constraint 'PK_datawarehouse_AllRPOs'. Cannot insert duplicate key in object 'datawarehouse.AllRPOs'.
Some details:
Windows Server 2012 R2
Upgrading from Redgate 9.0.3.20042 to Redgate 9.0.4.20475
ftp://support.red-gate.com/patches/SqlMonitorWeb/12Feb2019/SQLMonitorWeb_9.0.3.20042.zip
It shouldn't be necessary to restore from a backup in order to do this.
Apologies for any inconvenience caused.
Then I ran the 9.0.3 executable as admin. The service still fails to start properly. The issue still appears to be related to the Pkeys and thus not being able to start the service
[Red Gate Monitor (9.0.6.20734), Running as: (Service), Working Dir: C:\Program Files\Red Gate\SQL Monitor\BaseMonitor]
Uninstalled and tried 9.0.4, same issue.
Uninstalled 9.0.4 and installed 9.0.3 worked OK.
Upgraded from 9.0.3 and installed 9.0.6, Encountered same error regarding Service SQL Monitor Base Monitor.
In all failed instances on SQL Web Monitor 9 installs OK and was uninstalled via Control Panel
SQL Base Monitor service is in a starting state.
sc delete MonitorBaseDeploymentService - to delete the service
Rebooted Server and installed 9.0.3 OK