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

Fresh install Jobs not starting #6365

Closed
hs-hub-world opened this issue Mar 20, 2020 · 8 comments
Closed

Fresh install Jobs not starting #6365

hs-hub-world opened this issue Mar 20, 2020 · 8 comments
Labels

Comments

@hs-hub-world
Copy link

hs-hub-world commented Mar 20, 2020

ISSUE TYPE
  • Bug Report
    Just did a fresh install of AWX 9.3.0 and none of the JOBs are being triggered. Project, Jobs, Ad-hoc jobs any jobs.
    after a few minutes it Times out with this error:

Call to /api/v2/ad_hoc_commands/1/relaunch/ failed. returned status: 504.

SUMMARY
ENVIRONMENT
  • AWX version: 9.3.0
  • AWX install method: docker on centos 7
  • Ansible version: 2.9.6
  • Operating System: Centos 7
  • Web Browser: Chrome
STEPS TO REPRODUCE

try to execute ANY job such as project, ad-hoc script, etc..

EXPECTED RESULTS

Jobs are stuck in starting mode they never start, please see screenshots below.

ADDITIONAL INFORMATION

Please review images below:

image

Image from Web continaer
image

Image from TASK container
image

Thank you,
HS

@hs-hub-world
Copy link
Author

Is there anything I can do at the moment to manually fix this to proceed forward. Or alternatively, is there a way for me to release an older version that includes the rabbitMQ -? We are working on an ansible project and we have hit a dead end because of this ;( Any assistance would be greatly appreciated.

Thank you
HS

@geerlingguy
Copy link
Contributor

@hs-hub-world - 9.3.0 should not yet be using redis; it should still be on RabbitMQ. You can use the docker-compose or installer setup from https://github.com/ansible/awx/tree/9.3.0 instead of from devel to make sure you are using all the 9.3.0-compatible setup.

@hs-hub-world
Copy link
Author

Hello @geerlingguy, well, looks like RabbitMQ has been removed from 9.3.0 after using this repo for the setup. git clone --depth 50 https://github.com/ansible/awx.git
Not sure if this was done intentionally or by accident -?
in case anyone else runs into this issue.

image

Thanks,
HS

@hs-hub-world
Copy link
Author

In case anyone is interested for a full bash script for Centos to install AWX by specifying the version to install you may find it here: https://devopskbpages.blogspot.com/2020/03/deploying-awx-on-centos-7.html

@MaartenMol
Copy link

MaartenMol commented Mar 21, 2020

@hs-hub-world - 9.3.0 should not yet be using redis; it should still be on RabbitMQ. You can use the docker-compose or installer setup from https://github.com/ansible/awx/tree/9.3.0 instead of from devel to make sure you are using all the 9.3.0-compatible setup.

I always pull the versions from: https://github.com/ansible/awx/releases

Apparently I have been having the same issue, while a minute ago everything worked fine... How can we fix this?

@geerlingguy does the install book pull some file from latest github or something that may cause this?

@ryanpetrello
Copy link
Contributor

ryanpetrello commented Mar 21, 2020

Not sure what's going on here at first glance, but 9.3.0 is definitely still RabbitMQ. Note the amqp lib in the screenshot @hs-hub-world posted:

If you're attempting to deploy AWX from devel, it's not going to work with the official 9.3.0 image (which is what I suspect you're doing, @hs-hub-world: #6365 (comment)). If you want to use devel (and thus, redis), you'll need to build your own image:

https://github.com/ansible/awx/blob/devel/INSTALL.md#official-vs-building-images

Most likely, you want to use the 9.3.0 release:

https://github.com/ansible/awx/releases/tag/9.3.0

@hs-hub-world
Copy link
Author

Hi @ryanpetrello, just to be clear are you saying when I use the git clone command below that is downloading the 'devel' version -?
git clone --depth 50 https://github.com/ansible/awx.git
After that we just do ansible-playbook...

git clone --depth 50 https://github.com/ansible/awx.git
cd /tmp/awx/installer
sed -i 's|admin_password=.*|admin_password=password|g' inventory
sslkey=$(openssl rand -base64 30)

sed -i "s|secret_key=.*|secret_key=$sslkey|g" inventory
grep -v '^#' inventory | grep -v '^$'

ansible-playbook -i inventory install.yml
docker ps

Thank you
HS

@ryanpetrello
Copy link
Contributor

just to be clear are you saying when I use the git clone command below that is downloading the 'devel' version

Yes. The default branch of this git repo is devel. If you want 9.3.0, use git clone -b 9.3.0 ...

AlexSCorey pushed a commit to AlexSCorey/awx that referenced this issue Jul 26, 2023
[4.3] [Backport] Make Topology view and Instances visible only to system admin/auditor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants