Unable to start tabmon service when adding the primary server to the configuration
See original GitHub issue@danjrahm and Team,
I have installed and configured tabmon on my secondary server and it working fine when i just specify the localhost as in the secondary instance to the tabmon configuration file. As soon as i add the primary instance in the cluster settings the tabmon services stops responding and doesnt start. I have checked all the previously raised issues. The remote Registry service is also running on the primary server. PFB the error message. Windows could not start the TabMon service on Local Computer. Error 5: Access denied.
Tabmon log : 2017-11-02 11:31:22,675 [5] INFO TabMon.Config.TabMonConfigReader - Loading TabMon user configuration… 2017-11-02 11:31:22,699 [5] INFO TabMon.Config.TabMonConfigReader - Initializing CSV writer… 2017-11-02 11:31:22,707 [5] DEBUG TabMon.Helpers.HostnameHelper - Successfully resolved ‘tab-server-win2’ to ‘tab-server-win2’. 2017-11-02 11:31:22,708 [5] DEBUG TabMon.Helpers.HostnameHelper - Successfully resolved ‘tab-server-win1’ to ‘tab-server-win1’. 2017-11-02 11:31:22,712 [5] INFO TabMon.Config.TabMonConfigReader - Successfully loaded TabMon config options! [Hosts=‘Secondary\tab-server-win2,Primary\tab-server-win1’, Writer=‘CSV File Writer’, PollInterval=‘60’, TableName=‘countersamples’] 2017-11-02 11:31:22,712 [5] INFO TabMon.TabMonAgent - Initializing TabMon… 2017-11-02 11:31:22,714 [5] DEBUG TabMon.CounterConfig.CounterConfigLoader - Loading persistent performance counters from C:\Program Files (x86)\TabMon\Config\Counters.config… 2017-11-02 11:31:22,717 [5] DEBUG TabMon.CounterConfig.CounterConfigLoader - Loading performance counters from C:\Program Files (x86)\TabMon\Config\Counters.config… 2017-11-02 11:31:22,721 [5] DEBUG TabMon.CounterConfig.CounterConfigLoader - Successfully validated ‘Config\Counters.config’ against ‘Resources\CountersConfig.xsd’. 2017-11-02 11:31:22,721 [5] DEBUG TabMon.CounterConfig.CounterConfigLoader - Loading Perfmon counters… 2017-11-02 11:31:23,012 [5] DEBUG TabMon.CounterConfig.CounterConfigLoader - Loaded 86 persistent Perfmon counters on tab-server-win2. 2017-11-02 11:32:05,015 [5] ERROR TabMon.TabMonAgent - Failed to initialize counter sampler using counters from configuration file: The network path was not found.
Aborting…
2017-11-02 11:32:05,015 [5] FATAL Topshelf.Runtime.Windows.WindowsServiceHost - The service did not start successfully
Topshelf.TopshelfException: The service did not start successfully (returned false).
at Topshelf.Runtime.Windows.WindowsServiceHost.OnStart(String[] args)
2017-11-02 11:32:05,020 [1] ERROR Topshelf.HostFactory - The service terminated abnormally
System.NullReferenceException: Object reference not set to an instance of an object.
at TabMon.TabMonAgent.Dispose(Boolean disposing)
at TabMonService.TabMonServiceBootstrapper.Dispose(Boolean disposing)
at TabMonService.TabMonServiceBootstrapper.Dispose()
at Topshelf.Builders.ControlServiceBuilder1.ControlServiceHandle.Dispose() at Topshelf.Runtime.Windows.WindowsServiceHost.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at System.ServiceProcess.ServiceBase.Run(ServiceBase[] services) at System.ServiceProcess.ServiceBase.Run(ServiceBase service) at Topshelf.Runtime.Windows.WindowsServiceHost.Run() at Topshelf.HostFactory.Run(Action
1 configureCallback)
Tabmon Config:
<?xml version="1.0"?> <TabMonConfig xmlns="TabMon"> <OutputMode value="CSV"/> <PollInterval value="60"/> <Clusters> <Cluster name="Secondary"> <Host name="tab-server-win2"/> </Cluster> <Cluster name="Primary"> <Host name="tab-server-win1"/> </Cluster> </Clusters> <Database name="tabmon" type="Postgres"> <Server host="localhost" port="5432"/> <User login="tabmon" password="pasword"/>Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:17 (8 by maintainers)
The error you are receiving occurs when the computer name is incorrect or cannot be looked up. This may be a limitation with remotely running perfmon remotely on EC2.
To see if we can remotely poll perfmon counters please perform the test below:
If this works properly, you should see the hostname underlined and be able to select ‘OK’. If it doesn’t work, you should see a warning that looks like this:
If this warning appears it means that Perfmon cannot look up the host and poll the data. In this case we may be able to work around the limitation by changing the hosts file, but we’ll get to that after the test.
Hello,
I am going to close this out. If you need any further assistance let me know.
Thanks, Dan