SQL On-prem : Agent installed in the source system but it's connecting and going offline after couple sec's

When I double click on agent then it's occupying CPU almost 100% and I see in task manager many agents are running.

here are the log details:


{"v":0,"level":30,"name":"newrelic","hostname":"BIPROD02","pid":21388,"time":"2023-09-14T20:50:58.743Z","msg":"Unable to find configuration file. If a configuration file is desired (common for non-containerized environments), a base configuration file can be copied from C:\\Program Files\\Agent\\resources\\app.asar\\node_modules\\newrelic\\newrelic.js and renamed to \"newrelic.js\" in the directory from which you will start your application. Attempting to start agent using environment variables."}
{"v":0,"level":30,"name":"newrelic","hostname":"BIPROD02","pid":21388,"time":"2023-09-14T20:50:58.744Z","msg":"Using New Relic for Node.js. Agent version: 9.7.4; Node version: v14.17.0."}
{"v":0,"level":30,"name":"newrelic","hostname":"BIPROD02","pid":21388,"time":"2023-09-14T20:50:59.001Z","msg":"Using LegacyContextManager"}
{"v":0,"level":50,"name":"newrelic","hostname":"BIPROD02","pid":21388,"time":"2023-09-14T20:50:59.005Z","msg":"New Relic requires that you name this application!\nSet app_name in your newrelic.js or newrelic.cjs file or set environment variable\nNEW_RELIC_APP_NAME. Not starting!"}
{"v":0,"level":50,"name":"newrelic","hostname":"BIPROD02","pid":21388,"time":"2023-09-14T20:50:59.005Z","msg":"New Relic for Node.js was unable to bootstrap itself due to an error:","stack":"Error: New Relic requires that you name this application!\nSet app_name in your newrelic.js or newrelic.cjs file or set environment variable\nNEW_RELIC_APP_NAME. Not starting!\n at createAgent (C:\\Program Files\\Agent\\resources\\app.asar\\node_modules\\newrelic\\index.js:141:11)\n at initialize (C:\\Program Files\\Agent\\resources\\app.asar\\node_modules\\newrelic\\index.js:82:15)\n at Object. (C:\\Program Files\\Agent\\resources\\app.asar\\node_modules\\newrelic\\index.js:37:3)\n at Module._compile (internal/modules/cjs/loader.js:1083:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1113:10)\n at Module.load (internal/modules/cjs/loader.js:940:32)\n at Module._load (internal/modules/cjs/loader.js:781:14)\n at Function.f._load (electron/js2c/asar_bundle.js:5:12913)\n at Module.require (internal/modules/cjs/loader.js:964:19)\n at require (internal/modules/cjs/helpers.js:88:18)\n at Object. (C:\\Program Files\\Agent\\resources\\app.asar\\node_modules\\@celigo\\rdbms-adaptor\\src\\index.js:8:3)\n at Module._compile (internal/modules/cjs/loader.js:1083:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1113:10)\n at Module.load (internal/modules/cjs/loader.js:940:32)\n at Module._load (internal/modules/cjs/loader.js:781:14)\n at Function.f._load (electron/js2c/asar_bundle.js:5:12913)\n at Module.require (internal/modules/cjs/loader.js:964:19)\n at require (internal/modules/cjs/helpers.js:88:18)\n at Object. (C:\\Program Files\\Agent\\resources\\app.asar\\lib\\msRouter.js:1:21)\n at Module._compile (internal/modules/cjs/loader.js:1083:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1113:10)\n at Module.load (internal/modules/cjs/loader.js:940:32)","message":"New Relic requires that you name this application!\nSet app_name in your newrelic.js or newrelic.cjs file or set environment variable\nNEW_RELIC_APP_NAME. Not starting!"}

Log:

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
2023-09-14T20:51:08.625Z: level=error, logName=uncaughtException, err={"errno":-4048,"code":"EPERM","syscall":"open","path":"C:\\Program Files\\Agent\\server.log.2023-09-14-T20"}, stack=Error: EPERM: operation not permitted, open 'C:\Program Files\Agent\server.log.2023-09-14-T20', message=EPERM: operation not permitted, open 'C:\Program Files\Agent\server.log.2023-09-14-T20'
2023-09-14T20:51:08.931Z: level=error, logName=uncaughtException, err={"errno":-4048,"code":"EPERM","syscall":"open","path":"C:\\Program Files\\Agent\\server.log.2023-09-14-T20"}, stack=Error: EPERM: operation not permitted, open 'C:\Program Files\Agent\server.log.2023-09-14-T20', message=EPERM: operation not permitted, open 'C:\Program Files\Agent\server.log.2023-09-14-T20'
2023-09-14T20:51:09.113Z: level=error, New Relic failed to open log file C:\Program Files\Agent\newrelic_agent.log
2023-09-14T20:51:09.114Z: level=error, undefined
2023-09-14T20:51:10.016Z: level=info, logName=show-logs

Hello @naveennunna,

Hope you are well.

Looking at the logs, it seems the agent is installed for all users. Could you please uninstall and reinstall the agent with the recommended settings and install it only for the current user and send us the logs in case you continue to face this issue?

Best Regards,