Unable to start the OSE service after OSE upgrade
search cancel

Unable to start the OSE service after OSE upgrade

book

Article ID: 382310

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When start the OSE service after upgrading or for new install.
  • OSE log, we see the keeper passed through the quick validation and prepared to start OSE java service but the java service did not start.
2024/10/14 12:11:14 system.go:183: [StartAPI] OSE start parameters: --logging.level.com.vmware.voss=DEBUG --logging.level.org.apache.hc.client5.http=DEBUG --logging.level.org.apache.hc.client5.http.wire=ERROR --oss.api.log_message=true
2024/10/14 12:11:14 system.go:187: [StartAPI] OSE Java Options:
2024/10/14 12:11:14 system.go:194: [sh -c java -Dlog4j2.formatMsgNoLookups=true  -jar /opt/vmware/voss/voss.jar --spring.profiles.active=prod --logging.level.com.vmware.voss=DEBUG --logging.level.org.apache.hc.client5.http=DEBUG --logging.level.org.apache.hc.client5.http.wire=ERROR --oss.api.log_message=true]
2024/10/14 12:11:14 autostart.go:198: [checkAndStart] Started OSE middleware successfully!
  • We get below error when we ran this :  java -Dlog4j2.formatMsgNoLookups=true  -jar /opt/vmware/voss/voss.jar --spring.profiles.active=prod --logging.level.com.vmware.voss=DEBUG --logging.level.org.apache.hc.client5.http=DEBUG --logging.level.org.apache.hc.client5.http.wire=ERROR --oss.api.log_message=true 
Error: LinkageError occurred while loading main class org.springframework.boot.loader.launch.JarLauncher
java.lang.UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0



Environment

  • VMware Cloud Director 10.x
  • Object Storage Extension 3..x

Cause

  • In the OSE server logs, the keeper passed through the quick validation and prepared to start OSE java service but the java service did not start.
  • Java is not in the latest version.

 

Resolution

  1. In OSE server, check if the directory /opt/vmware/voss/log does contains OSE java log files.
  2. The rpm requires java on provider version 
  3. To check the java version, run this in OSE server : java -version
  4. Upgrade the java to the supported version and restart the service. Refer, Requirements for deploying VMware Cloud Director Object Storage Extension to a Linux machine
  5. Please refer this page to download the java17: Java SE 17 Archive Downloads