๐ง Inspecting failures with unregistered¶
Usage: datatrail unregistered [OPTIONS] COMMAND [ARGS]...
Commands related to unregistered datasets.
Options:
--help Show this message and exit.
Commands:
search Check whether an event is an unregistered dataset.
summary Summarise the reasons for unregistered datasets.
Overview¶
When Datatrail cannot register a dataset, the attempt is recorded in the
unregistered datasets bucket along with the reason it failed. The
unregistered commands let you inspect that bucket, either as a whole with
summary, or for a single event with search.
This is usually the first place to look when an event you expect to find with
scout or ps is missing entirely from Datatrail.
search¶
โฏ datatrail unregistered search --help
Usage: datatrail unregistered search [OPTIONS] EVENT
Check whether an event is an unregistered dataset.
Options:
-s, --scope TEXT Only search within this scope.
-p, --partial Match events containing EVENT.
-v, --verbose Verbosity: v=INFO, vv=DEBUG.
-q, --quiet Only errors shown in logs.
--json Output as JSON.
--help Show this message and exit.
search answers the question "why is this event not in Datatrail?". Each
record found is shown as a separate block, most recently recorded first,
detailing the scope and site the registration was attempted for, the parent
dataset it was to be attached to, and the reason the attempt failed.
An event can have more than one record, e.g. one per site, or one per failed attempt.
โฏ datatrail unregistered search 1172713191
โ 1172713191 is an unregistered dataset โ
4 records found.
Event 1172713191
Scope hco.event.baseband.raw
Site hco
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-08 19:15 UTC
Reason Could not attach datasets: 1172713191 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, hco.event.baseband.raw not found..
Event 1172713191
Scope gbo.event.baseband.raw
Site gbo
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-08 19:09 UTC
Reason Could not attach datasets: 1172713191 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, gbo.event.baseband.raw not found..
Event 1172713191
Scope kko.event.baseband.raw
Site kko
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-08 18:54 UTC
Reason Could not attach datasets: 1172713191 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, kko.event.baseband.raw not found..
Event 1172713191
Scope chime.event.intensity.raw
Site chime
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-08 14:28 UTC
Reason Could not attach datasets: 1172713191 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, chime.event.intensity.raw not
found..
โฏ datatrail unregistered search 1172713191 --scope kko.event.baseband.raw
โ 1172713191 is an unregistered dataset โ
1 record found.
Event 1172713191
Scope kko.event.baseband.raw
Site kko
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-08 18:54 UTC
Reason Could not attach datasets: 1172713191 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, kko.event.baseband.raw not found..
โฏ datatrail unregistered search 382085503
382085503 is not an unregistered dataset.
Use --partial to search for events containing this name.
Partial matches¶
By default the event name has to match exactly. With --partial, any event
name containing the given string is returned, which is useful when you only
know part of the name, or when you want to check a whole family of events such
as a set of commissioning datasets.
โฏ datatrail unregistered search 11728169 --partial
โ 11728169 is an unregistered dataset โ
2 records found.
Event 1172816953
Scope chime.event.intensity.raw
Site chime
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-09 11:14 UTC
Reason Could not attach datasets: 1172816953 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, chime.event.intensity.raw not
found..
Event 1172816944
Scope chime.event.intensity.raw
Site chime
Parent dataset CHAMPS_Localization.J0408
Recorded 2026-08-09 10:16 UTC
Reason Could not attach datasets: 1172816944 and
CHAMPS_Localization.J0408. ERROR: dataset
CHAMPS_Localization.J0408, chime.event.intensity.raw not
found..
Result limit
A maximum of 100 records are returned. If you hit that limit with
--partial, narrow the search with a longer event name or a --scope.
Machine readable output¶
--json prints the full records, including fields not shown in the table,
which is handy for scripting or for piping into jq.
โฏ datatrail unregistered search 1172713191 --scope kko.event.baseband.raw --json
{
"event": "1172713191",
"scope": "kko.event.baseband.raw",
"partial": false,
"unregistered": [
{
"dataset_name": "1172713191",
"dataset_scope": "kko.event.baseband.raw",
"storage_name": "kko",
"storage_element_captured_at": "kko",
"attach_to_dataset": "CHAMPS_Localization.J0408",
"reason": "Could not attach datasets: 1172713191 and CHAMPS_Localization.J0408. ERROR: dataset CHAMPS_Localization.J0408, kko.event.baseband.raw not found..",
"associated_event": {},
"locked": false
}
]
}
Errors in JSON mode
With --json, a failed query is reported as {"error": "..."} on stdout
and the command exits with status 1, so failures can be detected in a
pipeline.
summary¶
โฏ datatrail unregistered summary --help
Usage: datatrail unregistered summary [OPTIONS]
Summarise the reasons for unregistered datasets.
Options:
-v, --verbose Verbosity: v=INFO, vv=DEBUG.
-q, --quiet Only errors shown in logs.
--help Show this message and exit.
summary groups every record in the bucket by the reason it failed, giving an
overview of what is currently going wrong. Reasons are grouped into categories,
e.g. ATTACH_MISSING for datasets whose parent dataset does not exist, or
POSTGRES for database errors.
โฏ datatrail unregistered summary
Summary of reasons โ 886 unregistered datasets
โโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโณโโโโโโโโ
โ Category โ Detail โ Count โ % โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ POSTGRES โ (psycopg2.errors.UniqueViolation) โ 627 โ 70.8% โ
โ โ duplicate key value violates unique โ โ โ
โ โ constraint "name_se_captured_at_pair" โ โ โ
โ โ DETAIL: Key โ โ โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโค
โ STATUS โ (no reason recorded) โ 110 โ 12.4% โ
โ โ event-missing-verification โ 85 โ 9.6% โ
โ โ pending-tsar-classification โ 23 โ 2.6% โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโค
โ ATTACH_MISSING โ CHAMPS_Localization.J0408 โ โ 18 โ 2.0% โ
โ โ chime.event.intensity.raw โ โ โ
โ โ outrigger.commissioning.B0834 โ โ 12 โ 1.4% โ
โ โ chime.event.baseband.raw โ โ โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโค
โ CREATE_DUPLICATE โ <ID> โ chime.event.baseband.raw โ 3 โ 0.3% โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโ
For ATTACH_MISSING and CREATE_DUPLICATE, the detail column reads as
dataset โ scope. In the CREATE_DUPLICATE case the digits of the dataset
name are replaced with <ID>, so that the same failure for many events is
counted as a single row.