most-nightfall-36645
08/04/2022, 9:59 AMv0.8.42
from v0.8.41
.
We have deployed datahub using the k8s helm chart.
During the upgrade all jobs succeeed and the front-end pod is replaced.
However the gms pod is failing to start with following error:
ERROR: No such classes directory file:///etc/datahub/plugins/auth/resources
Usage: java [-Djetty.home=dir] -jar jetty-runner.jar [--help|--version] [ server opts] [[ context opts] context ...]
Server opts:
--version - display version and exit
--log file - request log filename (with optional 'yyyy_mm_dd' wildcard
--out file - info/warn/debug log filename (with optional 'yyyy_mm_dd' wildcard
--host name|ip - interface to listen on (default is all interfaces)
--port n - port to listen on (default 8080)
--stop-port n - port to listen for stop command (or -DSTOP.PORT=n)
--stop-key n - security string for stop command (required if --stop-port is present) (or -DSTOP.KEY=n)
[--jar file]*n - each tuple specifies an extra jar to be added to the classloader
[--lib dir]*n - each tuple specifies an extra directory of jars to be added to the classloader
[--classes dir]*n - each tuple specifies an extra directory of classes to be added to the classloader
--stats [unsecure|realm.properties] - enable stats gathering servlet context
[--config file]*n - each tuple specifies the name of a jetty xml config file to apply (in the order defined)
Context opts:
[[--path /path] context]*n - WAR file, web app dir or context xml file, optionally with a context path
2022/08/04 09:53:25 Command exited with error: exit status 1
In short it seems like the jar is missing some classes?
I checked out the pod manifests and we are using the linkedin/datahub-gms:v0.8.42
container image.incalculable-ocean-74010
08/04/2022, 10:32 AMsquare-activity-64562
08/04/2022, 10:32 AMincalculable-ocean-74010
08/04/2022, 10:33 AMincalculable-ocean-74010
08/04/2022, 10:33 AMmost-nightfall-36645
08/04/2022, 10:34 AMincalculable-ocean-74010
08/04/2022, 2:37 PMmost-nightfall-36645
08/04/2022, 3:28 PMlinkedin/datahub-gms:2eef7e4
ERROR: No such classes directory file:///etc/datahub/plugins/auth/resources
incalculable-ocean-74010
08/04/2022, 3:31 PMsquare-activity-64562
08/04/2022, 3:35 PMmost-nightfall-36645
08/04/2022, 3:40 PM% kubectl logs -n datahub datahub-datahub-gms-<omitted>
+ echo
+ grep -q ://
+ NEO4J_HOST=http://
+ [[ ! -z '' ]]
+ [[ -z '' ]]
+ ELASTICSEARCH_AUTH_HEADER='Accept: */*'
+ [[ true == true ]]
+ ELASTICSEARCH_PROTOCOL=https
+ WAIT_FOR_EBEAN=
+ [[ '' != true ]]
+ [[ '' == ebean ]]
+ [[ -z '' ]]
+ WAIT_FOR_EBEAN=' -wait tcp://<omitted> '
+ WAIT_FOR_CASSANDRA=
+ [[ '' == cassandra ]]
+ WAIT_FOR_KAFKA=
+ [[ '' != true ]]
++ echo <omitted>
++ sed 's/,/ -wait tcp:\/\//g'
+ WAIT_FOR_KAFKA=' -wait <omitted> '
+ WAIT_FOR_NEO4J=
+ [[ elasticsearch != elasticsearch ]]
+ OTEL_AGENT=
+ [[ '' == true ]]
+ PROMETHEUS_AGENT=
+ [[ '' == true ]]
+ auth_resource_dir=/etc/datahub/plugins/auth/resources
+ mkdir -p /etc/datahub/plugins/auth/resources
mkdir: cannot create directory '/etc/datahub': Permission denied
+ COMMON='
-wait tcp://<omitted> -wait tcp://<omitted> -timeout 240s java -jar /jetty-runner.jar --jar jetty-util.jar --jar jetty-jmx.jar --
classes /etc/datahub/plugins/auth/resources --config /datahub/datahub-gms/scripts/jetty.xml /datahub/datahub-gms/bin/war.war'
+ [[ '' != true ]]
+ exec dockerize -wait https://<omitted> -wait-http-header 'Accept: */*' -wait tcp://<omitted> -wait <omitted> -timeo ut 240s java -jar /jetty-runner.jar --jar jetty-util.jar --jar jetty-jmx.jar --classes /etc/datahub/plugins/auth/resources --config /datahub/datahub-gms/scripts/jetty.xml /datahub/datahub-gms/bin/war.war
2022/08/04 15:26:56 Waiting for: <omitted>
2022/08/04 15:26:56 Waiting for: <omitted>
2022/08/04 15:26:56 Waiting for: <omitted>
2022/08/04 15:26:56 Connected to <omitted>
2022/08/04 15:26:56 Connected to <omitted>
2022/08/04 15:26:56 Received 200 from <omitted>
2022-08-04 15:26:56.618:INFO::main: Logging initialized @195ms to org.eclipse.jetty.util.log.StdErrLog
WARNING: jetty-runner is deprecated.
See Jetty Documentation for startup options
<https://www.eclipse.org/jetty/documentation/>
ERROR: No such classes directory file:///etc/datahub/plugins/auth/resources
Usage: java [-Djetty.home=dir] -jar jetty-runner.jar [--help|--version] [ server opts] [[ context opts] context ...]
Server opts:
--version - display version and exit
--log file - request log filename (with optional 'yyyy_mm_dd' wildcard
--out file - info/warn/debug log filename (with optional 'yyyy_mm_dd' wildcard
--host name|ip - interface to listen on (default is all interfaces)
--port n - port to listen on (default 8080)
--stop-port n - port to listen for stop command (or -DSTOP.PORT=n)
--stop-key n - security string for stop command (required if --stop-port is present) (or -DSTOP.KEY=n)
[--jar file]*n - each tuple specifies an extra jar to be added to the classloader
[--lib dir]*n - each tuple specifies an extra directory of jars to be added to the classloader
[--classes dir]*n - each tuple specifies an extra directory of classes to be added to the classloader
--stats [unsecure|realm.properties] - enable stats gathering servlet context
[--config file]*n - each tuple specifies the name of a jetty xml config file to apply (in the order defined)
Context opts:
[[--path /path] context]*n - WAR file, web app dir or context xml file, optionally with a context path
square-activity-64562
08/04/2022, 3:41 PMmkdir: cannot create directory '/etc/datahub': Permission denied
square-activity-64562
08/04/2022, 3:41 PMsquare-activity-64562
08/04/2022, 4:56 PM4f35a6c
?incalculable-ocean-74010
08/04/2022, 5:19 PMmost-nightfall-36645
08/04/2022, 5:45 PMmost-nightfall-36645
08/04/2022, 5:55 PMincalculable-ocean-74010
08/04/2022, 11:38 PM