-
Notifications
You must be signed in to change notification settings - Fork 244
Description
Description:
Ingesting data pulled from 1PassHound, receiving a database error after the last ingest azure data measurement_id
log line.
Are you intending to fix this bug?
"no"
Component(s) Affected:
- PostgreSQL
- Data Collector (SharpHound, AzureHound)
Steps to Reproduce:
-
Go to administration/file-ingest
-
Click on Upload File(s)
-
Upload local .json file from 1PassHound output
-
gui will show status Complete
-
See ERROR in bloodhound log.
-
Expected Behavior:
Status shows Complete and data is able to be queried in Bloodhound.
Actual Behavior:
No data is uploaded.
Screenshots/Code Snippets/Sample Files:
{"time":"2025-09-04T04:29:55.024267762Z","level":"ERROR","message":"Database error","query":"INSERT INTO completed_tasks (ingest_job_id, file_name, parent_file_name, errors, created_at, updated_at) VALUES (0, 'UnknownFileName.json', '', '{}', NOW(), NOW()) RETURNING id;","err":"ERROR: insert or update on table \"completed_tasks\" violates foreign key constraint \"completed_tasks_ingest_job_id_fkey\" (SQLSTATE 23503)"}
{"time":"2025-09-04T04:29:55.024311267Z","level":"ERROR","message":"Failed to create completed task for ingest task 1: ERROR: insert or update on table \"completed_tasks\" violates foreign key constraint \"completed_tasks_ingest_job_id_fkey\" (SQLSTATE 23503)"}
Environment Information:
BloodHound: v8.1.1
Collector: https://github.com/SpecterOps/1PassHound
OS: Linux
Browser (if UI related): N/A
Node.js (if UI related: N/A
Go (if API related): N/A
Database (if persistence related): docker.io/library/neo4j:4.4
Docker (if using Docker): N/A
Additional Information:
Any additional context or information that might be helpful in understanding and diagnosing the issue.
Potential Solution (optional):
If you have any ideas about what might be causing the issue or how it could be fixed, you can share them here.
Related Issues:
If you've found related issues in the project's issue tracker, mention them here.
Contributor Checklist:
- I have searched the issue tracker to ensure this bug hasn't been reported before or is not already being addressed.
- I have provided clear steps to reproduce the issue.
- I have included relevant environment information details.
- I have attached necessary supporting documents.
- I have checked that any JSON files I am attempting to upload to BloodHound are valid.