While upgrading from v0.7.1 to 0.8.3 following the...
# all-things-deployment
r
While upgrading from v0.7.1 to 0.8.3 following the no code upgrade guide, we are getting this exception: https://datahubproject.io/docs/advanced/no-code-upgrade Please suggest if we are missing something.
e
Hi! Are you running docker-compose to deploy datahub? Are the env variables under docker/datahub-upgrade/env/docker.env set to match your setup?
r
yes i have modified the file docker/datahub-upgrade/env/docker.env so that values match with current settings used by gms/frontend. yes datahub is running on docker swarm
e
@rich-policeman-92383 what are the url params you set for the mysql url?
r
@early-lamp-41924 we are using postgres. Here's the complete env file
Copy code
JAVA_OPTS=-Djavax.net.ssl.trustStore=/home/datahub/cacerts -Djavax.net.ssl.trustStorePassword=*****
EBEAN_DATASOURCE_USERNAME=datahub
EBEAN_DATASOURCE_PASSWORD=*******
EBEAN_DATASOURCE_HOST=postgres:5432
EBEAN_DATASOURCE_URL=jdbc:<postgresql://postgres:5432/datahub>
EBEAN_DATASOURCE_DRIVER=org.postgresql.Driver
KAFKA_BOOTSTRAP_SERVER=broker:29092
KAFKA_SCHEMAREGISTRY_URL=<http://schema-registry:8081>
ELASTICSEARCH_HOST=elasticsearch
ELASTICSEARCH_PORT=9200
ELASTICSEARCH_USERNAME=datahub
ELASTICSEARCH_PASSWORD=******
ELASTICSEARCH_USE_SSL=true
ELASTICSEARCH_SSL_PROTOCOL=TLSv1.2
ELASTICSEARCH_SSL_VERIFICATION_MODE=none
ELASTICSEARCH_SSL_TRUSTSTORE_FILE=/home/datahub/cacerts
ELASTICSEARCH_SSL_TRUSTSTORE_PASSWORD=****
ELASTICSEARCH_SSL_KEYSTORE_FILE=/home/datahub/cacerts
ELASTICSEARCH_SSL_KEYSTORE_PASSWORD=***
NEO4J_HOST=<http://neo4j:7474>
NEO4J_URI=<bolt://neo4j>
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=****
DATAHUB_GMS_HOST=datahub-gms
DATAHUB_GMS_PORT=8080
DATAHUB_MAE_CONSUMER_HOST=datahub-mae-consumer
DATAHUB_MAE_CONSUMER_PORT=9091
Exception
Copy code
datahub-upgrade]$ cat ./nocode/run_upgrade.sh
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR && ../datahub-upgrade.sh -u NoCodeDataMigration -a batchSize=1000 -a batchDelayMs=100 -a dbType=POSTGRES
datahub-upgrade]$ ./nocode/run_upgrade.sh
privateregistry/datahub/datahub-upgrade:head
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.4.RELEASE)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.
ERROR 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 'ebeanAspectDao' defined in class path resource [com/linkedin/gms/factory/entity/EbeanAspectDaoFactory.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.linkedin.metadata.entity.ebean.EbeanAspectDao]: Factory method 'createInstance' threw exception; nested exception is java.lang.NullPointerException