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

Tweak documentation for the single item workflow #31

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Result: a report of items added to the preservation endpoint.

**ToDo:** what if a small percentage of items in a preservation run fail?

* option 1.: enhancement: script CLI argument specifying a list of item IDs to preserve thus overriding the REST request to the repository
* May 2024: `--force_single_node` option added
* Option 1.: enhancement: script CLI argument specifying a list of item IDs to preserve thus overriding the REST request to the repository
* **May 2024: See [Debugging error in the audit log](#debugging-errors-in-the-audit-log) to describe the single item preservation workflow via `--force_single_node` command-line argument**
* option 2.: enhancement: only generate AIP and upload if the preservation endpoint is missing the item or is stale/outdated
* option 3.: run the [islandora-bagger] CLI outside the scripting (downside: loss of the report)
* from within the container: `cd ${BAGGER_APP_DIR} && ./bin/console app:islandora_bagger:create_bag -vvv --settings=var/sample_per_bag_config.yaml --node=${drupal_node_id}`
Expand Down Expand Up @@ -207,7 +207,7 @@ See the following as an alternative to specifying an OCI image registry and tag

## FAQ

### Debugging errors in the the audit log
### Debugging errors in the audit log

An error log file is created (along with errors written to stdout) and located in the audit directory.

Expand All @@ -220,9 +220,9 @@ for item in $tmp; do
./venv/bin/python3 leaf-bagger.py \
--server ${BAGGER_DRUPAL_URL} \
--output /tmp/force_single_node_${item}_$(date +"%Y-%m-%dT_%H-%M-%S").csv \
--force_single_node ${item} \
--container ${OS_CONTAINER} \
--error_log /tmp/error-$(date +"%Y-%m-%dT_%H-%M-%S").log \
--error_log /date/leaf-bagger/error-$(date +"%Y-%m-%dT_%H-%M-%S").log \
--force_single_node ${item} \
;
done
```
Expand Down
Loading