You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed, we build the bloodhound docker image internally via proxies which previously has never caused any issues.
When building the v5.15.0 image, we are experiencing SQL schema errors where constraints are being violated.
bloodhound-1 | {"level":"error","time":"2024-09-12T07:01:43.509870758Z","message":"Error during SQL database migration phase: could not execute migrations: failed to execute migrations for v5.15.0: ERROR: null value in column \"role_id\" of relation \"roles_permissions\" violates not-null constraint (SQLSTATE 23502)"}
bloodhound-1 | {"level":"fatal","time":"2024-09-12T07:01:43.509888041Z","message":"Failed starting the server: failed to start services: rdms migration error: could not execute migrations: failed to execute migrations for v5.15.0: ERROR: null value in column \"role_id\" of relation \"roles_permissions\" violates not-null constraint (SQLSTATE 23502)"}
Environment Information:
BloodHound: v5.15.0
OS: Ubuntu 22.04
Neo4j: v4.4
PostgreSQL: v13.2
Docker version 27.2.1, build 9e34c9b
Additional Information:
No differences in docker build, just changes in apt urls etc.
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.
The text was updated successfully, but these errors were encountered:
INSERT INTO roles_permissions (role_id, permission_id) VALUES ((SELECT id FROM roles WHEREroles.name='User'), (SELECT id FROM permissions WHEREpermissions.authority='saved_queries'andpermissions.name='Read')) ON CONFLICT DO NOTHING;
Description:
As discussed, we build the bloodhound docker image internally via proxies which previously has never caused any issues.
When building the v5.15.0 image, we are experiencing SQL schema errors where constraints are being violated.
Are you intending to fix this bug?
No
Component(s) Affected:
Steps to Reproduce:
Expected Behavior:
Bloodhound image is able to start.
Actual Behavior:
I can see in the logs the app-db runs through the schema queries here - https://github.com/SpecterOps/BloodHound/blob/v5.15.0/cmd/api/src/database/migration/migrations/v5.15.0.sql
But Bloodhound is not able to start
Screenshots/Code Snippets/Sample Files:
Environment Information:
BloodHound: v5.15.0
OS: Ubuntu 22.04
Neo4j: v4.4
PostgreSQL: v13.2
Docker version 27.2.1, build 9e34c9b
Additional Information:
No differences in docker build, just changes in apt urls etc.
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:
The text was updated successfully, but these errors were encountered: