# .nessus import not working on Kali

**URL:** <https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608>\
**Category:** Community Edition\
**Created:** [October 30, 2018, 12:54pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608 "2018-10-30T12:54:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![xRestriction](https://avatars.discourse-cdn.com/v4/letter/x/d07c76/32.png) [@xRestriction](https://discuss.dradis.com/u/xRestriction)\
**Post date:** [October 30, 2018, 12:54pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/1 "2018-10-30T12:54:50Z")

</div>

My Dradis on Kali is working with ZAP outputs, however not with Nessus. Manually uploading the file gives me [this output](https://pastebin.com/7twhGVD4).

When I try to upload it over the website I get “Enqueueing job to start in the background.” as a response in the Output console, however nothing more after that, but I can find the file under my “Uploaded files” node.  
[Here is the output](https://pastebin.com/02yN9ZhF) of my Kali CLI, listening on the server.

I couldn’t find anything really up-to-date regarding my issue.

Additional information:  
The .nessus file is about 1.4 MB in size.  
It was created in Security Center not Nessus.  
I’m using the newest Git distribution of Dradis-CE with everything updated.

Thanks.-

---

<div class="post-metadata">

**Author:** ![rachkor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/rachkor/32/51_2.png) [@rachkor](https://discuss.dradis.com/u/rachkor)\
**Post date:** [October 30, 2018, 3:06pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/2 "2018-10-30T15:06:00Z")

</div>

Hi @xRestriction, can you try uploading the Nessus file through `thor` with these instructions? [https://dradis.com/support/guides/troubleshooting/tool\_output.html](https://dradis.com/support/guides/troubleshooting/tool_output.html).

Since the ZAP uploads are working but not Nessus, my hunch is that something is wrong with that specific file. Does the file generated with Security Center match the format of this sample Nessus file? [dradis-nessus/spec/fixtures/files/example\_v2.nessus at main · dradis/dradis-nessus · GitHub](https://github.com/dradis/dradis-nessus/blob/master/spec/fixtures/files/example_v2.nessus). I’m not familiar with Security Center exports myself.

---

<div class="post-metadata">

**Author:** ![xRestriction](https://avatars.discourse-cdn.com/v4/letter/x/d07c76/32.png) [@xRestriction](https://discuss.dradis.com/u/xRestriction)\
**Post date:** [October 30, 2018, 3:50pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/3 "2018-10-30T15:50:45Z")

</div>

Hi rachkor, [here is the output](https://pastebin.com/bNVYVZUe) of the thor command. The format of the .nessus file matches up with your example. Wouldn’t it throw an error anyways?

Thanks.

---

<div class="post-metadata">

**Author:** ![rachkor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/rachkor/32/51_2.png) [@rachkor](https://discuss.dradis.com/u/rachkor)\
**Post date:** [October 30, 2018, 4:27pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/4 "2018-10-30T16:27:00Z")

</div>

Thanks @xRestriction! The on-screen log isn’t great with displaying stack traces which is why we recommend `thor` for debugging.

It looks to me like you might be missing this migration? [dradis-ce/db/migrate/004\_create\_configurations.rb at 513fbcb3bfa352d7fc0ee521bc44421688d1432b · dradis/dradis-ce · GitHub](https://github.com/dradis/dradis-ce/blob/513fbcb3bfa352d7fc0ee521bc44421688d1432b/db/migrate/004_create_configurations.rb). Can you:

- Export your project to Package if you need to take a backup: [https://dradis.com/support/guides/projects/import.html#export](https://dradis.com/support/guides/projects/import.html#export)
- Run the following:

```auto
$ git checkout master
$ git pull origin master
$ ./bin/update

```

Then fire up Dradis again and try the upload? If that doesn’t work, can you try uploading this file as a test? [dradis-nessus/spec/fixtures/files/example\_v2.nessus at main · dradis/dradis-nessus · GitHub](https://github.com/dradis/dradis-nessus/blob/master/spec/fixtures/files/example_v2.nessus). If that file works, we know that the problem lies with the other file and not the instance and can figure it out from there.

---

<div class="post-metadata">

**Author:** ![xRestriction](https://avatars.discourse-cdn.com/v4/letter/x/d07c76/32.png) [@xRestriction](https://discuss.dradis.com/u/xRestriction)\
**Post date:** [October 30, 2018, 6:01pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/5 "2018-10-30T18:01:17Z")

</div>

Hi rachkor, I tried doing a backup of my package but got an error. I’ll have to look into it tomorrow, couldn’t find a fix for it. Should I create a new post for it, or could you help me out directly?  
Thanks.

---

<div class="post-metadata">

**Author:** ![rachkor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/rachkor/32/51_2.png) [@rachkor](https://discuss.dradis.com/u/rachkor)\
**Post date:** [October 30, 2018, 6:19pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/6 "2018-10-30T18:19:49Z")

</div>

I vote we create a new post for that so that others can find it easier in the future. Just let me know how we can help!

---

<div class="post-metadata">

**Author:** ![xRestriction](https://avatars.discourse-cdn.com/v4/letter/x/d07c76/32.png) [@xRestriction](https://discuss.dradis.com/u/xRestriction)\
**Post date:** [October 31, 2018, 9:35am UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/7 "2018-10-31T09:35:06Z")

</div>

So I have successfully imported the nessus results of the test file, I also have created a smaller Security Center .nessus file which also worked, but they did not when using the thor command!

> PROJECT\_ID=1 RAILS\_ENV=production bundle exec thor dradis:plugins:nessus:upload /root/dradis-ce/example\_v2.nessus \>  
> /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/connection\_adapters/sqlite3\_adapter.rb:417:in `table\_structure’: Could not find table ‘configurations’ (ActiveRecord::StatementInvalid)

I have also run the git commands as well as retried the bundle command, with no luck. Maybe I could split my big .nessus file in smaller ones, or just remove useless information?

---

<div class="post-metadata">

**Author:** ![rachkor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/rachkor/32/51_2.png) [@rachkor](https://discuss.dradis.com/u/rachkor)\
**Post date:** [October 31, 2018, 8:39pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/8 "2018-10-31T20:39:38Z")

</div>

@xRestriction it appears that the [example\_v2](https://github.com/dradis/dradis-nessus/blob/master/spec/fixtures/files/example_v2.nessus) file threw an error message when uploaded through `thor`? I’m unable to replicate this on my end which makes me think that your instance still needs and update. Can you try this and let me know the output?

```auto
$ git checkout master
$ git pull origin master
$ ./bin/setup

```

---

<div class="post-metadata">

**Author:** ![xRestriction](https://avatars.discourse-cdn.com/v4/letter/x/d07c76/32.png) [@xRestriction](https://discuss.dradis.com/u/xRestriction)\
**Post date:** [November 2, 2018, 8:21am UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/9 "2018-11-02T08:21:37Z")

</div>

I have once again run the git commands with the following outputs:

root@kali:~/dradis-ce# git checkout master  
M Gemfile.lock  
M db/schema.rb  
Already on ‘master’  
Your branch is up to date with ‘origin/master’.  
root@kali:~/dradis-ce# git pull origin master  
remote: Enumerating objects: 4, done.  
remote: Counting objects: 100% (4/4), done.  
remote: Compressing objects: 100% (2/2), done.  
remote: Total 4 (delta 3), reused 2 (delta 2), pack-reused 0  
Unpacking objects: 100% (4/4), done.  
From [GitHub - dradis/dradis-ce: Dradis Framework: Colllaboration and reporting for IT Security teams](https://github.com/dradis/dradis-ce)

- branch master → FETCH\_HEAD  
1daa0b4…10840be master → origin/master  
Updating 1daa0b4…10840be  
error: Your local changes to the following files would be overwritten by merge:  
Gemfile.lock  
Please commit your changes or stash them before you merge.  
Aborting  
root@kali:~/dradis-ce# ./bin/setup

== Enabling default add-ons ==  
== Installing dependencies ==  
The Gemfile’s dependencies are satisfied

== Copying sample files ==

== Preparing database ==  
Database ‘db/development.sqlite3’ already exists  
Database ‘db/test.sqlite3’ already exists  
– create\_table(“activities”, {:force=\>:cascade})  
 → 0.0349s  
– create\_table(“categories”, {:force=\>:cascade})  
 → 0.0157s  
– create\_table(“comments”, {:force=\>:cascade})  
 → 0.0251s  
– create\_table(“configurations”, {:force=\>:cascade})  
 → 0.0180s  
– create\_table(“evidence”, {:force=\>:cascade})  
 → 0.0265s  
– create\_table(“logs”, {:force=\>:cascade})  
 → 0.0403s  
– create\_table(“nodes”, {:force=\>:cascade})  
 → 0.0374s  
– create\_table(“notes”, {:force=\>:cascade})  
 → 0.0259s  
– create\_table(“notifications”, {:force=\>:cascade})  
 → 0.0533s  
– create\_table(“subscriptions”, {:force=\>:cascade})  
 → 0.0293s  
– create\_table(“taggings”, {:force=\>:cascade})  
 → 0.0451s  
– create\_table(“tags”, {:force=\>:cascade})  
 → 0.0331s  
– create\_table(“users”, {:force=\>:cascade})  
 → 0.0215s  
– create\_table(“versions”, {:force=\>:cascade})  
 → 0.0363s  
– create\_table(“activities”, {:force=\>:cascade})  
 → 0.0315s  
– create\_table(“categories”, {:force=\>:cascade})  
 → 0.0093s  
– create\_table(“comments”, {:force=\>:cascade})  
 → 0.0240s  
– create\_table(“configurations”, {:force=\>:cascade})  
 → 0.0326s  
– create\_table(“evidence”, {:force=\>:cascade})  
 → 0.0363s  
– create\_table(“logs”, {:force=\>:cascade})  
 → 0.0107s  
– create\_table(“nodes”, {:force=\>:cascade})  
 → 0.0300s  
– create\_table(“notes”, {:force=\>:cascade})  
 → 0.0323s  
– create\_table(“notifications”, {:force=\>:cascade})  
 → 0.0295s  
– create\_table(“subscriptions”, {:force=\>:cascade})  
 → 0.0345s  
– create\_table(“taggings”, {:force=\>:cascade})  
 → 0.0440s  
– create\_table(“tags”, {:force=\>:cascade})  
 → 0.0456s  
– create\_table(“users”, {:force=\>:cascade})  
 → 0.0221s  
– create\_table(“versions”, {:force=\>:cascade})  
 → 0.0375s

== Removing old logs and tempfiles ==

== Restarting application server ==  
root@kali:~/dradis-ce# PROJECT\_ID=1 RAILS\_ENV=production bundle exec thor dradis:plugins:nessus:upload /root/dradis-ce/example\_v2.nessus  
Loaded add-ons:  
acunetix - Processes Acunetix XML format  
api - Dradis REST HTTP API  
brakeman - Processes Brakeman JSON output, use: brakeman -f json -o results.json  
burp - Processes Burp Scanner XML output  
csv - Export results in CSV format  
cvss - Provides a CVSS score calculator under /calculators/cvss  
dread - Provides a DREAD score calculator under /calculators/dread  
html\_export - Generate advanced HTML reports  
metasploit - Processes Metasploit XML output, use: db\_export  
nessus - Processes Nessus XML v2 format (.nessus)  
netsparker - Processes Netsparker XML format  
nexpose - Processes Nexpose XML format  
nikto - Processes Nikto output  
nmap - Processes Nmap output  
nto\_spider - Processes NTOSpider reports  
open\_vas - Processes OpenVAS XML v6 or v7 format  
projects - Save and restore project information  
qualys - Processes Qualys output  
saint - Processes SAINT XML format  
zap - Processes ZAP XML format  
Traceback (most recent call last):  
43: from /usr/lib/dradis-ce/ruby/2.5.0/bin/thor:23:in `<main>' 42: from /usr/lib/dradis-ce/ruby/2.5.0/bin/thor:23:in `load’  
41: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/bin/thor:6:in `<top (required)>' 40: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start’  
39: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch' 38: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke\_command’  
37: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/command.rb:126:in `run' 36: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/command.rb:29:in `run’  
35: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/runner.rb:44:in `method_missing' 34: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start’  
33: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch' 32: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke\_command’  
31: from /usr/lib/dradis-ce/ruby/2.5.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run' 30: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-nessus-753bd877f948/lib/tasks/thorfile.rb:17:in `upload’  
29: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-nessus-753bd877f948/lib/tasks/thorfile.rb:17:in `new' 28: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-plugins-d9d1be964928/lib/dradis/plugins/upload/importer.rb:27:in `initialize’  
27: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-plugins-d9d1be964928/lib/dradis/plugins/upload/importer.rb:69:in `default_template_service' 26: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-plugins-d9d1be964928/lib/dradis/plugins/upload/importer.rb:69:in `new’  
25: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-plugins-d9d1be964928/lib/dradis/plugins/template\_service.rb:8:in `initialize' 24: from /usr/lib/dradis-ce/ruby/2.5.0/bundler/gems/dradis-plugins-d9d1be964928/lib/dradis/plugins/template_service.rb:99:in `default\_templates\_dir’  
23: from /root/dradis-ce/app/models/configuration.rb:35:in `paths_templates_plugins' 22: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation.rb:220:in `find\_or\_create\_by’  
21: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/relation/finder\_methods.rb:78:in `find_by' 20: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/query_methods.rb:605:in `where’  
19: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/relation/query\_methods.rb:612:in `where!' 18: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/where_clause_factory.rb:21:in `build’  
17: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/relation/predicate\_builder.rb:34:in `create_binds' 16: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/predicate_builder.rb:89:in `create\_binds\_for\_hash’  
15: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/relation/predicate\_builder.rb:89:in `each' 14: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/predicate_builder.rb:114:in `block in create\_binds\_for\_hash’  
13: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/relation/predicate\_builder.rb:168:in `build_bind_param' 12: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/table_metadata.rb:32:in `type’  
11: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/model\_schema.rb:376:in `type_for_attribute' 10: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/model_schema.rb:353:in `attribute\_types’  
9: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/model\_schema.rb:461:in `load_schema' 8: from /usr/lib/ruby/2.5.0/monitor.rb:226:in `mon\_synchronize’  
7: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/model\_schema.rb:464:in `block in load_schema' 6: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/attribute_decorators.rb:50:in `load\_schema!’  
5: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/attributes.rb:233:in `load_schema!' 4: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/model_schema.rb:471:in `load\_schema!’  
3: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/connection\_adapters/schema\_cache.rb:73:in `columns_hash' 2: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/schema_cache.rb:67:in `columns’  
1: from /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/connection\_adapters/abstract\_adapter.rb:167:in `columns' /usr/lib/dradis-ce/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/sqlite3_adapter.rb:417:in `table\_structure’: Could not find table ‘configurations’ (ActiveRecord::StatementInvalid)

---

<div class="post-metadata">

**Author:** ![rachkor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/rachkor/32/51_2.png) [@rachkor](https://discuss.dradis.com/u/rachkor)\
**Post date:** [November 2, 2018, 7:42pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/10 "2018-11-02T19:42:42Z")

</div>

@xRestriction the error below actually indicates that `$ git pull origin master` didn’t succeed:

> [@xRestriction](#):
>
> error: Your local changes to the following files would be overwritten by merge:  
> Gemfile.lock  
> Please commit your changes or stash them before you merge.  
> Aborting

Try this?

```auto
$ git stash
$ git pull origin master
$ ./bin/setup
$ bundle exec thor dradis:plugins:nessus:upload /root/dradis-ce/example_v2.nessus

```

^ I’m going to update our documentation to make it clearer how to run this command in CE rather than Pro. Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![xRestriction](https://avatars.discourse-cdn.com/v4/letter/x/d07c76/32.png) [@xRestriction](https://discuss.dradis.com/u/xRestriction)\
**Post date:** [November 7, 2018, 1:59pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/11 "2018-11-07T13:59:22Z")

</div>

@rachkor Hi! Sorry for taking so long to respond. It works with thor now, even with my own .nessus file, it still doesen’t over the web interface, however I’m fine with that, thanks for the help!

---

<div class="post-metadata">

**Author:** ![rachkor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/rachkor/32/51_2.png) [@rachkor](https://discuss.dradis.com/u/rachkor)\
**Post date:** [November 9, 2018, 9:24pm UTC](https://discuss.dradis.com/t/nessus-import-not-working-on-kali/608/12 "2018-11-09T21:24:01Z")

</div>

@xRestriction glad to hear it! Have you tried restarting the app to see if that resolves the webapp uploads? Do let me know if you want help debugging those!
