newrelic: `sudo java -jar newrelic.jar -s /opt/newrelic/java install` is failing
This call is returning 1 and so is failing. With the following output:
---- Begin output of sudo java -jar newrelic.jar -s /opt/newrelic/java install ----
STDOUT: ***** ( ( o)) New Relic Java Agent Installer
***** Installing version 3.19.0 ...
Could not edit start script because:
.:. Could not locate a Tomcat, Jetty, JBoss, JBoss7 or Glassfish instance in /opt/newrelic/java
Try re-running the install command with the -s <AppServerRootDirectory> option or from <AppServerRootDirectory>/newrelic.
If that doesn't work, locate and edit the start script manually.
No need to create New Relic configuration file because:
.:. A config file already exists: /opt/newrelic/java/newrelic.yml
***** Install incomplete
***** Next steps:
For help completing the install, see https://newrelic.com/docs/java/new-relic-for-java
STDERR:
---- End output of sudo java -jar newrelic.jar -s /opt/newrelic/java install ----
The recipe already has created the newrelic.yml, so it’s normal that it doesn’t want to write it again. No application server is deployed on this machine. It is a standalone process.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (7 by maintainers)
Hi @henri-tremblay,
setting execute agent to false is the right thing in his situation as there’s no application server on the machine…
Hope this helps!
Kind regards, David
I found a workaround.
Setting
default['newrelic']['java_agent']['execute_agent_action']tofalsemake it pass