Apache management plug-in for JBoss ON fails to update resource configuration using Augeas if agent was not started as same user that owns Apache configuration or as root
Issue
- Update apache configuration fails
- Augeas enabled but not possible to update any configuration item
-
Agent log contains:
ERROR [ResourceContainer.invoker.nonDaemon-3] (org.rhq.plugins.apache.ApacheDirectoryComponent)- Augeas failed to save configuration Error open_augnew message Permission denied net.augeas.AugeasException: save failed -
Save configuration fails:
net.augeas.AugeasException: save failed at net.augeas.Augeas.processLastCall(Unknown Source) at net.augeas.Augeas.save(Unknown Source) -
Agent log reports:
ERROR [ResourceContainer.invoker.nonDaemon-5] (org.rhq.plugins.apache.ApacheDirectoryComponent)- Augeas failed to save configuration Error xfer_attrs message Operation not permitted net.augeas.AugeasException: save failed
Environment
- Red Hat JBoss Operations Network (ON) 3.2
- Red Hat JBoss Web Server 2 management plug-in for JBoss ON
- Apache HTTP Server resource connection setting Enable augeas support is set to
true - User who owns the JBoss ON agent process does not have write permission to the Apache HTTP Server's configuration directory
httpd/confand is not the owner of the target configuration file --httpd/conf/httpd.conf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
