{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/1494","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/1494/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/1494/events","html_url":"https://github.com/ansible/awx/issues/1494","id":303842736,"number":1494,"title":"SCM update keeps pending infinitely","user":{"login":"itcrowdsource","id":20809792,"avatar_url":"https://avatars2.githubusercontent.com/u/20809792?v=4","gravatar_id":"","url":"https://api.github.com/users/itcrowdsource","html_url":"https://github.com/itcrowdsource","followers_url":"https://api.github.com/users/itcrowdsource/followers","following_url":"https://api.github.com/users/itcrowdsource/following{/other_user}","gists_url":"https://api.github.com/users/itcrowdsource/gists{/gist_id}","starred_url":"https://api.github.com/users/itcrowdsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcrowdsource/subscriptions","organizations_url":"https://api.github.com/users/itcrowdsource/orgs","repos_url":"https://api.github.com/users/itcrowdsource/repos","events_url":"https://api.github.com/users/itcrowdsource/events{/privacy}","received_events_url":"https://api.github.com/users/itcrowdsource/received_events","type":"User","site_admin":false},"labels":[{"id":687169246,"url":"https://api.github.com/repos/ansible/awx/labels/component:api","name":"component:api","color":"fbca04","default":false},{"id":686255656,"url":"https://api.github.com/repos/ansible/awx/labels/priority:medium","name":"priority:medium","color":"fad8c7","default":false},{"id":687178854,"url":"https://api.github.com/repos/ansible/awx/labels/state:needs_info","name":"state:needs_info","color":"eb6420","default":false},{"id":607283748,"url":"https://api.github.com/repos/ansible/awx/labels/type:bug","name":"type:bug","color":"F79F81","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-03-09T13:34:53Z","updated_at":"2018-03-29T12:36:20Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!-- Pick the area of AWX for this issue, you can have multiple, delete the rest: -->\r\n - UI\r\n\r\n##### SUMMARY\r\nSCM update keeps pending infinitely\r\n\r\n##### ENVIRONMENT\r\n* AWX version: 1.0.4.64\r\n* AWX install method: docker on linux\r\n* Ansible version:  2.4.3.0\r\n* Operating System: Ubuntu 16.04 Xenial\r\n* Web Browser: Chrome, Firefox, Edge\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\nProjects > Get latest SCM version > Stuck in pending mode infinitely\r\nTemplates > Job > Launch job > Stuck in pending mode infinitely (probably because the job is triggering the SCM update process)\r\n\r\n##### EXPECTED RESULTS\r\n\r\nSCM update succesful\r\n\r\n##### ACTUAL RESULTS\r\n\r\nStays in pending mode, no stdout logs are generated in the UI\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\n![image](https://user-images.githubusercontent.com/20809792/37209704-74c28c2e-23a6-11e8-9c8b-37994a0e9a99.png)\r\n![image](https://user-images.githubusercontent.com/20809792/37209762-a7c28778-23a6-11e8-8a7a-cdda5d12025e.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/377221472","html_url":"https://github.com/ansible/awx/issues/1494#issuecomment-377221472","issue_url":"https://api.github.com/repos/ansible/awx/issues/1494","id":377221472,"user":{"login":"ericrochow","id":10402073,"avatar_url":"https://avatars0.githubusercontent.com/u/10402073?v=4","gravatar_id":"","url":"https://api.github.com/users/ericrochow","html_url":"https://github.com/ericrochow","followers_url":"https://api.github.com/users/ericrochow/followers","following_url":"https://api.github.com/users/ericrochow/following{/other_user}","gists_url":"https://api.github.com/users/ericrochow/gists{/gist_id}","starred_url":"https://api.github.com/users/ericrochow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericrochow/subscriptions","organizations_url":"https://api.github.com/users/ericrochow/orgs","repos_url":"https://api.github.com/users/ericrochow/repos","events_url":"https://api.github.com/users/ericrochow/events{/privacy}","received_events_url":"https://api.github.com/users/ericrochow/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T12:36:20Z","updated_at":"2018-03-29T12:36:20Z","author_association":"NONE","body":"Just out of curiosity, do you see this only after an upgrade? During an upgrade of the awx_task container (possibly the web container too, but I'm not sure), I find that the the task container removes itself from the celery queue. I'm guessing this is by design for clustered environments, but it is a bit annoying for simple environments. I get around this with the following:\r\n\r\n```\r\n/bin/cd /var/lib/awx\r\n/bin/docker-compose pull\r\n/bin/docker-compose up -d --force-recreate\r\n/bin/docker exec -it awx_web_1  awx-manage register_queue --queuename tower --hostnames awx\r\n```\r\n\r\nAlternatively, in the GUI try the following:\r\n\r\n-  Instance Groups >> `tower` >> Instances\r\n- `+`\r\n- Click the checkbox by `awx` click save\r\n\r\nThis effectively does the same as the last line in the script above by telling the task container to listen to the message queue and pick up pending jobs."}}
{"actor":{"display_login":"ericrochow"}}