Skip to content

Commit

Permalink
Tweak documentation for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferya committed Jan 15, 2025
1 parent 9d182e5 commit 3201bc5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,22 @@ See the following as an alternative to specifying an OCI image registry and tag

## FAQ

### Debugging from the audit log:
### Debugging errors in the the audit log

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

To retry problem items:

``` bash
tmp=$(grep x /data/leaf-bagger/_leaf_bagger_audit_2025-01-03T_15-08-06.csv | head -15 | cut -d ',' -f1 | tr '\n' ' ')
#
tmp=$(grep -E "(x[mtw]|x[md])\r?$" /data/leaf-bagger/_leaf_bagger_audit_2025-01-03T_15-08-06.csv | head -30 | cut -d ',' -f1 | tr '\n' ' ')
for item in $tmp; do
./venv/bin/python3 leaf-bagger.py \
--server ${BAGGER_DRUPAL_URL} \
--output /tmp/z.csv \
--force_single_node ${item} \
--container cwrc-test \
--container ${OS_CONTAINER} \
--error_log /tmp/error-$(date +"%Y-%m-%dT_%H-%M-%S").log \
;
done
```
Expand Down

0 comments on commit 3201bc5

Please sign in to comment.