PerfTap icon indicating copy to clipboard operation
PerfTap copied to clipboard

Service don't start if format is defined in configuration file

Open DanielLuning opened this issue 12 years ago • 13 comments

I tried to add the format setting to PerfTap configuration file but with it the service refuses to start. I have done a manual installation, also tried to use the Local Installation Script with config parameters but that doesn't work either.

DanielLuning avatar May 07 '12 11:05 DanielLuning

Interesting -- will try and check this out soon. Thanks for the report.

Iristyle avatar May 07 '12 13:05 Iristyle

I can confirm the same. By default it seems PerfTap is sending in statsite formatted data and I am trying to change it to StatsD format for use with bucky/graphite.

Service cannot be started. System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'format'. Note that attribute names are case-sensitive. (C:\...\PerfTap\PerfTap.WindowsServiceHost.exe.Config line 24)
   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requ...

Using the 0.1.1 package from the downloads page.

I'm using the following XML configuration:

  <perfTapPublishing prefixKey="perftap"
                     port="8125"
                     server="perftap"
                     Key="StatsD"
    />

singhman13 avatar May 14 '12 12:05 singhman13

Ok -- thanks for the follow-up guys. I will try to look at this today.

Iristyle avatar May 14 '12 13:05 Iristyle

Did you have any luck?

singhman13 avatar May 18 '12 05:05 singhman13

I have the same issue starting the service but it complains about hostname:

Service cannot be started. System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'hostName'. Note that attribute names are case-sensitive. (C:\Program Files\PerfTap\PerfTap.WindowsServiceHost.exe.Config line 23)

<perfTapPublishing prefixKey="PerfTap" port="8125" hostName="qalog" format="StatsD" />

This will be a great utility when it works for me, thanks for your effort!

fonziesherman avatar Jun 29 '12 19:06 fonziesherman

Yeah, I realized that I updated the readme docs, but failed to update the actual code yet... I will let you know as soon as I get this straightened out. I just returned from vacation, but it's high on my agenda.

Iristyle avatar Jun 29 '12 19:06 Iristyle

Hi,

I still have the same issue... did you manage to find the time to update the actual code ?

mathiear avatar Dec 20 '12 16:12 mathiear

Also having this issue. Any word on an ETA for the fix?

tomcooley avatar Jan 04 '13 21:01 tomcooley

I have fixed this issue for myself locally and have a pull request pending so that my changes can be available to others.

tomcooley avatar Jan 16 '13 16:01 tomcooley

Hi Tom,

Any chance you could post your fix here while we wait for the pending request?

Cheers,

Arnaud

mathiear avatar Jan 17 '13 14:01 mathiear

Hi

Has this bug been fixed ? I was trying this out today but ran into this problem too.

Best regards

Gardar

gardart avatar Feb 14 '13 21:02 gardart

Man.. 10 months.

Sorry guys... this project has been in a bit of neglect mode here, since I've been tied up with a ton of other stuff.

If someone wants to send a PR fixing this I would take a look and ship a new version.

The next step for this project was to integrate NanoTube and yank out any of the network client code, relying on that library instead.

Iristyle avatar Mar 01 '13 16:03 Iristyle

Having the same issue after default install... System.ConfigurationErrorsException: unrecognized attribute 'hostname'. Note that attribute names are case-sensitive. (C:\Program Files\PerfTap\PerfTap\WindowsServiceHost.exe.Config line 18)

Would be nice to get this working - Thank you

francoisbouchard avatar Mar 06 '13 01:03 francoisbouchard