And ```r-184316] WARN auth.sso.oidc.OidcCallbackL...
# troubleshoot
k
And
Copy code
r-184316] WARN  auth.sso.oidc.OidcCallbackLogic - Failed to extract groups: No OIDC claim with name groups found
13:41:09 [application-akka.actor.default-dispatcher-184316] ERROR auth.sso.oidc.OidcCallbackLogic - Failed to perform post authentication steps. Redirecting to error page.
java.lang.RuntimeException: Failed to provision user with urn urn:li:corpuser:robert.last-name.Caused by: com.linkedin.r2.message.rest.RestException: Received error 500 from server for URI <http://datahub-datahub-gms:8080/entities/urn:li:corpuser:robert.last-name>
	at com.linkedin.r2.transport.http.common.HttpBridge$1.onResponse(HttpBridge.java:76)
I think there is a relation with an SQL socket closed error and the start of /entities not be reachable
Copy code
16722 07:56:36.849 [qtp544724190-273696] ERROR c.l.m.filter.RestliLoggingFilter - javax.persistence.PersistenceException: Query threw SQLException:(conn=44126) Socket closed Bind values:[] Query was:select t0.urn, t0.aspect, t0.version from metadata_aspect_v2 t0 where t0.aspect = ? and t0.version = ? order by t0.        urn limit 30                                                                                                                                            
16723 07:58:21.972 [qtp544724190-273086] INFO  c.l.m.r.entity.EntityResource - LIST URNS for dataHubPolicy with start 0 and count 30              
16724 07:58:31.972 [pool-17-thread-1] ERROR c.d.m.a.AuthorizationManager - Failed to retrieve policy urns! Skipping updating policy cache until next refresh. start: 0, count: 30
16725 com.linkedin.r2.RemoteInvocationException: com.linkedin.r2.RemoteInvocationException: Failed to get response from server for URI <http://localhost:8080/entities>                                                                                             
16726         at com.linkedin.restli.internal.client.ExceptionUtil.wrapThrowable(ExceptionUtil.java:135)                                                
16727         at com.linkedin.restli.internal.client.ResponseFutureImpl.getResponseImpl(ResponseFutureImpl.java:130)                     
16728         at com.linkedin.restli.internal.client.ResponseFutureImpl.getResponse(ResponseFutureImpl.java:94)      
16729         at com.linkedin.common.client.BaseClient.sendClientRequest(BaseClient.java:28)
16730         at com.linkedin.entity.client.RestliEntityClient.listUrns(RestliEntityClient.java:390)
16731         at com.datahub.metadata.authorization.AuthorizationManager$PolicyRefreshRunnable.run(AuthorizationManager.java:186)
16732         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)                                                                
16733         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)                               
16734         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)          
16735         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
16736         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                                                          
16737         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
16738         at java.lang.Thread.run(Thread.java:748)
16739 Caused by: com.linkedin.r2.RemoteInvocationException: Failed to get response from server for URI <http://localhost:8080/entities>
any hint?
MySql is running on AWS RDS and CPU in 9% the the number of connections is very low
e
Hey. Are any other requests succeeding? Can you do any get requests successfully?
k
It has intermittent 500 error, so most of the time it works. It could be that when a cron job ingestion script runs it takes resources, although I see GMS take little CPU and memory.
e
This is very weird. We’ve never seen a SocketException while working with AWS RDS. Are you using aurora MySQL on RDS?
k
I am using RDS
MySQL Community
engine.
I increased the number of connections and the SQL error is gone but I am constantly getting still this error
Copy code
14:59:27.224 [pool-17-thread-1] ERROR c.d.m.a.AuthorizationManager - Failed to retrieve policy urns! Skipping updating policy cache until next refresh. start: 0, count: 30
com.linkedin.r2.RemoteInvocationException: com.linkedin.r2.RemoteInvocationException: Failed to get response from server for URI <http://localhost:8080/entities>
	at com.linkedin.restli.internal.client.ExceptionUtil.wrapThrowable(ExceptionUtil.java:135)