appdynamics-cookbooks icon indicating copy to clipboard operation
appdynamics-cookbooks copied to clipboard

Java_Agent permission problems on conf dir

Open rediculum opened this issue 6 years ago • 1 comments

When running Java Agent as a different user than root, the conf directory needs also be changed with the specificed owner and group, not only controller-info.xml

[AD Thread Pool-Global1] 19 Dec 2018 10:19:17,101  INFO TransactionConfigUpdater - Updating transactions.xml to /opt/appdynamics/javaagent/conf/hostname.domain.com/transactions.xml
[AD Thread Pool-Global1] 19 Dec 2018 10:19:17,101  INFO TransactionConfigUpdater - Failed to create directory [/opt/appdynamics/javaagent/conf/hostname.domain.com]

rediculum avatar Dec 19 '18 10:12 rediculum

directory "#{agent['install_dir']}/javaagent/conf" do
  owner agent['owner']
  group agent['group']
  mode '0755'
end

rediculum avatar Dec 19 '18 10:12 rediculum