Problem:
Hi,
Every time I create pulp container from latest pulp/pulp image I get the following python stack trace: OSError: Starting path not found. My settings.py look like this:
CONTENT_ORIGIN='http://<myhostname>:8080'
CACHE_ENABLED=True
REDIS_HOST='localhost'
REDIS_PORT=6379
ANSIBLE_API_HOSTNAME='http://<myhostname>:8080'
ANSIBLE_CONTENT_HOSTNAME='http://<myhostname>:8080/pulp/content'
Any ideas?
Log:
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
File “/usr/local/bin/pulpcore-manager”, line 8, in
sys.exit(manage())
File “/usr/local/lib/python3.9/site-packages/pulpcore/app/manage.py”, line 11, in manage
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.9/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.9/site-packages/django/core/management/init.py”, line 382, in execute
settings.INSTALLED_APPS
File “/usr/local/lib/python3.9/site-packages/django/conf/init.py”, line 102, in getattr
self._setup(name)
File “/usr/local/lib/python3.9/site-packages/django/conf/init.py”, line 89, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/lib/python3.9/site-packages/django/conf/init.py”, line 217, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/local/lib/python3.9/site-packages/pulpcore/app/settings.py”, line 410, in
settings = DjangoDynaconf(
File “/usr/local/lib/python3.9/site-packages/dynaconf/contrib/django_dynaconf_v2.py”, line 87, in load
lazy_settings.populate_obj(django_settings_module)
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 122, in getattr
self._setup()
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 183, in _setup
self._wrapped = self._wrapper_class(
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 273, in init
self.execute_loaders()
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 1175, in execute_loaders
self.pre_load(env, silent=silent, key=key)
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 1197, in pre_load
self.load_file(path=preloads, env=env, silent=silent, key=key)
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 1236, in load_file
if py_loader.try_to_load_from_py_module_name(
File “/usr/local/lib/python3.9/site-packages/dynaconf/loaders/py_loader.py”, line 94, in try_to_load_from_py_module_name
mod = importlib.import_module(str(name))
File “/usr/lib64/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/local/lib/python3.9/site-packages/pulp_ansible/app/settings.py”, line 24, in
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + “/pulp/content”
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 122, in getattr
self._setup()
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 183, in _setup
self._wrapped = self._wrapper_class(
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 273, in init
self.execute_loaders()
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 1176, in execute_loaders
settings_loader(
File “/usr/local/lib/python3.9/site-packages/dynaconf/loaders/init.py”, line 261, in settings_loader
found = obj.find_file(item, project_root=p_root)
File “/usr/local/lib/python3.9/site-packages/dynaconf/base.py”, line 1333, in find_file
return find_file(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/dynaconf/utils/files.py”, line 73, in find_file
search_tree.extend(_walk_to_root(work_dir))
File “/usr/local/lib/python3.9/site-packages/dynaconf/utils/files.py”, line 17, in _walk_to_root
raise OSError(“Starting path not found”)
OSError: Starting path not found
Calling /etc/init/postgres-init
Expected outcome:
Clean creation of container
Pulpcore version:
“3.50.1”
Pulp plugins installed and their versions:
Operating system - distribution and version:
RHEL 8.9
Other relevant data: