Problem when uploading vulnerabilities

When I upload the burpsuite: I am getting the error:
There was a fatal error processing your upload:
SQLite3::ConstraintException: NOT NULL constraint failed: versions.item_id

Also when adding the Vulnerability manually, the error was popping up:

Hi there! What sort of Dradis deployment is this, and which version? Which Burp file type is this (XML or HTML)? Do you get this for all new issues you create, or only this issue specifically?

Hi Christoffer,

I deployed the docker deployment and the version is “Dradis Community Edition v4.16.0“.

The uploaded file was burpsuite HTML file.

Yes whenever I am trying to upload the any issues manually(by pressing the ‘+’ on the top right corner of the issues page), it redirects to the error page.

let me know if you need any further details

Hi @swaroop ! Based on the error, it either seems that your instance is creating a version record with an empty item_id or the broken version record already exists.

To check, can you connect to your instance and run the following commands:

$ rails c
> PaperTrail::Version.where(item_id: nil)

Also, sharing the dradis logs around when you get the error will also help!

Hi aapomm,

the following is images of the command’s outputs:

Also, where can i get the log file?

@swaroop how did you install ruby? You’ll need to change your ruby version to 3.1.2 using something like rbenv: Setting up a Ruby environment for Dradis | Dradis Framework

Once that is resolved, you’ll need to run rails c as a separate command. Once you’re in the rails console, then run PaperTrail::Version.where(item_id: nil). We’ll get this resolved!

Hi, so i have uninstalled the docker and tried running the git version. So after some debugging I was able to run the command.

Hi Team, so what’s the next step?

Hi @swaroop just to clarify, after setting up the git version of Dradis, you’re still getting the SQLite3::ConstraintException: NOT NULLerror, correct?

Apologies as we can’t seem to replicate the issue you’re seeing so more information would be helpful:

Hi all, so I have uninstalled and installed the Dradis again and notice the ruby version needed is 3.4.4 and not 3.1.2 (since the dependency issues) so by updating the ruby version locally using the rbenv solved the issue to an extent.
once again @aapomm, @Christoffer, @rachkor I thank you for your support.