Why does leapp preupgrade fail with `sqlite3.OperationalError: unable to open database file` traceback error ?

Solution Verified - Updated -


  • Leapp preupgrade command fails with below traceback error :
# leapp preupgrade
Traceback (most recent call last):
  File "/usr/bin/leapp", line 9, in <module>
    load_entry_point('leapp==0.12.1', 'console_scripts', 'leapp')()
  File "/usr/lib/python2.7/site-packages/leapp/cli/__init__.py", line 18, in main
    cli.command.execute('leapp version {}'.format(VERSION))
  File "/usr/lib/python2.7/site-packages/leapp/utils/clicmd.py", line 105, in execute
  File "/usr/lib/python2.7/site-packages/leapp/utils/clicmd.py", line 127, in called
  File "/usr/lib/python2.7/site-packages/leapp/cli/upgrade/__init__.py", line 352, in preupgrade
  File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 79, in store
  File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 126, in do_store
    (self.context, self.configuration, self.stamp, self.kind))
sqlite3.OperationalError: unable to open database file


  • Red Hat Enterprise Linux Server 7.9
    • leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content