Archive to Box: Button that clears one/all exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL4 |
Fix Released
|
Medium
|
Carlos de la Guardia |
Bug Description
tl;dr Archive to Box puts an error in Redis when something goes wrong. We need a way to clear that error and resume processing. Even better, also prevent that error from occurring. Either a button on each exception-status community, or a button to clear all exceptions.
Archive to Box
=======
We have a system that allows us to dump the contents of a community and transmit it to Box for archiving. Once in Box, we de-activate the community.
In the implementation, KarlAdmin marks a community as flagged for archiving. A separate process does the work to serialize each resource and copy it over to Box. When that's successful, KarlAdmin then clicks to archive the community, which removes the content, puts a stub comment on the community home page, removes everybody as members of that community, unindexes it, etc.
Redis is used to store information between the archiving process and the KARL UI.
Lots on this implementation in Launchpad bug comments.
admin5
=============
Redis is the first curveball. As the second curveball, this is driven by an Angular admin UI called "admin5". From your perspective, it just means...we have a JSON-oriented API. Hopefully you can fix this issue purely by dealing with REST.
You can reach this admin5 UI at:
https:/
If the Box login token expires, Nat has to go back in and login.
If you Filter for communities older than 900 days, you should see "Youth Initiative Advisory Board" in the "exception" status.
Box
==========
The second curveball is....Box. Getting a security token for Box and storing it for the console script to use it a bit unusual as a workflow. Fortunately, for this bug, you don't have to worry about it.
Exception Status
=======
For some communities, KarlAdmin clicks "Archive", then after a while, an "exception" status is displayed for that community. Once in an exception status, a manual step has to be done to fix it.
The "exception" status comes from an attribute "archive_status" that is
stored on the community. I have a script on osfkarl10 in the osfkarl user's
home directory (clear_
What To Do
================
To diagnose:
- Log into osfkarl10
- Look in the various log directories for the current KARL (production/
- arc2box has log files (and gzip'd files) as arc2box.log and arc2box.log-date.gz
- Look for the exceptions. Half seem to be when FlyingCircus messed up the redis setup, and half seem to be when Box isn't reachable
- We don't seem to have had a serialization problem recently
Foremost, we need a way to clear the exception status. As an immediate step, learn how to find the correct key in Redis and clear it. Then, confirm that "Youth Initiative Advisory Board" is now out of the "exception" status.
Changed in karl4: | |
milestone: | 021 → 022 |
Changed in karl4: | |
milestone: | 022 → 023 |
Changed in karl4: | |
milestone: | 023 → 024 |
Changed in karl4: | |
milestone: | 024 → 026 |
Changed in karl4: | |
milestone: | 026 → 029 |
Changed in karl4: | |
milestone: | 029 → 030 |
Changed in karl4: | |
status: | Fix Committed → Fix Released |
Carlos has already made progress on getting up to speed on arc2box. I changed this ticket to be specifically about clearing the "archive_ status= 'exception' " attribute on each community.