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

Start the containers - Error starting project 404 Client Error #6873

Closed
Jefferson-goxts opened this issue Apr 29, 2020 · 7 comments
Closed
Labels

Comments

@Jefferson-goxts
Copy link

ISSUE TYPE
  • Bug Report
SUMMARY

AWX Install doenst works because containers could not start

ENVIRONMENT
  • AWX version: 11.2.0
  • AWX install method: docker on linux
  • Ansible version: 2.9.7
  • Operating System: Debian 10.3
  • Web Browser: None
STEPS TO REPRODUCE

/home/user/awx# ansible-playbook -i inventory install.yml -v

TASK [local_docker : Start the containers] *********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "errors": [], "module_stderr": "", "module_stdout": "", "msg": "Error starting project 404 Client Error: Not Found ("b'manifest for ansible/awx_web:11.2.0 not found: manifest unknown: manifest unknown'")"}

PLAY RECAP *********************************************************************************************************
localhost : ok=15 changed=2 unreachable=0 failed=1 skipped=97 rescued=0 ignored=0

ansible/ansible-container#564

Nothing

@patchedsoul
Copy link

I'm seeing the exact same error this morning as well. Ansible 2.9.7 / Debian 10 / docker-compose. Tried using hosted images and building my own, same error.

@patchedsoul
Copy link

patchedsoul commented Apr 29, 2020

after digging further, I see it's a syntax bug within the created docker-compose file. The awx_web and awx_task images are specified as "ansible\awx_web:11.2.0" and "ansible\awx_task:11.2.0".
That tag doesn't exist on docker hub.

@Jefferson-goxts
Copy link
Author

Jefferson-goxts commented Apr 29, 2020

after digging further, I see it's a syntax bug within the created docker-compose file. The awx_web and awx_task images are specified as "ansible\awx_web:11.2.0" and "ansible\awx_task:11.2.0".
That tag doesn't exist on docker hub.

Did you mean?
awx/installer/roles/local_docker/tasks/set_image.yml:
awx_web_docker_actual_image: "{{ dockerhub_base }}/awx_web:{{ dockerhub_version }}"
awx_task_docker_actual_image: "{{ dockerhub_base }}/awx_task:{{ dockerhub_version }}"

The "dockerbase_hub" is set in to "awx/installer/inventory:"
dockerhub_base=ansible

@patchedsoul
Copy link

if you clone the repo, the default branch is "devel". if you build/install using this branch, the docker-compose file is created with docker images specified as "ansible\awx_web:11.2.0" and "ansible\awx_task:11.2.0". These don't exist on Docker hub. I just did another install using the latest tagged release, and everything works just fine, which makes sense since awx version 11.2.0 isn't released yet.

@rabievdm
Copy link

By the looks of it the install wants to install awx_web:11.2.0 however there is no such version on docker hub, there is 11.1.0 and latest.
adding "dockerhub_version=latest" seems to progress the install, it now seems to progress the install a little. It's now stuck at TASK [local_docker : Start the containers]
Doing a 'docker images' still doesn't list awx_task or awx_web:
REPOSITORY TAG IMAGE ID CREATED SIZE
memcached alpine 321b3ac8a812 4 days ago 9.24MB
redis latest a4d3716dbb72 5 days ago 98.3MB
postgres 10 b500168be260 5 days ago 200MB

I'm a first time installer and am installing on the local system, I assume I should something happen here:

TASK [local_docker : Copy web image to docker execution]****************************
skipping: [localhost]

TASK [local_docker : Copy task image to docker execution]****************************
skipping: [localhost]

TASK [local_docker : Load web image] ****************************************
skipping: [localhost]

TASK [local_docker : Load task image] **************************************************
skipping: [localhost]

@ryanpetrello
Copy link
Contributor

ryanpetrello commented Apr 29, 2020

The reason these containers don't exist on Dockerhub is that we haven't released 11.2.0 yet (though we're going to later toady).

Please keep in mind that deploying directly from HEAD of the AWX source is highly unstable and is not intended to work with our official "latest" published images - if you want the bleeding edge of every commit, you need to build your own images:

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

@rabievdm
Copy link

rabievdm commented Apr 29, 2020

Hi,

Yeah sorry, noticed as much, busy redoing the install with 11.1.0 tagged release.
Any thoughts on how to 'start fresh'? I have done a "docker (image|volume|network) prune", removed ~/.awx and rm awx. Then wget the tagged release extract and reinstall, but it seems to be going much less than the first time I tried :)

I do see this is closed, I'll figure it out, no worries.

R

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