Beraldo Leal closed issue #11: Bootstrap with "docker-compose up" at Beraldo Leal / Insights4CI

Beraldo Leal
2022-08-28T16:58:49Z

On my first experiment trying to bootstrap insights4ci with docker-compose up (as instructed by the README.md file), I ended up with a never ending loop of the following error messages:

api_server_1 | INFO: Will watch for changes in these directories: ['/app']
api_server_1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
api_server_1 | INFO: Started reloader process [1] using statreload
api_server_1 | Process SpawnProcess-1:
api_server_1 | Traceback (most recent call last):
api_server_1 | File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
api_server_1 | self.run()
api_server_1 | File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run
api_server_1 | self._target(*self._args, **self._kwargs)
api_server_1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
api_server_1 | target(sockets=sockets)
api_server_1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 68, in run
api_server_1 | return asyncio.run(self.serve(sockets=sockets))
api_server_1 | File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
api_server_1 | return loop.run_until_complete(main)
api_server_1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
api_server_1 | return future.result()
api_server_1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 76, in serve
api_server_1 | config.load()
api_server_1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 456, in load
api_server_1 | self.loaded_app = import_from_string(self.app)
api_server_1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 24, in import_from_string
api_server_1 | raise exc from None
api_server_1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string
api_server_1 | module = importlib.import_module(module_str)
api_server_1 | File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
api_server_1 | return _bootstrap._gcd_import(name[level:], package, level)
api_server_1 | File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
api_server_1 | File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
api_server_1 | File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
api_server_1 | File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
api_server_1 | File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
api_server_1 | File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
api_server_1 | File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
api_server_1 | ModuleNotFoundError: No module named 'insights4ci'
api_server_1 | INFO: Stopping reloader process [1]
api_server_1 | INFO: Will watch for changes in these directories: ['/app']
api_server_1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
api_server_1 | INFO: Started reloader process [1] using statreload
api_server_1 | Process SpawnProcess-1:
celery_worker_1 | Usage: celery [OPTIONS] COMMAND [ARGS]...
celery_worker_1 | Try 'celery --help' for help.
celery_worker_1 |
celery_worker_1 | Error: Invalid value for '-A' / '--app':
celery_worker_1 | Unable to load celery application.
celery_worker_1 | While trying to load the module insights4ci.tasks.celery the following error occurred:
celery_worker_1 | Traceback (most recent call last):
celery_worker_1 | File "/usr/local/lib/python3.9/site-packages/celery/bin/celery.py", line 53, in convert
celery_worker_1 | return find_app(value)
celery_worker_1 | File "/usr/local/lib/python3.9/site-packages/celery/app/utils.py", line 384, in find_app
celery_worker_1 | sym = symbol_by_name(app, imp=imp)
celery_worker_1 | File "/usr/local/lib/python3.9/site-packages/kombu/utils/imports.py", line 56, in symbol_by_name
celery_worker_1 | module = imp(module_name, package=package, **kwargs)
celery_worker_1 | File "/usr/local/lib/python3.9/site-packages/celery/utils/imports.py", line 100, in import_from_cwd
celery_worker_1 | return imp(module, package=package)
celery_worker_1 | File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
celery_worker_1 | return _bootstrap._gcd_import(name[level:], package, level)
celery_worker_1 | File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
celery_worker_1 | File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
celery_worker_1 | File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
celery_worker_1 | File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
celery_worker_1 | File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
celery_worker_1 | File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
celery_worker_1 | File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
celery_worker_1 | ModuleNotFoundError: No module named 'insights4ci'
celery_worker_1 |

For what it's worth it, I'm using:

podman-4.1.0-8.fc36.x86_64

podman-docker-4.1.0-8.fc36.noarch

docker-compose-1.29.2-4.fc36.noarch