Hi <@U027B7R23J4> .. While accessing datahub porta...
# troubleshoot
f
Hi @square-activity-64562 .. While accessing datahub portal we are getting this error.. any help here will be really appreciated... "Validation error (FieldUndefined@[me/CorpUser/settings/views]):Field views in type 'CorpUserSettings' is undefined (code undefined)"
s
Gentle reminder to please post large blocks of code/stack trace in Slack message threads - it’s a HUGE help for the Core Team to keep track of which questions are still unaddressed across our various support channels!
One thread for one problem
And please add basic context • Is DataHub working on ◦ your local computer (via quickstart) ◦ on a k8s cluster (AWS EKS, GCP GKE etc). ◦ in a air-gapped environment • If Quickstart ◦ have you edited docker compose files manually? ◦ you can nuke it and restart it ◦ refer to https://datahubproject.io/docs/quickstart/ for details on how to update DataHub in quickstart
Adding these basic details helps people help you. Otherwise no one knows your environment.
f
we are not getting anything in logs.. means logs were not getting updated.. this was the only error we saw in UI.. DataHub is running on EKS cluster with public IP.
This was the stacktrace in GMS pod 👇 114057.309 [I/O dispatcher 1] INFO c.l.m.s.e.update.BulkListener:47 - Successfully fed bulk request. Number of events: 1 Took time ms: -1 114106.638 [ForkJoinPool.commonPool-worker-3] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler:21 - Failed to execute DataFetcher java.lang.NullPointerException: null at java.base/java.util.Objects.requireNonNull(Objects.java:221) at com.datahub.authorization.DataHubAuthorizer.getGrantedPrivileges(DataHubAuthorizer.java:110) at com.linkedin.datahub.graphql.resolvers.policy.GetGrantedPrivilegesResolver.get(GetGrantedPrivilegesResolver.java:41) at com.linkedin.datahub.graphql.resolvers.policy.GetGrantedPrivilegesResolver.get(GetGrantedPrivilegesResolver.java:24) at graphql.execution.ExecutionStrategy.fetchField(ExecutionStrategy.java:282) at graphql.execution.ExecutionStrategy.resolveFieldWithInfo(ExecutionStrategy.java:211) at graphql.execution.AsyncExecutionStrategy.execute(AsyncExecutionStrategy.java:59) at graphql.execution.Execution.executeOperation(Execution.java:159) at graphql.execution.Execution.execute(Execution.java:105) at graphql.GraphQL.execute(GraphQL.java:645) at graphql.GraphQL.lambda$parseValidateAndExecute$11(GraphQL.java:564) at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) at graphql.GraphQL.parseValidateAndExecute(GraphQL.java:559) at graphql.GraphQL.executeAsync(GraphQL.java:527) at graphql.GraphQL.execute(GraphQL.java:453) at com.linkedin.datahub.graphql.GraphQLEngine.execute(GraphQLEngine.java:90) at com.datahub.graphql.GraphQLController.lambda$postGraphQL$0(GraphQLController.java:95) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) 114106.652 [ForkJoinPool.commonPool-worker-3] ERROR c.datahub.graphql.GraphQLController:99 - Errors while executing graphQL query: "query getGrantedPrivileges($input: GetGrantedPrivilegesInput!) {\n getGrantedPrivileges(input: $input) {\n privileges\n __typename\n }\n}\n", result: {errors=[{message=An unknown error occurred., locations=[{line=2, column=3}], path=[getGrantedPrivileges], extensions={code=500, type=SERVER_ERROR, classification=DataFetchingException}}], data={getGrantedPrivileges=null}, extensions={tracing={version=1, startTime=2022-12-21T114106.632996Z, endTime=2022-12-21T114106.641339Z, duration=8356646, parsing={startOffset=473373, duration=431807}, validation={startOffset=1027776, duration=517990}, execution={resolvers=[{path=[getGrantedPrivileges], parentType=Query, returnType=Privileges, fieldName=getGrantedPrivileges, startOffset=1208449, duration=3155791}]}}}}, errors: [DataHubGraphQLError{path=[getGrantedPrivileges], code=SERVER_ERROR, locations=[SourceLocation{line=2, column=3}]}] 114106.652 [pool-13-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - GET /entitiesV2?ids=List(urn%3Ali%3Acorpuser%3Adatahub) - batchGet - 200 - 6ms 114106.666 [pool-13-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - GET /entitiesV2?ids=List(urn%3Ali%3Acorpuser%3Adatahub) - batchGet - 200 - 4ms 114106.673 [pool-13-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - GET /entitiesV2?ids=List(urn%3Ali%3Acorpuser%3Adatahub) - batchGet - 200 - 3ms 114106.683 [pool-13-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - GET /entitiesV2?ids=List(urn%3Ali%3Acorpuser%3Adatahub) - batchGet - 200 - 4ms 114106.692 [pool-13-thread-1] INFO c.l.m.filter.RestliLoggingFilter:55 - GET /entitiesV2?ids=List(urn%3Ali%3Acorpuser%3Adatahub) - batchGet - 200 - 3ms 114107.315 [I/O dispatcher 1] INFO c.l.m.s.e.update.BulkListener:47 - Successfully fed bulk request. Number of events: 3 Took time ms: -1
s
Please share these things • Version of server that are you running? • Version of helm charts that you are using? • Have you made any changes in database manually? • Did all setup jobs run completely? Have you checked logs of all setup jobs? Are there any errors? • Are you trying to upgrade? If yes, from what previous version?
f
1. EKS - 1.21 2. Helm chart of datahub - datahub-0.2.120 3. no change in DB 4. All the pods are running.. no error logs.. 5. It's fresh installation - not upgrading.
s
Have you managed to run quickstart successfully?
Version of server
I meant datahub server version
In the above image there is an error in
datahub-upgrade
job.