-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
No new BOMs are processed, Referential integrity constraint violation #4655
Comments
Did you modify the foreign key constraint to point it to another table? DT will write component data to the |
When you're asking if I modified the SQL tables myself then the answer is no 🙈 I did not touch any SQL table. We did nothing. We just uploaded bom files via the API. It all worked and suddenly it did not work anymore... |
@nscuro Any idea what else it could be or how to fix it? I'm just asking because it's unfortunately blocking our release cycle right now :( |
All I can tell from some surface-level googling is that the These are H2 internals and nothing DT can do anything about. I suspect your instance was recently upgraded, and interrupted / killed while running migrations. What you could do is use a tool like DBeaver to open the H2 database, find dangling foreign keys as outlined above and similar leftovers, and repair them. If you're lucky, it's only this particular foreign key that's broken. If you can afford to start fresh, use PostgreSQL instead of H2, since H2 is not recommended for production usage. |
Thanks. You mean just deleting the foreign keys should do the trick? And I wanted to use the Postgres one, but we are using the Helm Chart and I've not seen any option to use postgres... |
More like recreating it to reference the
The chart doesn't bundle Postgres, because Postgres has a different lifecycle than DT. You can deploy Postgres using another chart if you must run everything on Kubernetes. The chart offers the same options to configure a database as the normal Docker Compose deployment. |
I will try to convert the H2 database to postgres. But I was wondering how I can change the configuration in the helm chart? There is no explanation in the helm chart config... |
Configuration of containers mostly happens via environment variables. All services have an Due to the vast number of settings, we didn't want to add Helm values for every single one of them, only to set an environment variable behind the scenes anyway. |
Current Behavior
Hello,
everytime we try to upload a new BOM right now, we are seeing this error in the logs:
Steps to Reproduce
Unfortunately we don't know what to do to reproduce this. It just appeared from one day to another and no project works anymore...
Expected Behavior
that uploading BOM files is possible again...
Dependency-Track Version
4.12.4
Dependency-Track Distribution
Container Image
Database Server
H2
Database Server Version
No response
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: