leapp Oracle Linux 8 -> 9 : sqlite3.OperationalError: unable to open database file
by danbos from LinuxQuestions.org on (#6QAPE)
Hello all
I try to upgrade my OL8 to OL9 with leapp utility.
So far it worked fine, but now I have a server which throws the following error:
Code: zlib-1.2.11-40.el9.x86_64
Complete!
Process Process-478:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 185, in run
stdin=stdin, env=env, encoding=encoding)
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/call.py", line 199, in _call
**extra
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/call.py", line 73, in _multiplex
callback_linebuffered((fd, fd_type), pre)
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 146, in _logfile_logging_handler
api.current_logger().debug(line)
File "/usr/lib64/python3.6/logging/__init__.py", line 1296, in debug
self._log(DEBUG, msg, args, **kwargs)
File "/usr/lib64/python3.6/logging/__init__.py", line 1444, in _log
self.handle(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/site-packages/leapp/logger/__init__.py", line 40, in emit
self._do_emit(log_data)
File "/usr/lib/python3.6/site-packages/leapp/logger/__init__.py", line 45, in _do_emit
Audit(**log_data).store()
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 87, in store
with get_connection(db) as connection:
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 73, in get_connection
return create_connection(cfg.get('database', 'path'))
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 36, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 60, in create_connection
return _initialize_database(sqlite3.connect(path))
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 27, in _initialize_database
schema_version = db.execute('PRAGMA schema_version').fetchone()[0]
sqlite3.OperationalError: unable to open database fileCode:
=========================================================================================================
Actor target_userspace_creator unexpectedly terminated with exit code: 1 - Please check the above details
=========================================================================================================
Debug output written to /var/log/leapp/leapp-preupgrade.log
============================================================
REPORT OVERVIEW
============================================================
HIGH and MEDIUM severity reports:
1. GRUB2 core will be automatically updated during the upgrade
2. Detected custom leapp actors or files.
3. Packages not signed by Oracle found on the system
4. RDMA will be upgraded to UEKR7
5. Default Boot Kernel
Reports summary:
Errors: 1
Inhibitors: 0
HIGH severity reports: 4
MEDIUM severity reports: 1
LOW severity reports: 1
INFO severity reports: 5
Before continuing consult the full report:
A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt
============================================================
END OF REPORT OVERVIEW
============================================================
Answerfile has been generated at /var/log/leapp/answerfileIn the answer file I checked "check_vdo" = True
-> Does anybody knows how to solve the problem?
Many thanks,
Daniel
I try to upgrade my OL8 to OL9 with leapp utility.
So far it worked fine, but now I have a server which throws the following error:
Code: zlib-1.2.11-40.el9.x86_64
Complete!
Process Process-478:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 185, in run
stdin=stdin, env=env, encoding=encoding)
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/call.py", line 199, in _call
**extra
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/call.py", line 73, in _multiplex
callback_linebuffered((fd, fd_type), pre)
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 146, in _logfile_logging_handler
api.current_logger().debug(line)
File "/usr/lib64/python3.6/logging/__init__.py", line 1296, in debug
self._log(DEBUG, msg, args, **kwargs)
File "/usr/lib64/python3.6/logging/__init__.py", line 1444, in _log
self.handle(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib64/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/site-packages/leapp/logger/__init__.py", line 40, in emit
self._do_emit(log_data)
File "/usr/lib/python3.6/site-packages/leapp/logger/__init__.py", line 45, in _do_emit
Audit(**log_data).store()
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 87, in store
with get_connection(db) as connection:
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 73, in get_connection
return create_connection(cfg.get('database', 'path'))
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 36, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 60, in create_connection
return _initialize_database(sqlite3.connect(path))
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/__init__.py", line 27, in _initialize_database
schema_version = db.execute('PRAGMA schema_version').fetchone()[0]
sqlite3.OperationalError: unable to open database fileCode:
=========================================================================================================
Actor target_userspace_creator unexpectedly terminated with exit code: 1 - Please check the above details
=========================================================================================================
Debug output written to /var/log/leapp/leapp-preupgrade.log
============================================================
REPORT OVERVIEW
============================================================
HIGH and MEDIUM severity reports:
1. GRUB2 core will be automatically updated during the upgrade
2. Detected custom leapp actors or files.
3. Packages not signed by Oracle found on the system
4. RDMA will be upgraded to UEKR7
5. Default Boot Kernel
Reports summary:
Errors: 1
Inhibitors: 0
HIGH severity reports: 4
MEDIUM severity reports: 1
LOW severity reports: 1
INFO severity reports: 5
Before continuing consult the full report:
A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt
============================================================
END OF REPORT OVERVIEW
============================================================
Answerfile has been generated at /var/log/leapp/answerfileIn the answer file I checked "check_vdo" = True
-> Does anybody knows how to solve the problem?
Many thanks,
Daniel