Installing AWX on ECS

Hi,

I am trying to get AWX running on ECS. All of the containers say running, but the awx_task container has an error:

me = instance or Instance.objects.me()

File “/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/main/managers.py”, line 88, in me

raise RuntimeError(“No instance found with the current cluster host id”)

RuntimeError: No instance found with the current cluster host id

2019-03-05 20:02:33,127 INFO exited: dispatcher (exit status 1; not expected)

I have defined the following variables for the awx_task container with the value of “awx”: awx_task_hostname, cluster_host_id, host_cluster_id, and hostname trying to get this to work.

In the web UI, the task instance just shows up as “unavailable” under capacity.

Not sure what else to try here, any help would be appreciated.

I am using version 3.0.1.0 pulled from dockerhub and running on fargate. It seems like all of the other containers come up ok, and I can log into the web UI. I used this guide as a starting point

https://lreed.net/post/2017-12-14-awx-fargate-1/ and https://lreed.net/post/2017-12-16-awx-fargate-2/

Cluster host ID isn’t something that is set by environment variable – on swarm it’s simply always “awx” on Kubernetes it’s awx--. I don’t know much about Fargate but can you exec into the task container and just echo the hostname to see what it is and make sure it was actually set?

Also, check earlier in the task container’s logs. It’s possible that the launch script failed to provision the instance and register its queue all together.