Documentation: ActiveMQ does not start in the claw-vagrant

Created on 15 Jun 2017  路  8Comments  路  Source: Islandora/documentation

Steps to reproduce

  • Vagrant halt
  • Vagrant up
  • Check if activemq is running
ubuntu@claw:/opt/activemq/bin$ sudo ./activemq status
INFO: Loading '/opt/activemq//bin/env'
INFO: Using java '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'
ActiveMQ not running
  • Create a collection or image, you will get the following error:
 Error publishing message: Could not connect to a broker (Host: localhost) 

Expected behavior

  • When you vagrant up, activemq should be running

Actual behavior

  • When you vagrant up, activemq is not running

Additional Notes

  • If you start the activemq then create the objects, it will create without the above error. Have to update the vagrant sh scripts to start the activemq! Does this script get run on subsequent vagrant ups (https://github.com/Islandora-CLAW/claw_vagrant/blob/20ce269ae52b215a0eb7b673bddbd0833a610d69/scripts/activemq.sh#L19).
ubuntu@claw:/opt/activemq/bin$ sudo ./activemq start
INFO: Loading '/opt/activemq//bin/env'
INFO: Using java '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/opt/activemq//data/activemq.pid' (pid '

Most helpful comment

What @ruebot said. I just stuck 3 lines at the bottom of the activemq.sh

ln -snf /opt/activemq/bin/activemq /etc/init.d/activemq
update-rc.d activemq defaults
service activemq start

All 8 comments

Confirmed, I'm adding this to my work on #572

@ruebot set it up with an apt-get install and I'm surprised it doesn't set the appropriate runlevel.

Oh well, hopefully it's an easy fix.

@dannylamb the apt install version was bad. I used their recommended install and they say this: http://activemq.apache.org/unix-service.html

Ah, ok. I'm just confused. Carry on.

What @ruebot said. I just stuck 3 lines at the bottom of the activemq.sh

ln -snf /opt/activemq/bin/activemq /etc/init.d/activemq
update-rc.d activemq defaults
service activemq start

I've tested this in @whikloj 's work for openseadragon and I can verify it works. We'll take care of it in the vagrant PR for that work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dannylamb picture dannylamb  路  3Comments

ruebot picture ruebot  路  4Comments

dannylamb picture dannylamb  路  4Comments

Natkeeran picture Natkeeran  路  3Comments

manez picture manez  路  5Comments