Running into errors when you upload tool data to your project? The first step should be to run the upload through the console so that you can get more clues as to the underlying problem.
Missing content
If you're not getting an error message but instead missing content or having trouble getting tool output exporting into your reports, check to make sure your Mappings Manager is correctly configured for your Report template.
Upload stalling
After you upload a file, the on-screen log should update until "Worker process completed" appears. If the on-screen log isn't updating with any progress, the background worker may need a restart. To do this:
Head to the /setup/jobs
page in your browser.When prompted for credentials, enter in the Admin console - HTTP Basic Auth credentials from the Dradis user portal.
In the Queues section, you'll see where there are active jobs. In the example below, the dradis_export queue:
Click on the queue that needs clearing (e.g. dradis_export) and click the Remove Queue button in the top right corner to clear the queue:
Finally, test the upload in the web app again. If that doesn't do the trick, try the command line upload instructions below.
This guide contains:
We're going to use Thor to help us run this upload from the command. To see all of the commands available within Thor, run the following commands in the console as dradispro:
$ cd /opt/dradispro/dradispro/current/
$ RAILS_ENV=production bundle exec thor -T
The output:
Find the command in the output above that corresponds with the type of file you're uploading. Working with a Nessus file? You're going to want thor dradis:plugins:nessus:upload
. If you're working with a Burp file, use thor dradis:plugins:burp:upload
instead.
/tmp
on your Dradis VM.$ cd /opt/dradispro/dradispro/current
$ PROJECT_ID=XXXX RAILS_ENV=production bundle exec thor dradis:plugins:PLUGIN_NAME:upload /tmp/FILENAME
Make sure to make the following subsitutions:
XXXX
abovePLUGIN_NAME
above so that you match the Thor command we just looked upFILENAME
above$ god restart dradispro-resque-1or
$ ps aux | grep resque
/tmp
on your Dradis VM.
$ cd /opt/dradispro/dradispro/current
$ PROJECT_ID=XXXX RAILS_ENV=production bundle exec thor dradis:plugins:qualys:upload /tmp/qualys.xml
Make sure to substitute your project ID for XXXX
above.
If your upload fails with a :length
error, you will see a message like the following:
I, [2016-12-30T04:31:50.316542 #16278] INFO -- : => Creating new issue (plugin_id: 10107)
E, [2016-12-30T04:31:50.329825 #16278] ERROR -- : Trying to rescue from a :length error
This error is caused by an entry in your tool upload that is bigger than what our database column allows for. To resolve this error:
:length
error and inspect it. In the example above, we would open the XML file and inspect it for an Issue with plugin_id: 10107
Next help article: My report isn't exporting! →
Your email is kept private. We don't do the spam thing.