Getting Error access token invalid after Implement High Availability

Hello All,

We are trying to implement  High Availability for our SugarCRM. We are getting error "The access token provided is invalid." when we try to execute REST API from our load balancer server. As per our initial finding, we observe that Oauth access token not sharing between two app server.

Please find the below details for reference.

Currently we are using SugarCRM 9.X professional version.

When we try to execute API from load balancer request will distribute both the server, we got success from one server and got error from second server. We are unable to find, from which server we are getting failure response. We need your technical team support to resolve the issue.

Please find our HA configuration:
Machines
1 Web Load Balancer
2 Web Servers
2 Database Servers (Active-Passive)
1 Elasticsearch Server

Thanks,
Nandkishore Bangar

Parents Reply Children
  • Should I address you as Nandkishore Bangar or Shiek Hussain? :)

    Did you get a chance to check the logs? Can you share it? 

    What kind of errors did you see?

    Was it an invalid_grant?

    Are your servers using the same unique_key? (from config.php).

    Are you accessing the servers from the same IP? Can you confirm if the load balancer correctly passes the client IP as part of HTTP_X_FORWARDED_FOR header?

    Another option is to enable debug logs in both the servers and try to collect logs - logs are the only debugging source that can help us here.