ERROR: Server returned error 500 for Chef Server


I am trying to upload new cookbook to my chef-server and it is returning the following error

ERROR: Server returned error 500 for https://xxxxxxx
ERROR: internal server error
ERROR: internal service error

My chef server is linux based and I have tried all the possible solutions mentioned but none of them seem to be working.


Check the server logs for details: chef-server-ctl tail


Here are the logs for tail we did before and it is not very helpful.

==> /var/log/opscode/opscode-reporting/reporting.log.1 <==
2016-05-25T20:47:12Z oc_reporting@ method=GET; path=/organizations/xxxxx/reports/runs/durations?from=1464122799&until=1464209199&granularity=hour; status=500; user=xxxxxx; org_name=xxxx; protocol_version=0.1.0; req_time=10; erchef_time=7; erchef_count=1; msg={fetch_org_guid,{api_fetch_org_id,{conn_failed,{error,econnrefused}}}};

==> /var/log/opscode/nginx/error.log <==
2016/05/25 15:51:45 [error] 19089#0: *555 upstream timed out (110: Connection timed out) while reading upstream, client:, server: ci-jenkins, request: “GET /_events HTTP/1.1”, upstream: “”, host: “ci-jenkins:8443”, referrer: “https://ci-jenkins:8443/organizations/XXXX/nodes/ci-jenkins

It doesn’t tell us what is causing the problem.