Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveMQ does not start in the claw-vagrant #665

Closed
Natkeeran opened this issue Jun 15, 2017 · 8 comments
Closed

ActiveMQ does not start in the claw-vagrant #665

Natkeeran opened this issue Jun 15, 2017 · 8 comments
Assignees

Comments

@Natkeeran
Copy link
Contributor

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

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 '
@whikloj
Copy link
Member

whikloj commented Jun 16, 2017

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

@dannylamb
Copy link
Contributor

dannylamb commented Jun 16, 2017

@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.

@whikloj
Copy link
Member

whikloj commented Jun 16, 2017

No he didn't use apt-get install
https://github.com/Islandora-CLAW/claw_vagrant/blob/20ce269ae52b215a0eb7b673bddbd0833a610d69/scripts/activemq.sh

@ruebot
Copy link
Member

ruebot commented Jun 16, 2017

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

@dannylamb
Copy link
Contributor

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

@whikloj
Copy link
Member

whikloj commented Jun 16, 2017

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

@whikloj whikloj self-assigned this Jun 18, 2017
@dannylamb
Copy link
Contributor

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.

@whikloj
Copy link
Member

whikloj commented Jul 19, 2017

Resolved with islandora-deprecated/claw_vagrant@be41a78

@whikloj whikloj closed this as completed Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants