Description of problem:
--------------------------------
When I execute "leapp preupgrade" command on the RHEL-8 machine on which Red Hat Satellite 6.16 is installed, it fails with the following error -
Risk Factor: high (error)
Title: Actor target_userspace_creator unexpectedly terminated with exit code: 1
Summary: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/{}init{}.py", line 185, in run
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/call.py", line 155, in _call
OSError: [Errno 24] Too many open files
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 525, in _mount_dnf_cache
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 591, in create_source_overlay
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1246, in perform
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1108, in _create_target_userspace
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 625, in _prep_repository_access
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 569, in _copy_certificates
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 518, in _copy_decouple
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 347, in _mkdir_with_copied_mode
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/{}init{}.py", line 213, in run
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 286, in create_audit_entry
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 87, in store
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 73, in get_connection
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 26, in wrapper
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 60, in create_connection
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 27, in _initialize_database
sqlite3.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 591, in create_source_overlay
File "/usr/lib64/python3.6/contextlib.py", line 99, in {}exit{}
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 525, in _mount_dnf_cache
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 366, in {}exit{}
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 359, in umount
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 325, in _cleanup
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/{}init{}.py", line 179, in run
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1296, in debug
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1444, in _log
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1454, in handle
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1516, in callHandlers
File "/usr/lib64/python3.6/logging/{}init{}.py", line 865, in handle
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 40, in emit
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 45, in _do_emit
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 87, in store
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 73, in get_connection
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 26, in wrapper
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 60, in create_connection
sqlite3.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 591, in create_source_overlay
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 366, in {}exit{}
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 359, in umount
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 325, in _cleanup
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/{}init{}.py", line 179, in run
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1296, in debug
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1444, in _log
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1454, in handle
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1516, in callHandlers
File "/usr/lib64/python3.6/logging/{}init{}.py", line 865, in handle
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 40, in emit
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 45, in _do_emit
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 87, in store
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 73, in get_connection
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 26, in wrapper
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 60, in create_connection
sqlite3.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 591, in create_source_overlay
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 366, in {}exit{}
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 359, in umount
File "/etc/leapp/repos.d/system_upgrade/common/libraries/mounting.py", line 325, in _cleanup
File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/{}init{}.py", line 179, in run
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1296, in debug
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1444, in _log
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1454, in handle
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1516, in callHandlers
File "/usr/lib64/python3.6/logging/{}init{}.py", line 865, in handle
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 40, in emit
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 45, in _do_emit
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 87, in store
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 73, in get_connection
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 26, in wrapper
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 60, in create_connection
sqlite3.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run
File "/usr/lib/python3.6/site-packages/leapp/actors/{}init{}.py", line 289, in run
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/actor.py", line 58, in process
File "/usr/lib/python3.6/site-packages/leapp/utils/deprecation.py", line 42, in process_wrapper
File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1256, in perform
File "/usr/lib64/python3.6/contextlib.py", line 99, in {}exit{}
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 593, in create_source_overlay
File "/etc/leapp/repos.d/system_upgrade/common/libraries/overlaygen.py", line 326, in cleanup_scratch
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1296, in debug
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1444, in _log
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1454, in handle
File "/usr/lib64/python3.6/logging/{}init{}.py", line 1516, in callHandlers
File "/usr/lib64/python3.6/logging/{}init{}.py", line 865, in handle
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 40, in emit
File "/usr/lib/python3.6/site-packages/leapp/logger/{}init{}.py", line 45, in _do_emit
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 87, in store
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 73, in get_connection
File "/usr/lib/python3.6/site-packages/leapp/cli/commands/upgrade/util.py", line 26, in wrapper
File "/usr/lib/python3.6/site-packages/leapp/utils/audit/{}init{}.py", line 60, in create_connection
sqlite3.OperationalError: unable to open database file
How reproducible:
-------------------------
Always. I re-tried the leapp process after rebooting the Satellite Server 6.16, only to be again greeted by the same error
I also tried finding already existing Knowledge Base articles to see if this issue can be resolved or not. However, I did not find any existing articles to resolve the issue.
Is this issue a regression from an earlier version:
-------------------------------------------------------------------
No.
Steps to Reproduce:
---------------------------
1. Create a RHEL-8 VM with the latest version of RHEL-8.x i.e. 8.10.
2. Install Red Hat Satellite 6.16 on it with the basic configuration done.
3. Try performing the leapp upgrade by following the steps outlined in the official documentation linked down below -
Actual behavior:
[Describe the issue in detail, including what is happening and where]
------------------------------------------------------------------------------------------------
The leapp upgrade fails with the error shown in the above description upon executing the "leapp preupgrade" command on this freshly installed Satellite Server 6.16 on a RHEL-8.10 VM.
[ajambhul@satellite616-rhel8 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
[ajambhul@satellite616-rhel8 ~]$ rpm -qa satellite
satellite-6.16.0-1.el8sat.noarch
[ajambhul@satellite616-rhel8 ~]$ dnf repolist
Not root, Subscription Management repositories not updated
repo id repo name
Satellite_Engineering_Satellite_6_16_Composes_Satellite_6_16_RHEL8 Satellite 6.16 RHEL8
Satellite_Engineering_Satellite_6_16_Composes_Satellite_Maintenance_6_16_RHEL8 Satellite Maintenance 6.16 RHEL8
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Expected behavior:
[Describe what should be happening instead]
---------------------------------------------------------------
The "leapp preupgrade" command on this freshly installed Satellite Server 6.16 on a RHEL-8.10 VM should complete successfully in order to proceed with the actual upgrade step.
Business Impact / Additional info:
----------------------------------------------
Cannot perform leapp upgrade successfully.
- duplicates
-
RHEL-55871 leapp in-place upgrades 8 -> 9 crashes with "sqlite3.OperationalError: unable to open database file"
- Closed