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

Use standalone activemq in claw_vagrant #660

Closed
ruebot opened this issue Jun 8, 2017 · 11 comments
Closed

Use standalone activemq in claw_vagrant #660

ruebot opened this issue Jun 8, 2017 · 11 comments
Assignees

Comments

@ruebot
Copy link
Member

ruebot commented Jun 8, 2017

We seems to be having issues with sync working consistently because of the bundled activemq.

This is ticket's purpose is to install activemq as a separate service, and configure Fedora to use that. It should be as simple as installing activemq, and using/modifying activemq.xml from fcrepo-webapp.

@ruebot
Copy link
Member Author

ruebot commented Jun 8, 2017

Working through this now, and hit a wall.

java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:61616?maximumConnections=1000&wireformat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use (Bind failed)

@ajs6f @acoburn @whikloj @dannylamb any of y'all configured fcrepo to use a standalone ActiveMQ? Do I need to custom compile it? Or is it just a configuration thing?

Approach I'm taking if y'all are curious:
https://github.com/Islandora-CLAW/claw_vagrant/compare/master...yorkulibraries:issue-660?expand=1

@whikloj
Copy link
Member

whikloj commented Jun 8, 2017

@ruebot Did you turn off the activemq broker inside Fedora?

@whikloj
Copy link
Member

whikloj commented Jun 8, 2017

I've never done this, but I would say you need to remove the setup of an ActiveMQ broker and provide a new config that uses the network-connector to connect to the external Broker.

These lines setup a connection to and also the broker, so I'm thinking you need to replace fcrepo.activemq.configuration with a file somewhat like this one

But also have a separate activemq.xml for your external ActiveMQ instance.

@ruebot
Copy link
Member Author

ruebot commented Jun 8, 2017

Did you turn off the activemq broker inside Fedora?

@whikloj that's what I'm trying to remember -- or probably figure out -- how to do it. I thought I could do it in a config file. I thought there was a wiki page for it, but maybe I'm misremembering. looks toward @awoods

...this all makes me suddenly realize we should be using the audit enabled artifact.

@ajs6f
Copy link

ajs6f commented Jun 9, 2017

@ruebot Just catching up here-- @whikloj is right, I think. I don't know much about the blizzard of system properties that configures the fcrepo4 webapp, but the steps would be:

  1. change the config for fcrepo4's internal broker to use a network connector aimed at your standalone AMQ.
  2. You can then change the client-side connector to whatever port you want that doesn't conflict with your standalone AMQ, and use that port in the connectionFactory bean.

@awoods
Copy link

awoods commented Jun 9, 2017

@ruebot : this page may be helpful:
https://wiki.duraspace.org/display/FEDORA4x/Setup+Camel+Message+Integrations#SetupCamelMessageIntegrations-DistributedBrokers

@ruebot
Copy link
Member Author

ruebot commented Jun 9, 2017

I guess one thing I'm confused about still, is whether or not I can just use the standard war artifact, and edit configuration files, or do I need to edit configuration and compile our own artifact?

@ruebot
Copy link
Member Author

ruebot commented Jun 9, 2017

@awoods that was the page I thought I had seen before. Thanks!

@ruebot
Copy link
Member Author

ruebot commented Jun 9, 2017

Oh wait. I'll try something with activemq.xml. I think I know what I need to do now.

@ruebot
Copy link
Member Author

ruebot commented Jun 9, 2017

@whikloj @awoods @ajs6f got it! PR coming soon. Thank y'all! 😄

ruebot added a commit to yorkulibraries/claw_vagrant that referenced this issue Jun 9, 2017
…tion#660

* Adds a standalone ActiveMQ installation
* Updates Fedora to use external ActiveMQ
* Adds some documentation
* Cleans up some cruft I noticed
@ruebot
Copy link
Member Author

ruebot commented Jun 9, 2017

dannylamb pushed a commit to dannylamb/CLAW that referenced this issue Feb 8, 2018
…race-condition

Chunking/byte-range datastream request race condition
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