Migration errors fail poorly.

Issue #284 new
Chandler Honeycutt
created an issue

I am having an error happen when I try to run recon this is what it said

Traceback (most recent call last):
  File "./recon-ng", line 47, in <module>
    recon_ui(args)
  File "./recon-ng", line 26, in recon_ui
    x = base.Recon(base.Mode.CONSOLE)
  File "/home/theone/recon-ng/recon/core/base.py", line 61, in __init__
    self.init_workspace('default')
  File "/home/theone/recon-ng/recon/core/base.py", line 205, in init_workspace
    self._create_db() if new else self._migrate_db()
  File "/home/theone/recon-ng/recon/core/base.py", line 260, in _migrate_db
    self.query('ALTER TABLE contacts RENAME TO %s' % (tmp))
  File "/home/theone/recon-ng/recon/core/framework.py", line 355, in query
    cur.execute(query)
sqlite3.OperationalError: no such table: contacts

Comments (5)

  1. Tim Tomes repo owner

    This is a database version issue. It's trying to migrate an old database to the latest version. If it fails, the only thing you can do it create a new workspace. That will fix it.

  2. Tim Tomes repo owner

    If anyone has a workspace that is causing this issue and can share it, I would appreciate it. I cannot replicate it locally and can't fix it without being able to replicate it. Thanks.

  3. Log in to comment