{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/1898","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/1898/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/1898/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/1898/events","html_url":"https://github.com/ansible/awx/issues/1898","id":325222803,"number":1898,"title":"No instance found with the current cluster host id on AWS ECS ","user":{"login":"shivam99aa","id":4705438,"avatar_url":"https://avatars0.githubusercontent.com/u/4705438?v=4","gravatar_id":"","url":"https://api.github.com/users/shivam99aa","html_url":"https://github.com/shivam99aa","followers_url":"https://api.github.com/users/shivam99aa/followers","following_url":"https://api.github.com/users/shivam99aa/following{/other_user}","gists_url":"https://api.github.com/users/shivam99aa/gists{/gist_id}","starred_url":"https://api.github.com/users/shivam99aa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivam99aa/subscriptions","organizations_url":"https://api.github.com/users/shivam99aa/orgs","repos_url":"https://api.github.com/users/shivam99aa/repos","events_url":"https://api.github.com/users/shivam99aa/events{/privacy}","received_events_url":"https://api.github.com/users/shivam99aa/received_events","type":"User","site_admin":false},"labels":[{"id":687172858,"url":"https://api.github.com/repos/ansible/awx/labels/state:needs_triage","name":"state:needs_triage","color":"A0522D","default":false},{"id":607283748,"url":"https://api.github.com/repos/ansible/awx/labels/type:bug","name":"type:bug","color":"F79F81","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-22T09:59:20Z","updated_at":"2018-05-23T15:47:13Z","closed_at":"2018-05-23T15:47:13Z","author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n - awx-task container\r\n\r\n##### SUMMARY\r\nI have installed awx on aws using ECS service provided by aws. It is running fine and I can see web console and login into it. But on the container running awx-task I am seeing following error in logs related to celery. Is this something which should happen on the first install or I might be doing something wrong. I have only one container instance running which is running 4 containers awx-task, awx-web, rabbitmq and memcached. Postgres is setup in RDS which is a database service provided by aws. \r\n\r\nPlease note that all containers being used are 3 weeks old downloaded from docker-hub so I have not done anything on them.\r\n \r\n\r\n> 2018-05-22 09:49:01,317 INFO spawned: 'celery' with pid 28543\r\n> 2018-05-22 09:49:02,318 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n> 2018-05-22 09:49:02,741 INFO awx.main.tasks Syncing Schedules\r\n> 2018-05-22 09:49:02,824 DEBUG awx.main.tasks Registering celery routes for celery@task\r\n> Traceback (most recent call last):\r\n> File \"/var/lib/awx/venv/awx/bin/celery\", line 11, in <module>\r\n> sys.exit(main())\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/__main__.py\", line 30, in main\r\n> main()\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/celery.py\", line 81, in main\r\n> cmd.execute_from_commandline(argv)\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/celery.py\", line 793, in execute_from_commandline\r\n> super(CeleryCommand, self).execute_from_commandline(argv)))\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/base.py\", line 311, in execute_from_commandline\r\n> return self.handle_argv(self.prog_name, argv[1:])\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/celery.py\", line 785, in handle_argv\r\n> return self.execute(command, argv)\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/celery.py\", line 717, in execute\r\n> ).run_from_argv(self.prog_name, argv[1:], command=argv[0])\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/worker.py\", line 179, in run_from_argv\r\n> return self(*args, **options)\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/base.py\", line 274, in __call__\r\n> ret = self.run(*args, **kwargs)\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/bin/worker.py\", line 212, in run\r\n> state_db=self.node_format(state_db, hostname), **kwargs\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/worker/__init__.py\", line 96, in __init__\r\n> self.on_before_init(**kwargs)\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/apps/worker.py\", line 120, in on_before_init\r\n> conf=self.app.conf, options=kwargs,\r\n> File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/utils/dispatch/signal.py\", line 166, in send\r\n> response = receiver(signal=self, sender=sender, **named)\r\n> File \"/usr/lib/python2.7/site-packages/awx/main/tasks.py\", line 245, in handle_update_celery_routes\r\n> (changed, instance) = Instance.objects.get_or_register()\r\n> File \"/usr/lib/python2.7/site-packages/awx/main/managers.py\", line 106, in get_or_register\r\n> return (False, self.me())\r\n> File \"/usr/lib/python2.7/site-packages/awx/main/managers.py\", line 88, in me\r\n> raise RuntimeError(\"No instance found with the current cluster host id\")\r\n> RuntimeError: No instance found with the current cluster host id\r\n> 2018-05-22 09:49:02,923 INFO exited: celery (exit status 1; not expected)\r\n> 2018-05-22 09:49:03,926 INFO spawned: 'celery' with pid 28552\r\n> 2018-05-22 09:49:04,926 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n\r\n##### ENVIRONMENT\r\n* AWX install method: amazon ecs using docker\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/391397232","html_url":"https://github.com/ansible/awx/issues/1898#issuecomment-391397232","issue_url":"https://api.github.com/repos/ansible/awx/issues/1898","id":391397232,"user":{"login":"matburt","id":89544,"avatar_url":"https://avatars0.githubusercontent.com/u/89544?v=4","gravatar_id":"","url":"https://api.github.com/users/matburt","html_url":"https://github.com/matburt","followers_url":"https://api.github.com/users/matburt/followers","following_url":"https://api.github.com/users/matburt/following{/other_user}","gists_url":"https://api.github.com/users/matburt/gists{/gist_id}","starred_url":"https://api.github.com/users/matburt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matburt/subscriptions","organizations_url":"https://api.github.com/users/matburt/orgs","repos_url":"https://api.github.com/users/matburt/repos","events_url":"https://api.github.com/users/matburt/events{/privacy}","received_events_url":"https://api.github.com/users/matburt/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T15:47:13Z","updated_at":"2018-05-23T15:47:13Z","author_association":"MEMBER","body":"It looks like you are not using our install playbook to set things up? If you're setting this up as a new deployment type then this isn't the appropriate place to raise an issue as this is for bugs directly related to things we support.\r\n\r\nIf you *are* setting this up as a new deployment type then you should follow along with what the setup playbook (in `installer/`) does and how it configures the various services.\r\n\r\nI saw you asked the question in irc, which is a good place to talk about things but you left before anyone was able to answer.  I would strongly recommend you look and see what the installer is doing when configuring the system."}}
{"actor":{"display_login":"matburt"}}