-
Notifications
You must be signed in to change notification settings - Fork 61
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
New Relic Initialization Failure in ASP.NET Core 8 Self-Contained Single-File Deployment #2555
Comments
This is what happens when application is not published using single file mode. NewRelic.Profiler.9993.log
[Info ] 2024-06-14 05:42:51 Logger initialized.
[Info ] 2024-06-14 05:42:51 Initializing ThreadProfiler
[Info ] 2024-06-14 05:42:51 ICorProfilerInfo10 available
[Info ] 2024-06-14 05:42:51 Loading instrumentation from ./newrelic/extensions
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Info ] 2024-06-14 05:42:51 Identified 244 Instrumentation points (not ignored) in .xml files
[Info ] 2024-06-14 05:42:51 Command line: /data01/domeenid/AppApi/AppApi
[Info ] 2024-06-14 05:42:51 Process . with parent process . is not IIS.
[Info ] 2024-06-14 05:42:51 Profiler initialized
[Info ] 2024-06-14 05:42:52 Unable to find Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker for rejit. HR:-2146234064 |
@itsbalamurali Thanks for your report. After a bit of investigation, it looks like the single-file deploy bundles all It also appears that the ability to exclude files from the bundle doesn't work well for entire Nuget packages. You might be able to craft a workaround based on the custom build steps mentioned here dotnet/sdk#25411 (comment). This specific use case isn't something the .NET agent can support natively -- it isn't a problem in the agent but an issue with the implementation of single-file deploy. |
@tippmar-nr This is what happens when application is published in unbundled self-contained mode.
[Info ] 2024-06-14 05:42:51 Logger initialized.
[Info ] 2024-06-14 05:42:51 Initializing ThreadProfiler
[Info ] 2024-06-14 05:42:51 ICorProfilerInfo10 available
[Info ] 2024-06-14 05:42:51 Loading instrumentation from ./newrelic/extensions
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Warn ] 2024-06-14 05:42:51 extension node not found in instrumentation file. Please validate your instrumentation files against extensions/extension.xsd or contact New Relic support.
[Info ] 2024-06-14 05:42:51 Identified 244 Instrumentation points (not ignored) in .xml files
[Info ] 2024-06-14 05:42:51 Command line: /data01/AppApi/AppApi
[Info ] 2024-06-14 05:42:51 Process . with parent process . is not IIS.
[Info ] 2024-06-14 05:42:51 Profiler initialized
[Info ] 2024-06-14 05:42:52 Unable to find Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker for rejit. HR:-2146234064 OS: Linux |
@itsbalamurali I've been unable to reproduce that result locally on a Ubuntu distro with the NewRelic .NET agent installed via Nuget. What distro and processor architecture are you running on? Can you verify the content of the
|
Description
We are encountering an issue when running an ASP.NET Core 8 application in self-contained and single-file mode. The application fails to initialize properly due to missing New Relic environment variables and DLL. The logs show the following errors:
Expected Behavior
The application should initialize without errors, with the New Relic agent properly configured and able to perform instrumentation.
Troubleshooting or NR Diag results
We have verified that the necessary environment variables (
CORECLR_NEWRELIC_HOME
orNEWRELIC_INSTALL_PATH
) are not set, which is causing the issue. The New Relic agent DLL is also not included in the single-file bundle.Steps to Reproduce
Your Environment
Additional context
This issue might be related to how environment variables are handled in single-file applications, and whether the New Relic agent is included correctly in the bundle. Additional guidance on configuring New Relic for self-contained single-file deployments would be helpful.
The text was updated successfully, but these errors were encountered: