Support Questions

Find answers, ask questions, and share your expertise

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

avatar
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

avatar
Contributor

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

View solution in original post

6 REPLIES 6

avatar
Master Mentor

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

avatar
Contributor

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

avatar

@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.

avatar
New Contributor

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

avatar

@Swapnil Prabhu

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

avatar
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