{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-server/issues/461","labels_url":"https://api.github.com/repos/chef/chef-server/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-server/issues/461/comments","events_url":"https://api.github.com/repos/chef/chef-server/issues/461/events","html_url":"https://github.com/chef/chef-server/issues/461","id":98645382,"number":461,"title":"policy file command 500 errors from server","user":{"login":"joelmoss","id":4614,"avatar_url":"https://avatars.githubusercontent.com/u/4614?v=3","gravatar_id":"","url":"https://api.github.com/users/joelmoss","html_url":"https://github.com/joelmoss","followers_url":"https://api.github.com/users/joelmoss/followers","following_url":"https://api.github.com/users/joelmoss/following{/other_user}","gists_url":"https://api.github.com/users/joelmoss/gists{/gist_id}","starred_url":"https://api.github.com/users/joelmoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelmoss/subscriptions","organizations_url":"https://api.github.com/users/joelmoss/orgs","repos_url":"https://api.github.com/users/joelmoss/repos","events_url":"https://api.github.com/users/joelmoss/events{/privacy}","received_events_url":"https://api.github.com/users/joelmoss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-02T23:37:27Z","updated_at":"2015-10-01T16:46:12Z","closed_at":null,"body":"Whenever I run any command that involves policy files API endpoints, the server returns a 500 server error.\r\n\r\nFor example: running `chef show-policy` returns this:\r\n```\r\n[2015-08-03T00:30:25+01:00] ERROR: Server returned error 500 for https://chef-server.XX.com/organizations/XX/policy_groups, retrying 1/5 in 3s\r\n```\r\n\r\nBut also `chef push` returns the same error.\r\n\r\nIn the `opscode-erchef/crash.log`, I see this:\r\n```\r\n{<<\"method=GET; path=/organizations/XX/policy_groups; status=500; \">>,{error,{badrecord,chef_container},[{oc_chef_authz,get_container_aid_for_object,3,[{file,\"src/oc_chef_authz.erl\"},{line,139}]},{oc_chef_wm_base,forbidden,2,[{file,\"src/oc_chef_wm_base.erl\"},{line,156}]},{webmachine_resource,resource_call,3,[{file,\"src/webmachine_resource.erl\"},{line,186}]},{webmachine_resource,do,3,[{file,\"src/webmachine_resource.erl\"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,\"src/webmachine_decision_core.erl\"},{line,48}]},{webmachine_decision_core,decision,1,[{file,\"src/webmachine_decision_core.erl\"},{line,225}]},{webmachine_decision_core,handle_request,2,[{file,\"src/webmachine_decision_core.erl\"},{line,33}]},{webmachine_mochiweb,loop,2,[{file,\"src/webmachine_mochiweb.erl\"},{line,72}]}]}}\r\n```\r\n\r\nI am running chef server 12.1.1 and chef-client 12.4.1.\r\n\r\nCan anyone help me please, as the above error is not particularly helpful? thx"},"comment":{"url":"https://api.github.com/repos/chef/chef-server/issues/comments/144783599","html_url":"https://github.com/chef/chef-server/issues/461#issuecomment-144783599","issue_url":"https://api.github.com/repos/chef/chef-server/issues/461","id":144783599,"user":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T16:46:12Z","updated_at":"2015-10-01T16:46:12Z","body":"Thanks @jeremiahsnapp "}}