Skip to content
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

Audit Vulnerability showing no data in latest version of Dependency Track #4639

Open
2 tasks done
tech-surajrk opened this issue Feb 10, 2025 · 2 comments
Open
2 tasks done
Labels
defect Something isn't working in triage

Comments

@tech-surajrk
Copy link

tech-surajrk commented Feb 10, 2025

Current Behavior

When I run the Dependency Track on latest version that is 4.12.3 - The audit vulnerability section is showing no data but the vulnerability count is visible where as if I run it on 4.11.x then all the vulnerabilities data and count both are visible.

Kindly guide me to resolve this issue

Dependency-Track Version

4.12.3

Dependency-Track Distribution

Container Image

Database Server

MySQL

Database Server Version

No response

Browser

Google Chrome

Checklist

@tech-surajrk tech-surajrk added defect Something isn't working in triage labels Feb 10, 2025
@tech-surajrk
Copy link
Author

tech-surajrk commented Feb 10, 2025

Hello @stevespringett @nscuro can you help with the above query ?

@tech-surajrk tech-surajrk reopened this Feb 10, 2025
@tech-surajrk tech-surajrk changed the title Need help in making the MySQL DB changes Need help in making the Config or Database change Feb 10, 2025
@tech-surajrk tech-surajrk changed the title Need help in making the Config or Database change Audit Vulnerability showing no data in latest version of Dependency Track Feb 10, 2025
@tech-surajrk
Copy link
Author

tech-surajrk commented Feb 11, 2025

While checking the API Server logs I am getting the below Error -

2025-02-11 12:09:38,862 INFO [UpgradeExecutor] Upgrade class org.dependencytrack.upgrade.v4110.v4110Updater about to run.
2025-02-11 12:09:38,863 INFO [v4110Updater] Dropping foreign key constraint from "VULNERABILITY"."CWE"
2025-02-11 12:09:38,888 ERROR [UpgradeExecutor] Error in executing upgrade class: org.dependencytrack.upgrade.v4110.v4110Updater
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONSTRAINT IF EXISTS "VULNERABILITY_FK1"' at line 1

Also I check the mysql database - There is no key named as "VULNERABILITY_FK1" in Vulnerability table

Please help to resolve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working in triage
Projects
None yet
Development

No branches or pull requests

1 participant