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

CLAW vagrant - created objects not being added to Fedora intermittently #686

Closed
MarcusBarnes opened this issue Aug 8, 2017 · 12 comments
Closed

Comments

@MarcusBarnes
Copy link

Noting some intermittent behavior I have seen on three different machines running CLAW vagrant in case others are experiencing the same behavior. What we are seeing intermittently is the following:

  1. Create an object in the Drupal admin, for example, an Islandora Image.
  2. Go to the Fedora4 interface http://localhost:8080/fcrepo/rest. Usually, you'll see the object there, but intermittently, the newly created objects from the Drupal side are not showing up there.
  3. Going to ActiveMQ administrative interface, the newly created objects appear in the islandora-connector-broadcast queue, but are not processed further.

Any insight into what might be happening or how I may best provide additional details to help investigate the cause of this behavior? Thank you in advance.

@DiegoPino
Copy link
Contributor

@MarcusBarnes do you have any fedora4 logs / Karaf logs around that you could share when that happens? If the queue is populated, then one possibility could (probably) that the resulting RDF (JSON-LD) is not being accepted by Fedora's API (we are doing all via PUT right @dannylamb @whikloj ?) which could mean some predicates or references fedora4 does not understand or that we are wrongly serializing. Could you share one of those Nodes? Also, it could be some issue with authentication, that some credentials get stuck? so many options with async.

@MarcusBarnes
Copy link
Author

Thanks @DiegoPino. The next time this happens, I'll grab the Fedroa4 and Karaf logs.

@DiegoPino
Copy link
Contributor

@MarcusBarnes thanks. It can be hard to debug for sure and more if it is intermittent. I would be very helpful for us if that ever happens again if you can share that with us. I feel that following the flow of data/ involved services and their logs can shine some light on that. And it could be an error of our code of course or some exceptional interaction between services also.

@dannylamb
Copy link
Contributor

@MarcusBarnes If you hop into the Karaf console with /opt/karaf/bin/client and do a la | grep islandora inside it, are all of the bundles listed as 'Active'?

@dannylamb
Copy link
Contributor

I've managed to narrow this down to

Bundle XXX is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]

for

  • fcrepo-api-x-routing
  • fcrepo-api-x-loader
  • fcrepo-api-x-listener
  • fcrepo-indexing-triplestore
  • islandora-indexing-fcrepo
  • islandora-indexing-triplestore
  • islandora-connector-broadcast

@dannylamb
Copy link
Contributor

dannylamb commented Aug 11, 2017

feature:uninstall fcrepo-api-x pulled the islandora features out of 'Grace Period' and into 'Active'.

feature:install fcrepo-api-x put everything back to 'Grace Period'. So there's something intermittent going on with our api-x install.

@dannylamb
Copy link
Contributor

So I audited alpaca's install and found a few weird things.

First, I bumped activemq up to 5.14.4, so hopefully that'll fix the long standing issues we've been experiencing with it. If not, 5.15.0 is available and a possibility.

We were declaring activemq unneccessarily as hard dependencies when it's really optional. So that won't do anything for us now, but by removing them we're paving the way for other brokers.

I bumped fcrepo-camel-toolbox from 4.7.0 to 4.7.2.

And the big one I think is that we were allowing a version range for Camel, which I've locked down to just the version we're compiling against. I think the main issue was that we had that fuzzy range and there were two copies of camel-blueprint floating out there between alpaca and api-x, and intermittently karaf wasn't resolving to the right one. Hence the waiting on camel-blueprint messages I was getting from the logs.

I've tested this three or four times now, and will probably keep doing it on and off throughout the day to see if I can get the error to reproduce. If not, I'll issue a PR.

@dannylamb
Copy link
Contributor

I'm occasionally running into #689 now, but will probably need to get that addressed in the Api-X codebase.

@dannylamb
Copy link
Contributor

I've managed to slice the version bumps out of the other work it got tangled in with. I'm running a vagrant up now to see if this sorts it out once and for all. PR should be coming soon.

This should also help with Islandora-Devops/islandora-playbook#13

@jonathangreen
Copy link
Contributor

I believe this is resolved by Islandora/Alpaca@2ea125c. Everyone involved happy if it's closed?

@DiegoPino
Copy link
Contributor

DiegoPino commented Sep 19, 2017 via email

@dannylamb
Copy link
Contributor

Resolved via Islandora/Alpaca@2ea125c

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