{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/1720","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/1720/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/1720/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/1720/events","html_url":"https://github.com/ansible/awx/issues/1720","id":310761971,"number":1720,"title":"Enabling External Logging Breaks SCM Updates","user":{"login":"grahamn-gr","id":35037942,"avatar_url":"https://avatars3.githubusercontent.com/u/35037942?v=4","gravatar_id":"","url":"https://api.github.com/users/grahamn-gr","html_url":"https://github.com/grahamn-gr","followers_url":"https://api.github.com/users/grahamn-gr/followers","following_url":"https://api.github.com/users/grahamn-gr/following{/other_user}","gists_url":"https://api.github.com/users/grahamn-gr/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamn-gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamn-gr/subscriptions","organizations_url":"https://api.github.com/users/grahamn-gr/orgs","repos_url":"https://api.github.com/users/grahamn-gr/repos","events_url":"https://api.github.com/users/grahamn-gr/events{/privacy}","received_events_url":"https://api.github.com/users/grahamn-gr/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":861898136,"url":"https://api.github.com/repos/ansible/awx/labels/flag:%F0%9F%8E%B1","name":"flag:🎱","color":"31e0bd","default":false},{"id":686255387,"url":"https://api.github.com/repos/ansible/awx/labels/priority:high","name":"priority:high","color":"f7c6c7","default":false},{"id":686203630,"url":"https://api.github.com/repos/ansible/awx/labels/state:in_progress","name":"state:in_progress","color":"BCF5A9","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":6,"created_at":"2018-04-03T09:34:46Z","updated_at":"2018-05-17T20:44:48Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n\r\n##### COMPONENT NAME\r\n - API\r\n - UI\r\n\r\n##### SUMMARY\r\nAfter configuring external logging settings SCM updates no longer work.\r\n\r\n##### ENVIRONMENT\r\n* AWX version: 1.0.5.18\r\n* AWX install method: docker on linux\r\n* Ansible version:  2.5.0.0\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n1) Setup a new project (I used git as an SCM source) and confirm an SCM update works\r\n2) Configure external logging\r\n3) Run an SCM update\r\n\r\n\r\n##### EXPECTED RESULTS\r\n\r\nSCM updates continue to work with external logging enabled\r\n\r\n##### ACTUAL RESULTS\r\n\r\nSCM updates stop working\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\n```\r\n[2018-04-03 08:37:50,491: INFO/MainProcess] Received task: awx.main.scheduler.tasks.run_job_launch[b7a8b43f-5984-4e21-ab55-76a0d9cc9d5d]\r\n[2018-04-03 08:37:50,491: DEBUG/MainProcess] TaskPool: Apply <function _fast_trace_task at 0x23c2b18> (args:(u'awx.main.scheduler.tasks.run_job_launch', u'b7a8b43f-5984-4e21-ab55-76a0d9cc9d5d', [14], {}, {u'utc': True, u'is_eager': False, u'chord': None, u'group': None, u'args': [14], u'retries': 0, u'delivery_info': {u'priority': 0, u'redelivered': False, u'routing_key': u'tower', u'exchange': u'tower'}, u'expires': None, u'hostname': 'celery@awx', u'task': u'awx.main.scheduler.tasks.run_job_launch', u'callbacks': None, u'correlation_id': u'b7a8b43f-5984-4e21-ab55-76a0d9cc9d5d', u'errbacks': None, u'timelimit': [None, None], u'taskset': None, u'kwargs': {}, u'eta': None, u'reply_to': u'0383f788-0b18-31a4-b456-5196350e2ba7', u'id': u'b7a8b43f-5984-4e21-ab55-76a0d9cc9d5d', u'headers': {}}) kwargs:{})\r\n[2018-04-03 08:37:50,493: DEBUG/MainProcess] Task accepted: awx.main.scheduler.tasks.run_job_launch[b7a8b43f-5984-4e21-ab55-76a0d9cc9d5d] pid:231\r\n2018-04-03 08:37:50,511 DEBUG    awx.main.scheduler Starting Scheduler\r\n2018-04-03 08:37:50,558 DEBUG    awx.main.scheduler Starting project_update 14 (pending) in group tower (remaining_capacity=37)\r\n2018-04-03 08:37:50,561 INFO     awx.main.scheduler Submitting project_update 14 (waiting) to instance group 1.\r\n2018-04-03 08:37:50,595 DEBUG    awx.main.scheduler project_update 14 (waiting) consumed 1 capacity units from tower with prior total of 0\r\n[2018-04-03 08:37:50,616: DEBUG/Worker-6] Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL.  See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2018 Pivotal Software, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'direct_reply_to': True, u'basic.nack': True, u'per_consumer_qos': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'cluster_name': u'rabbit@58b137aa44ea', u'platform': u'Erlang/OTP 20.1.7', u'version': u'3.7.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\r\n[2018-04-03 08:37:50,620: DEBUG/Worker-6] Open OK!\r\n[2018-04-03 08:37:50,620: DEBUG/Worker-6] using channel_id: 1\r\n[2018-04-03 08:37:50,622: DEBUG/Worker-6] Channel open\r\n[2018-04-03 08:37:50,625: INFO/MainProcess] Received task: awx.main.tasks.run_project_update[d1e01b36-4405-486d-8c69-ca54bbe01417]\r\n[2018-04-03 08:37:50,626: DEBUG/MainProcess] TaskPool: Apply <function _fast_trace_task at 0x23c2b18> (args:(u'awx.main.tasks.run_project_update', u'd1e01b36-4405-486d-8c69-ca54bbe01417', [14], {}, {u'utc': True, u'is_eager': False, u'chord': None, u'group': None, u'args': [14], u'retries': 0, u'delivery_info': {u'priority': None, u'redelivered': False, u'routing_key': u'tower', u'exchange': u'tower'}, u'expires': None, u'hostname': 'celery@awx', u'task': u'awx.main.tasks.run_project_update', u'callbacks': [{u'chord_size': None, u'task': u'awx.main.tasks.handle_work_success', u'args': [], u'immutable': False, u'subtask_type': None, u'kwargs': {u'task_actual': {u'type': u'project_update', u'id': 14}}, u'options': {}}], u'correlation_id': u'd1e01b36-4405-486d-8c69-ca54bbe01417', u'errbacks': [{u'chord_size': None, u'task': u'awx.main.tasks.handle_work_error', u'args': [], u'immutable': False, u'subtask_type': None, u'kwargs': {u'subtasks': [{u'type': u'project_update', u'id': 14}]}, u'options': {}}], u'timelimit': [None, None], u'taskset': None, u'kwargs': {}, u'eta': None, u'reply_to':... kwargs:{})\r\n[2018-04-03 08:37:50,628: DEBUG/MainProcess] Task accepted: awx.main.tasks.run_project_update[d1e01b36-4405-486d-8c69-ca54bbe01417] pid:233\r\n[2018-04-03 08:37:50,630: DEBUG/Worker-6] Closed channel #1\r\n[2018-04-03 08:37:50,652: INFO/MainProcess] Task awx.main.scheduler.tasks.run_job_launch[b7a8b43f-5984-4e21-ab55-76a0d9cc9d5d] succeeded in 0.159662134014s: None\r\n2018-04-03 08:37:50,756 ERROR    awx.main.tasks Error flushing job stdout and saving event count.\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/awx/main/tasks.py\", line 975, in run\r\n    stdout_handle.flush()\r\nUnboundLocalError: local variable 'stdout_handle' referenced before assignment\r\n2018-04-03 08:37:50,757 INFO     awx.main.tasks project_update 14 (running) Could not find scm revision in check\r\n2018-04-03 08:37:50,843 WARNING  awx.main.tasks project_update 14 (error) encountered an error (rc=None), please see task stdout for details.\r\n[2018-04-03 08:37:50,845: CRITICAL/MainProcess] Task awx.main.tasks.run_project_update[d1e01b36-4405-486d-8c69-ca54bbe01417] INTERNAL ERROR: TypeError('super(type, obj): obj must be an instance or subtype of type',)\r\nTraceback (most recent call last):\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/app/trace.py\", line 253, in trace_task\r\n    I, R, state, retval = on_error(task_request, exc, uuid)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/app/trace.py\", line 201, in on_error\r\n    R = I.handle_error_state(task, eager=eager)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/app/trace.py\", line 85, in handle_error_state\r\n    }[self.state](task, store_errors=store_errors)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/app/trace.py\", line 120, in handle_failure\r\n    task.on_failure(exc, req.id, req.args, req.kwargs, einfo)\r\n  File \"/usr/lib/python2.7/site-packages/awx/main/tasks.py\", line 94, in on_failure\r\n    super(LogErrorsTask, self).on_failure(exc, task_id, args, kwargs, einfo)\r\nTypeError: super(type, obj): obj must be an instance or subtype of type\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/390005359","html_url":"https://github.com/ansible/awx/issues/1720#issuecomment-390005359","issue_url":"https://api.github.com/repos/ansible/awx/issues/1720","id":390005359,"user":{"login":"ryanpetrello","id":214912,"avatar_url":"https://avatars1.githubusercontent.com/u/214912?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanpetrello","html_url":"https://github.com/ryanpetrello","followers_url":"https://api.github.com/users/ryanpetrello/followers","following_url":"https://api.github.com/users/ryanpetrello/following{/other_user}","gists_url":"https://api.github.com/users/ryanpetrello/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanpetrello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanpetrello/subscriptions","organizations_url":"https://api.github.com/users/ryanpetrello/orgs","repos_url":"https://api.github.com/users/ryanpetrello/repos","events_url":"https://api.github.com/users/ryanpetrello/events{/privacy}","received_events_url":"https://api.github.com/users/ryanpetrello/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T20:44:48Z","updated_at":"2018-05-17T20:44:48Z","author_association":"CONTRIBUTOR","body":"Hey everybody, we've just merged in some changes that we think will resolve this issue - mind giving the latest awx a try?"}}
{"actor":{"display_login":"ryanpetrello"}}