question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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(Action1 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"/> <Indexes generate="true"> <Index column="timestamp" clustered="true"/> <Index column="machine" clustered="false"/> <Index column="instance" clustered="false"/> </Indexes> <PurgeOldData enabled="false" thresholdDays="30"/> </Database> </TabMonConfig>

#30

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
danjrahmcommented, Nov 21, 2017

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:

  1. Log into the secondary server.
  2. Open perfmon.exe
  3. In the left pane, drop down the ‘Monitoring Tools’, and select ‘Performance Monitor’.
  4. In the new (right) pane, select the green ‘plus’ icon.
  5. Under ‘Select counters from computer:’ select the ‘Browse…’ button.
  6. In the new menu, enter the hostname of the primary server without the domain.
  7. Once done, select ‘Check Names’.

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:

hostnameerror

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.

0reactions
danjrahmcommented, Feb 14, 2018

Hello,

I am going to close this out. If you need any further assistance let me know.

Thanks, Dan

Read more comments on GitHub >

github_iconTop Results From Across the Web

TabMon - Can not start the service
Hi All,. I have installed the latest version of TabMon (version 2.2) on my single node tableau server and configured it exactly as...
Read more >
Error "Unable to start service 'tabsrv'" when Starting Tableau ...
Run 'tabadmin configure' from the command line from the primary Tableau Server node. Option 2. Change process count for the affected machine ...
Read more >
Configuring TabMon
A Tableau Server performance monitoring service. ... TabMon utilizes two main application config files, located in the “Config” directory in the TabMon ......
Read more >
Tableau Server – Tableau Love - RSSing.com
Today, we'll delve into how to configure TabJolt to capture JMX and Windows Performance Monitor data. This data can be very interesting in...
Read more >
Administrator's Toolbox: The Tableau Utility Server - YouTube
This session is a whirlwind tour of all Tableau public-facing tools. Tabjolt, Tabmon, Scout, Logshark, TLV, Replayer, they're all here!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found