Hi Everybody!
SUMMARY
After building awx_web and awx_tasks images locally using image_build role, awx is not able to start showing Unable to configure handler ‘dispatcher’: [Errno 13] Permission denied: ‘/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/dispatcher.log’
ENVIRONMENT- AWX version: 9.3.0
- AWX install method: Kubernetes
- Ansible version: 2.9.5
STEPS TO REPRODUCE
1.-Execute image_build role
2.-deploy awx using those local built images
EXPECTED RESULTS
AWX starting as expected. Using the same deployment method and consuming DockerHub images it deploys correctly.
ACTUAL RESULTS
AWX does not start. It fails in awx_migrate_database task showing the following:
Traceback (most recent call last): │ │ File “/usr/lib64/python3.6/logging/config.py”, line 565, in configure │ │ handler = self.configure_handler(handlers[name]) │ │ File “/usr/lib64/python3.6/logging/config.py”, line 738, in configure_handler │ │ result = factory(**kwargs) │ │ File “/usr/lib64/python3.6/logging/handlers.py”, line 150, in init │ │ BaseRotatingHandler.init(self, filename, mode, encoding, delay) │ │ File “/usr/lib64/python3.6/logging/handlers.py”, line 57, in init │ │ logging.FileHandler.init(self, filename, mode, encoding, delay) │ │ File “/usr/lib64/python3.6/logging/init.py”, line 1032, in init │ │ StreamHandler.init(self, self._open()) │ │ File “/usr/lib64/python3.6/logging/init.py”, line 1061, in _open │ │ return open(self.baseFilename, self.mode, encoding=self.encoding) │ │ PermissionError: [Errno 13] Permission denied: ‘/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/dispatcher.log’ │ │ During handling of the above exception, another exception occurred: │ │ Traceback (most recent call last): │ │ File “/var/lib/awx/venv/awx/bin/daphne”, line 8, in │ │ sys.exit(CommandLineInterface.entrypoint()) │ │ File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/daphne/cli.py”, line 144, in entrypoint │ │ cls().run(sys.argv[1:]) │ │ File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/daphne/cli.py”, line 174, in run │ │ channel_layer = importlib.import_module(module_path) │ │ File “/var/lib/awx/venv/awx/lib64/python3.6/importlib/init.py”, line 126, in import_module │ │ return _bootstrap._gcd_import(name[level:], package, level) │ │ File “”, line 994, in _gcd_import │ │ File “”, line 971, in _find_and_load │ │ File “”, line 955, in _find_and_load_unlocked │ │ File “”, line 665, in _load_unlocked │ │ File “”, line 678, in exec_module │ │ File “”, line 219, in _call_with_frames_removed │ │ File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/asgi.py”, line 37, in │ │ channel_layer = get_channel_layer() │ │ File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/channels/asgi.py”, line 117, in get_channel_layer │ │ django.setup() │ │ File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/init.py”, line 19, in setup │ │ configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) │ │ File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/utils/log.py”, line 76, in configure_logging │ │ logging_config_func(logging_settings) │ │ File “/usr/lib64/python3.6/logging/config.py”, line 802, in dictConfig │ │ dictConfigClass(config).configure() │ │ File “/usr/lib64/python3.6/logging/config.py”, line 573, in configure │ │ ‘%r: %s’ % (name, e)) │ │ ValueError: Unable to configure handler ‘dispatcher’: [Errno 13] Permission denied: ‘/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/dispatcher.log’
Have any of you experienced anything similar?
Thx in advance!
Adri