packetchaos / navi

A Command-line tool which leverages the Tenable.io API to reduce the time it takes to get information that is common during remediation or a troubleshooting event
GNU General Public License v3.0
72 stars 26 forks source link

Navi Setup Not Building DB Tables #12

Closed liceaga closed 4 years ago

liceaga commented 4 years ago

I recently pulled down the latest version of navi and it appears that there was a breaking change. The DB table keys isn't being created. Any navi command results in the following, even when I attempted to set up the keys. I have tried the pypi package and docker image, both result in the following error:

Traceback (most recent call last):
  File "/usr/local/bin/navi", line 5, in <module>
    from navi.cli import cli
  File "/usr/local/lib/python3.8/dist-packages/navi/cli.py", line 2, in <module>
    from .plugins import plugin_loader
  File "/usr/local/lib/python3.8/dist-packages/navi/plugins/__init__.py", line 2, in <module>
    from .find import find
  File "/usr/local/lib/python3.8/dist-packages/navi/plugins/find.py", line 9, in <module>
    tio = tenb_connection()
  File "/usr/local/lib/python3.8/dist-packages/navi/plugins/api_wrapper.py", line 17, in tenb_connection
    cur.execute("SELECT * from keys;")
sqlite3.OperationalError: no such table: keys
packetchaos commented 4 years ago

I'll get this fixed tonight. Looking at it now.

packetchaos commented 4 years ago

Okay I found it. My test scripts start with the DB already created...I've fixed that.

the new version should work now. 6.1.2

Thank you for reporting the issue!