Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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
New Member

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
New Member

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 Member

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

avatar
New Member

@Swapnil Prabhu

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

avatar
New Member

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