Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'aioredis' #15599

Closed
5 of 11 tasks
jean-christophe-manciot opened this issue Oct 24, 2024 · 3 comments
Closed
5 of 11 tasks

No module named 'aioredis' #15599

jean-christophe-manciot opened this issue Oct 24, 2024 · 3 comments

Comments

@jean-christophe-manciot
Copy link

jean-christophe-manciot commented Oct 24, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

When installing AWX using docker-compose, if I replace make docker-compose-build with docker pull ghcr.io/ansible/awx_devel:release_4.6, a missing dependency appears.

This does not prevent AWX from starting, but awx-wsrelay keeps restarting.

AWX version

24.6.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

docker development environment

Modifications

no

Ansible version

2.17.5

Operating system

CentOS stream 9

Web browser

No response

Steps to reproduce

git clone -b 24.6.1 https://github.com/ansible/awx.git git-awx && cd git-awx
git switch -c release_4.6
docker pull ghcr.io/ansible/awx_devel:release_4.6
make docker-compose &

Expected results

No errors

Actual results

 Traceback (most recent call last):
   File "/usr/local/bin/awx-manage", line 18, in <module>
     load_entry_point('awx', 'console_scripts', 'awx-manage')()
   File "/awx_devel/awx/__init__.py", line 177, in manage
     execute_from_command_line(sys.argv)
   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
     utility.execute()
   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/core/management/__init__.py", line 275, in fetch_command
     klass = load_command_class(app_name, subcommand)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/core/management/__init__.py", line 48, in load_command_class
     module = import_module("%s.management.commands.%s" % (app_name, name))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   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 "/awx_devel/awx/main/management/commands/run_wsrelay.py", line 20, in <module>
     from awx.main.wsrelay import WebSocketRelayManager
   File "/awx_devel/awx/main/wsrelay.py", line 11, in <module>
     import aioredis
 ModuleNotFoundError: No module named 'aioredis'
 2024-10-24 14:46:30,801 WARN exited: awx-wsrelay (exit status 1; not expected)
 [pid: 560|app: 0|req: 45/247] 172.18.0.1 () {40 vars in 481 bytes} [Thu Oct 24 14:46:31 2024] GET / => generated 2148 bytes in 23 msecs (HTTP/1.1 200) 7 headers in 261 bytes (1 switches on core 0)
 2024-10-24 14:46:31,440 INFO spawned: 'awx-wsrelay' with pid 1343
 [pid: 559|app: 0|req: 45/248] 172.18.0.1 () {40 vars in 481 bytes} [Thu Oct 24 14:46:32 2024] GET / => generated 2148 bytes in 39 msecs (HTTP/1.1 200) 7 headers in 261 bytes (1 switches on core 0)
 2024-10-24 14:46:33,347 INFO success: awx-wsrelay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

... endlessly repeated

Additional information

No response

@jean-christophe-manciot
Copy link
Author

@fosterseth
Any thoughts?

@notok
Copy link
Contributor

notok commented Oct 26, 2024

The image ghcr.io/ansible/awx_devel:release_4.6 seems to built with following commit, which does not belong to 24.6.1 tag.

37b7a69#diff-a1e273292c74165beb265f06575619a4ec7f9a041c3ff936bd55a569bd4b05ae

$ docker run --rm -it --entrypoint pip  ghcr.io/ansible/awx_devel:release_4.6 freeze | grep redis
channels-redis==4.2.0
hiredis==3.0.0
redis==5.0.1

@jean-christophe-manciot
Copy link
Author

jean-christophe-manciot commented Oct 28, 2024

Is there a stable way to find compatible versions between awx_devel images available in ghcr.io/ansible and awx tags?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants