AMQ broker does not start correctly due to a problem in sysconfiog file. The Java arguments container the variable ARTEMIS_INSTANCE_ETC_URI. This is not defined in the sysconfig file. this leads to a problem starting the service and a 503 error for the webconsole.
ISSUE TYPE
Bug Report
STEPS TO REPRODUCE
1 Start the broker from the main playbook.
ansible-playbook -i hosts_vagrant.yml playbooks/activemq.yml -v
2022-09-02 08:11:10,228 WARN [org.eclipse.jetty.webapp.WebAppContext] Failed startup of context o.e.j.w.WebAppContext@cdb2d95{hawtio,/console,file:///opt/amq/amq-broker/tmp/webapps/jetty-0_0_0_0-8161-console_war-_console-any-13591837186429975029/webapp/,UNAVAILABLE}{/opt/amq/apache-artemis-2.18.0/web/console.war}: javax.servlet.ServletException: jolokia-agent==io.hawt.web.servlets.JolokiaConfiguredAgentServlet@c61e72f3{jsp=null,order=1,inst=true,async=false,src=DESCRIPTOR:file:///opt/amq/amq-broker/tmp/webapps/jetty-0_0_0_0-8161-console_war-_console-any-13591837186429975029/webapp/WEB-INF/web.xml,STARTED}
Caused by: java.lang.IllegalArgumentException: Unknown expression ARTEMIS_INSTANCE_ETC_URI in ${ARTEMIS_INSTANCE_ETC_URI}jolokia-access.xml
at org.jolokia.util.NetworkUtil.replaceExpression(NetworkUtil.java:362)
at org.jolokia.restrictor.RestrictorFactory.createRestrictor(RestrictorFactory.java:48)
at org.jolokia.http.AgentServlet.createRestrictor(AgentServlet.java:195)
at org.jolokia.http.AgentServlet.init(AgentServlet.java:135)
at io.hawt.web.servlets.JolokiaConfiguredAgentServlet.init(JolokiaConfiguredAgentServlet.java:55)
at org.eclipse.jetty.servlet.ServletHolder$Wrapper.init(ServletHolder.java:1345) [jetty-all-9.4.43.v20210629-uber.jar:9.4.43.v20210629]
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:632) [jetty-all-9.4.43.v20210629-uber.jar:9.4.43.v20210629]
... 38 more
SUMMARY
AMQ broker does not start correctly due to a problem in sysconfiog file. The Java arguments container the variable ARTEMIS_INSTANCE_ETC_URI. This is not defined in the sysconfig file. this leads to a problem starting the service and a 503 error for the webconsole.
ISSUE TYPE
STEPS TO REPRODUCE
1 Start the broker from the main playbook. ansible-playbook -i hosts_vagrant.yml playbooks/activemq.yml -v
EXPECTED RESULTS
Service should start AMQ correctly
ACTUAL RESULTS
Service contains a not interpolated variable: