Ask the Community
Groups
messaging server (activemq) fails to start - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>PROBLEM:</strong></p> <p>messaging server (activemq) fails to start (especiailly if it is a new traverse installation)</p> <p> </p> <p><strong>CAUSE:</strong></p> <p>Local hostname is missing from the configuration</p> <p>You will see the below message when attempting to start the components:</p> <p>[root@myserver-centos664 logs]# ../etc/traverse.init start</p> <p>performance and event database ... running<br>internal communication bus ... failed<br>ERROR: messaging server did not remain running - please investigate</p> <p> </p> <p><em>stderr.log</em></p> <p>The stderr.log will have an entry similar to:</p> <p>Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: myserver-centos664: myserver-centos664</p> <p> </p> <p><strong>RESOLUTION:</strong></p> <p>The resolution is to add the server hostname to /etc/hosts as follows (server hostname in this lab example is myserver-centos664)</p> <p><em>After</em><strong>:</strong></p> <p>[root@myserver-centos664 logs]# tail /etc/hosts<br>127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 myserver-centos664<br>::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 myserver-centos664</p> <p><em>Before</em>:</p> <p>[root@myserver-centos664 logs]# tail /etc/hosts<br>127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4<br>::1 localhost localhost.localdomain localhost6 localhost6.localdomain6</p> <p> </p> <p><strong>APPLIES TO:</strong></p> <p>Linux Traverse BVE installations</p> <p> </p> <p><strong>REFERENCE:</strong></p> <p>None</p> <p> </p> </article> </main>