{"action":"created","issue":{"url":"https://api.github.com/repos/ozone-development/ozp-ansible/issues/1","repository_url":"https://api.github.com/repos/ozone-development/ozp-ansible","labels_url":"https://api.github.com/repos/ozone-development/ozp-ansible/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ozone-development/ozp-ansible/issues/1/comments","events_url":"https://api.github.com/repos/ozone-development/ozp-ansible/issues/1/events","html_url":"https://github.com/ozone-development/ozp-ansible/issues/1","id":134676709,"number":1,"title":"Getting 500 error when making API request using the quickstart vagrant up for ozp-ansible","user":{"login":"ncutt010","id":768962,"avatar_url":"https://avatars.githubusercontent.com/u/768962?v=3","gravatar_id":"","url":"https://api.github.com/users/ncutt010","html_url":"https://github.com/ncutt010","followers_url":"https://api.github.com/users/ncutt010/followers","following_url":"https://api.github.com/users/ncutt010/following{/other_user}","gists_url":"https://api.github.com/users/ncutt010/gists{/gist_id}","starred_url":"https://api.github.com/users/ncutt010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncutt010/subscriptions","organizations_url":"https://api.github.com/users/ncutt010/orgs","repos_url":"https://api.github.com/users/ncutt010/repos","events_url":"https://api.github.com/users/ncutt010/events{/privacy}","received_events_url":"https://api.github.com/users/ncutt010/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-02-18T19:44:01Z","updated_at":"2016-03-17T12:01:10Z","closed_at":null,"body":"I've pulled the latest ozp-ansible project and am currently trying to quick start a vagrant build.  The build stands OZP without errors but when I try an hit any `/api` request I get a 500 error in the browser.  ie `https://localhost:4440/api/user/`.\r\n\r\nThe ozp.log throws the following error\r\n```\r\nhitting url http://localhost:8081/demo-auth/users/Big Brother bigbrother/info.json?issuerDN=None for user with dn Big Brother bigbrother\r\nInternal Server Error: /api/user/\r\nTraceback (most recent call last):\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/django/core/handlers/base.py\", line 132, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/django/views/decorators/csrf.py\", line 58, in wrapped_view\r\n    return view_func(*args, **kwargs)\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/rest_framework/viewsets.py\", line 87, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/rest_framework/views.py\", line 466, in dispatch\r\n    response = self.handle_exception(exc)\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/rest_framework/views.py\", line 454, in dispatch\r\n    self.initial(request, *args, **kwargs)\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/rest_framework/views.py\", line 377, in initial\r\n    self.check_permissions(request)\r\n  File \"/usr/local/ozp/python-env/lib/python3.4/site-packages/rest_framework/views.py\", line 318, in check_permissions\r\n    if not permission.has_permission(request, self):\r\n  File \"/usr/local/ozp/backend/ozpcenter/permissions.py\", line 67, in has_permission\r\n    ozp_authorization.authorization_update(request.user.username)\r\n  File \"/usr/local/ozp/backend/ozpcenter/auth/ozp_authorization.py\", line 127, in authorization_update\r\n    updated_auth_data = _get_auth_data(username)\r\n  File \"/usr/local/ozp/backend/ozpcenter/auth/ozp_authorization.py\", line 54, in _get_auth_data\r\n    raise errors.AuthorizationFailure('Error contacting authorization server: %s' % r.text)\r\nozpcenter.errors.AuthorizationFailure: Error contacting authorization server: <HEAD><TITLE>Unknown Host</TITLE></HEAD>\r\n<BODY BGCOLOR=\"white\" FGCOLOR=\"black\"><H1>Unknown Host</H1><HR>\r\n<FONT FACE=\"Helvetica,Arial\"><B>\r\nDescription: Unable to locate the server named \"<em>localhost</em>\" --- the server does not have a DNS entry.  Perhaps there is a misspelling in the server name, or the server no longer exists.  Double-check the name and try again.</B></FONT>\r\n<HR>\r\n<!-- default \"Unknown Host\" response (504) -->\r\n</BODY>\r\n```\r\n\r\nIt appears the issue might have to do with the gunicorn_demoauth service since it uses port 8081. In order to redeploy this service I had to manually kill the process because running `service gunicorn_demoauth stop` failed. However redeploying still didnt resolve my issue.\r\n\r\nHere's gunicorn_demoauth log:\r\n```\r\n[2016-02-18 19:17:09 +0000] [5748] [INFO] Starting gunicorn 19.3.0\r\n[2016-02-18 19:17:09 +0000] [5748] [INFO] Listening at: http://0.0.0.0:8081 (5748)\r\n[2016-02-18 19:17:09 +0000] [5748] [INFO] Using worker: sync\r\n[2016-02-18 19:17:09 +0000] [5751] [INFO] Booting worker with pid: 5751\r\n[2016-02-18 19:17:09 +0000] [5752] [INFO] Booting worker with pid: 5752\r\n```\r\n\r\nAny thoughts/tips would be greatly appreciated!\r\n\r\nCurrent setup:\r\nVirtualbox v5.0.14\r\nVagrant v1.8.1  "},"comment":{"url":"https://api.github.com/repos/ozone-development/ozp-ansible/issues/comments/197847411","html_url":"https://github.com/ozone-development/ozp-ansible/issues/1#issuecomment-197847411","issue_url":"https://api.github.com/repos/ozone-development/ozp-ansible/issues/1","id":197847411,"user":{"login":"clarkjefcoat","id":7015118,"avatar_url":"https://avatars.githubusercontent.com/u/7015118?v=3","gravatar_id":"","url":"https://api.github.com/users/clarkjefcoat","html_url":"https://github.com/clarkjefcoat","followers_url":"https://api.github.com/users/clarkjefcoat/followers","following_url":"https://api.github.com/users/clarkjefcoat/following{/other_user}","gists_url":"https://api.github.com/users/clarkjefcoat/gists{/gist_id}","starred_url":"https://api.github.com/users/clarkjefcoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarkjefcoat/subscriptions","organizations_url":"https://api.github.com/users/clarkjefcoat/orgs","repos_url":"https://api.github.com/users/clarkjefcoat/repos","events_url":"https://api.github.com/users/clarkjefcoat/events{/privacy}","received_events_url":"https://api.github.com/users/clarkjefcoat/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T12:01:10Z","updated_at":"2016-03-17T12:01:10Z","body":"Yes, please submit a pull request.  I'm sure you won't be the only person working behind a proxy."}}