Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

Solved Go to solution
Highlighted

500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

New Contributor

I restarted my Ambari based cluster and trying to navigate to any service I am getting this error

500 status codereceived on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

What can be possible reasons for this

1 ACCEPTED SOLUTION

Accepted Solutions

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

New Contributor

This got resolved after I granted permission to /var/run/ambari-server

6 REPLIES 6

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

Mentor

@Swapnil Prabhu what does the ambari server log say? I'd give it a bit of time and try again.

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

New Contributor

This got resolved after I granted permission to /var/run/ambari-server

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

@Swapnil Prabhu What do you mean by granting permission to /var/run/ambari-server ? Did you grant a particular user execute permission ? Please be more specific.

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

New Contributor

Try: sudo chown -R ambari /var/run/ambari-server

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

New Contributor

@Swapnil Prabhu

Did you grant a particular user execute permission ? Please be more specific.

Re: 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.3/recommendations

New Contributor

Step 1: cat /etc/ambari-server/conf/ambari.properties | grep ambari-server.user.

Know the user from above command.


Step 2: change user /var/run/ambari-server

chown -R <output of above command> /var/run/ambari-server