Surprisingly, without tomcat
installed I could run a dnf update
without issues and after that tomcat
could be installed without upsetting anything. Meaning I have a Foreman 3.8 server with Katello and no dnf errors. Time to try to upgrade to v3.9 again.
No issues with the upgrade until running foreman-installer
, where I appear to hit the same issue as @tom:
user@fm01:~$ sudo foreman-installer --scenario katello
2024-01-26 14:16:52 [NOTICE] [root] Loading installer configuration. This will take some time.
2024-01-26 14:16:55 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2024-01-26 14:16:55 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2024-01-26 14:17:01 [NOTICE] [configure] Starting system configuration.
2024-01-26 14:17:15 [NOTICE] [configure] 250 configuration steps out of 1976 steps complete.
2024-01-26 14:17:16 [NOTICE] [configure] 500 configuration steps out of 1976 steps complete.
2024-01-26 14:17:18 [NOTICE] [configure] 750 configuration steps out of 1981 steps complete.
2024-01-26 14:17:19 [NOTICE] [configure] 1000 configuration steps out of 1986 steps complete.
2024-01-26 14:17:20 [NOTICE] [configure] 1250 configuration steps out of 1988 steps complete.
2024-01-26 14:17:34 [NOTICE] [configure] 1500 configuration steps out of 1988 steps complete.
2024-01-26 14:19:09 [NOTICE] [configure] 1750 configuration steps out of 1988 steps complete.
2024-01-26 14:19:11 [ERROR ] [configure] 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2024-01-26 14:19:11 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns: change from 'notrun' to ['0'] failed: 'pulpcore
-manager migrate --noinput' returned 1 instead of one of [0]
2024-01-26 14:20:13 [NOTICE] [configure] System configuration has finished.
Error 1: Puppet Exec resource 'pulpcore-manager migrate --noinput' failed. Logs:
/Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]
Adding autorequire relationship with File[/var/lib/pulp]
Adding autorequire relationship with User[pulp]
Starting to evaluate the resource (1831 of 1988)
Evaluated in 1.03 seconds
Exec[pulpcore-manager migrate --noinput](provider=posix)
Executing check 'pulpcore-manager migrate --plan | grep "No planned migration operations"'
Executing 'pulpcore-manager migrate --noinput'
/Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Jinja2 3.1.3 (/usr/lib/python3.11/site-packages), Requirement.parse('jinja2<=3.1.2,>=3.1'), {'pulpcore'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pulpcore-manager", line 33, in <module>
sys.exit(load_entry_point('pulpcore==3.39.4', 'console_scripts', 'pulpcore-manager')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.11/site-packages/django/core/management/__init__.py", line 382, in execute
settings.INSTALLED_APPS
File "/usr/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
self._setup(name)
File "/usr/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/pulpcore/app/settings.py", line 17, in <module>
from pkg_resources import iter_entry_points
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3259, in <module>
@_call_aside
^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'jinja2<=3.1.2,>=3.1' distribution was not found and is required by pulpcore
/Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Jinja2 3.1.3 (/usr/lib/python3.11/site-packages), Requirement.parse('jinja2<=3.1.2,>=3.1'), {'pulpcore'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pulpcore-manager", line 33, in <module>
sys.exit(load_entry_point('pulpcore==3.39.4', 'console_scripts', 'pulpcore-manager')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.11/site-packages/django/core/management/__init__.py", line 382, in execute
settings.INSTALLED_APPS
File "/usr/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
self._setup(name)
File "/usr/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/pulpcore/app/settings.py", line 17, in <module>
from pkg_resources import iter_entry_points
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3259, in <module>
@_call_aside
^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'jinja2<=3.1.2,>=3.1' distribution was not found and is required by pulpcore
change from 'notrun' to ['0'] failed: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
1 error was detected during installation.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.
The full log is at /var/log/foreman-installer/katello.log
Exploring the jinja
packages available I get this, please excuse my lack of experience with dnf and CentOS, I’m more familiar with Debian derivatives:
user@fm01:~$ sudo dnf list installed | grep jinja
[sudo] password for dgeurts:
python3-jinja2.noarch 2.10.1-3.el8 @appstream
user@fm01:~$ sudo dnf list | grep jinja
python3-jinja2.noarch 2.10.1-3.el8 @appstream
python2-jinja2.noarch 2.10-9.module_el8+570+db61b4f9. appstream
python3-jinja2-time.noarch 0.2.0-13.el8 epel
python38-jinja2.noarch 2.11.3-1.module_el8+617+b8038191 appstream
So I’m not sure which package to try to downgrade to.