Hello everyone! We are trying to deploy the datahu...
# all-things-deployment
c
Hello everyone! We are trying to deploy the datahub with PostgreSQL database instead of MySQL. We are consistently getting NPE in the logs of datahub-gms service. Anyone faced similar issue ? can someone help me on this ? I will add the details in the thread.
This seems to be important part of the stack trace.
Copy code
Caused by: java.lang.NullPointerException: null
	at io.ebean.datasource.pool.ConnectionPool.notifyDataSourceIsDown(ConnectionPool.java:406)
	at io.ebean.datasource.pool.ConnectionPool.createUnpooledConnection(ConnectionPool.java:535)
	at io.ebean.datasource.pool.ConnectionPool.createUnpooledConnection(ConnectionPool.java:524)
	at io.ebean.datasource.pool.ConnectionPool.createConnectionForQueue(ConnectionPool.java:766)
	at io.ebean.datasource.pool.PooledConnectionQueue.ensureMinimumConnections(PooledConnectionQueue.java:227)
	at io.ebean.datasource.pool.ConnectionPool.initialise(ConnectionPool.java:301)
	at io.ebean.datasource.pool.ConnectionPool.<init>(ConnectionPool.java:246)
	at io.ebean.datasource.core.Factory.createPool(Factory.java:15)
	at io.ebeaninternal.server.core.DefaultContainer.getDataSourceFromConfig(DefaultContainer.java:273)
	at io.ebeaninternal.server.core.DefaultContainer.setDataSource(DefaultContainer.java:217)
	at io.ebeaninternal.server.core.DefaultContainer.createServer(DefaultContainer.java:103)
	at io.ebeaninternal.server.core.DefaultContainer.createServer(DefaultContainer.java:35)
	at io.ebean.EbeanServerFactory.createInternal(EbeanServerFactory.java:109)
	at io.ebean.EbeanServerFactory.create(EbeanServerFactory.java:70)
	at com.linkedin.gms.factory.entity.EbeanServerFactory.createServer(EbeanServerFactory.java:33)
	at com.linkedin.gms.factory.entity.EbeanServerFactory$$EnhancerBySpringCGLIB$$64e452f.CGLIB$createServer$0(<generated>)
	at com.linkedin.gms.factory.entity.EbeanServerFactory$$EnhancerBySpringCGLIB$$64e452f$$FastClassBySpringCGLIB$$152269d8.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
	at com.linkedin.gms.factory.entity.EbeanServerFactory$$EnhancerBySpringCGLIB$$64e452f.createServer(<generated>)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
Below is the data source configuration used in the values.yaml file.
Copy code
sql:
    datasource:
      host: "<http://datahub.xxxxxxxxx.ap-south-1.rds.amazonaws.com:5432|datahub.xxxxxxxxx.ap-south-1.rds.amazonaws.com:5432>"
      hostForpostgresqlClient: "<http://datahub.xxxxxxxxx.ap-south-1.rds.amazonaws.com|datahub.xxxxxxxxx.ap-south-1.rds.amazonaws.com>"
      port: "5432"
      url: "jdbc:<postgres://datahub.xxxxxxxxx.ap-south-1.rds.amazonaws.com:5432/datahub?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8&enabledTLSProtocols=TLSv1.2>"
      driver: "org.postgresql.Driver"
      username: "datahub"
      password:
        secretRef: datahub-postgres
        secretKey: datahub-postgres-password
Found the issue. its due to the incorrect connection URL. I should have checked it earlier.
s
please shed some lights ., incorrect connection Url in the sense , i face the same issue but my instance running in Azure and can be connected via only with private link