While deploying datahub v0.8.38 using helm , servi...
# all-things-deployment
r
While deploying datahub v0.8.38 using helm , services are failing with errors: GMS ERROR:
Copy code
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataHubAuthorizerFactory': Unsatisfied dependency expressed through field 'entityClient'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'javaEntityClientFactory': Unsatisfied dependency expressed through field '_entityService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityAspectDao' defined in com.linkedin.gms.factory.entity.EntityAspectDaoFactory: Unsatisfied dependency expressed through method 'createEbeanInstance' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in com.linkedin.gms.factory.entity.EbeanServerFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
Datahub Upgrade Error:
Copy code
022-07-12 07:56:35.388  INFO 1 --- [           main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-07-12 07:56:35.595 ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'upgradeCli': Unsatisfied dependency expressed through field 'noCodeUpgrade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in class path resource [com/linkedin/gms/factory/entity/EbeanServerFactory.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in class path resource [com/linkedin/gms/factory/entity/EbeanServerFactory.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.20.jar!/:5.3.20]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) ~[spring-beans-5.3.20.jar!/:5.3.20]
        at
pods status: Prerequisites are running fine
Copy code
NAME                                                READY   STATUS      RESTARTS        AGE
datahub-acryl-datahub-actions-6598bff46-mdlcw       1/1     Running     6 (4m59s ago)   31m
datahub-datahub-frontend-7dbbd4644f-hqnfx           1/1     Running     0               31m
datahub-datahub-gms-996bbbfc9-2pgf7                 0/1     Running     5 (4m18s ago)   31m
datahub-datahub-upgrade-job-b9jlz                   0/1     Error       0               28m
datahub-datahub-upgrade-job-dp2qb                   0/1     Error       0               30m
datahub-datahub-upgrade-job-dr7p8                   0/1     Error       0               29m
datahub-datahub-upgrade-job-gb9w7                   0/1     Error       0               27m
datahub-datahub-upgrade-job-mxnh2                   0/1     Error       0               24m
datahub-datahub-upgrade-job-r4lv6                   0/1     Error       0               31m
datahub-datahub-upgrade-job-z7r9x                   0/1     Error       0               30m
datahub-elasticsearch-setup-job-pjtpm               0/1     Completed   0               34m
datahub-kafka-setup-job-c99cc                       0/1     Completed   0               34m
datahub-mysql-setup-job-nckpd                       0/1     Completed   0               32m
prerequisites-cp-schema-registry-555899678b-xxt69   1/1     Running     0               4m38s
prerequisites-kafka-0                               1/1     Running     0               39m
prerequisites-mysql-0                               1/1     Running     0               4m34s
prerequisites-zookeeper-0                           1/1     Running     0               4m34s
1
s
Is this first deployment? Was this setup working on an older version before this?
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!
Can you please post your values.yaml file here (after masking your secrets)?
Can you please attempt to deploy the latest 0.8.40 instead with the latest helm chart if this is a new deployment?
r
Yes this is the first deployment as earlier we were deploying datahub on swarm. Now we are deploying it on openshift. Let me get the values.yaml. Okay i will try 0.8.40 as well.
here's the values.yaml. Let me know if something is wrong in this.
s
Please see https://github.com/acryldata/datahub-helm/blob/master/charts/datahub/values.yaml and update your values.yaml. At first glance there does not seem to be anything wrong here. I am assuming there have been zero changes in the images. Just they have been copied from public dockerhub.
r
In GMS image we have changed the dockerize version. Also this updated image is running fine on a docker swarm cluster.
i
@rich-policeman-92383 are the kubernetes nodes running centos by any chance?
r
No this is an openshift cluster running coreos
s
Did it work with v0.8.40?
r
Still failing with null pointer exception. Attached the complete trace.
Cause of this issue was a simple typo at two places: "A forward slash was missing" https://github.com/acryldata/datahub-helm/blob/master/charts/datahub/values.yaml#L140 https://github.com/acryldata/datahub-helm/blob/master/charts/datahub/values.yaml#L129 vim tricks did me here. Thanks for the help 😄
s
Good to know this got solved