Hi again.
We just deployed 2 new nodes with 8Gb in Amazon.
2 nodes are in same VPC and subnet.
Now, we receive 401 errors (invalid grant) when the 2 nodes reply on same flow:
node 1:
2018-05-09 07:50:40,212 INFO [qtp2008017533-13] [org.xdi.oxauth.service.AuthenticationServ
ice] (AuthenticationService.java:494) - Attempting to redirect user: SessionUser: SessionSt
ate {dn='oxAuthSessionId=8a7c5683-1ff7-44b5-9b84-fd10ef20a6f6,ou=session,o=@!81C8.B862.947C
.FC91!0001!D858.3824,o=gluu', id='8a7c5683-1ff7-44b5-9b84-fd10ef20a6f6', lastUsedAt=Wed May
09 07:50:40 UTC 2018, userDn='inum=@!81C8.B862.947C.FC91!0001!D858.3824!0000!2554.88F0,ou=
people,o=@!81C8.B862.947C.FC91!0001!D858.3824,o=gluu', authenticationTime=Wed May 09 07:50:
40 UTC 2018, state=authenticated, sessionState='cbcd1d7c-ed15-42e7-8ff6-81b067a5bce7', perm
issionGranted=null, isJwt=false, jwt=null, permissionGrantedMap=org.xdi.oxauth.model.common
.SessionIdAccessMap@24dba048, involvedClients=null, sessionAttributes={auth_step=1, acr=aut
h_ldap_server, remote_ip=195.55.82.133, 10.50.1.19, auth_external_attributes=[], scope=open
id profile email memberOf user_name company, response_type=code, redirect_uri=http://localh
ost:9090/login, state=PAyf1g, client_id=@!81C8.B862.947C.FC91!0001!D858.3824!0008!6C2D.DA39
.B78D.41D1}, persisted=true}
2018-05-09 07:50:40,214 INFO [qtp2008017533-13] [org.xdi.oxauth.service.AuthenticationServ
ice] (AuthenticationService.java:502) - Attempting to redirect user: User: org.xdi.oxauth.m
odel.common.User@356a0a00
2018-05-09 07:50:40,215 INFO [qtp2008017533-13] [org.xdi.oxauth.auth.Authenticator] (Authe
nticator.java:357) - Authentication success for User: 'asuch'
node 2:
2018-05-09 07:50:40,624 INFO [qtp2008017533-13] [org.xdi.oxauth.auth.Authenticator] (Authe
nticator.java:217) - Authentication success for Client: '@!81C8.B862.947C.FC91!0001!D858.38
24!0008!6C2D.DA39.B78D.41D1'
After those logs, it throws us 401 error.
The 4Gb nodes don't throw those 401 errors in test.
We think there's a Race Condition.
When we debug the tests, allways runs ok.
When we work with only one node, it works.
When we work with 2 cluster nodes, it throws 401 errors when 2 nodes work on the response.