Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent fails to initialize and provides no logs when configured with capitalized booleans #266

Closed
lspangler584 opened this issue Sep 30, 2020 · 1 comment · Fixed by #617
Assignees
Labels
bug Something isn't working

Comments

@lspangler584
Copy link
Contributor

lspangler584 commented Sep 30, 2020

Description
When using application allow-listing to explicitly configure an app pool to be instrumented, and true is not set to all lowercase, we get a message in the profiler log that the app pool should be instrumented, but no agent log is created, no data is reported, and there is no message indicating an XML validation issue.

Expected Behavior
Either document casing requirements and log an error when they are violated, or accommodate multiple casing options.
Regardless, log XML validation errors from the Unmanaged Agent (profiler).

Steps to Reproduce
Add this to newrelic.config to enable allow-listing for app pool foo:

<applicationPools>
    <defaultBehavior instrument="false" />
    <applicationPool name="foo" instrument="True" />
</applicationPools>

Send traffic to the app and note this message in the profiler log:
This application pool (foo) is explicitly configured to be instrumented.

We see these DLLs loaded into the process (see image) but no other NR dlls are loaded:

  • NewRelic.Profiler.dll
  • NewRelic.Agent.Core.dll
  • NewRelic.Agent.Extensions.dll

Screen Shot 2019-11-21 at 9 26 00 AM

No agent log is created and no errors indicate an issue with the config file.

When attempting to manually validate the config file we get:

element applicationPool: Schemas validity error : Element ‘{urn:newrelic-config}applicationPool’, attribute ‘instrument’: ‘TruE’ is not a valid value of the atomic type ‘xs:boolean’. test.config fails to validate

@lspangler584 lspangler584 added the bug Something isn't working label Sep 30, 2020
@angelatan2 angelatan2 added this to the Q4 Bug Smash Kanban milestone Nov 13, 2020
@angelatan2
Copy link
Contributor

Scope this issue: to update the doc and explore if we can log an event in our of our logs.

@tehbio tehbio self-assigned this Jun 25, 2021
@tehbio tehbio changed the title Profiler log shows app pool is configured to be instrumented, but no agent logs or data Agent fails to initialize and provides no logs when configured with capitalized booleans Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants