dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Cannot delete large projects

Open tesence opened this issue 1 year ago • 4 comments

Current Behavior

Hello,

I am currently in a situation where Dependency Track is unable to delete a large project (25k components) and I can't tell if the problem is due to Dependency Track not being able to handle such a big request or if it's the Postgres server that is acting as a bottleneck. I'm aware that it might not be supposed to support that usecase, for now I'm just hoping to go back to a healthy state.

Note that I'm able to delete small/medium-sized project so Dependency Track is functionning overall.

Also, as suggested by the warning logs, I tried to lower the connection max life time value using ALPINE_DATABASE_POOL_MAX_LIFETIME (I'm currently running DT on a kubernetes cluster) but it does not seem to help.

Any idea of how to investigate and remedy this problem is welcome

dependency-track.log

Steps to Reproduce

  1. Create a project.
  2. Import a really large SBOM (in my case 60MB and 25k components).
  3. Delete the projet.

Expected Behavior

The project should eventually be deleted.

Dependency-Track Version

4.12.0

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

14.5

Browser

Mozilla Firefox

Checklist

tesence avatar Oct 21 '24 16:10 tesence

Turns out that the deletion fails if the transaction is not processed within 1min. Is there a way to increase the value ?

EDIT: The workaround is to delete as many components as you can to fall under that 1min threshold ^^'

tesence avatar Dec 06 '24 15:12 tesence

Since you're running in Kubernetes, the 1min threshold could be the (default) timeout of your ingress. Try something like nginx.ingress.kubernetes.io/proxy-read-timeout: "300" if you're using nginx as ingress.

rerkcp avatar Apr 15 '25 07:04 rerkcp

+1 on the issue

ogirardot avatar Aug 30 '25 21:08 ogirardot

In version 4.13.6 the problem is still present, only in my case I try to remove collection of projects

response

frrusi avatar Dec 11 '25 07:12 frrusi