121 views

Unable to upgrade MID server version with error "Unable to refresh packages"

Issue


The MID server is unable to perform an auto-upgrade due to the following error:

StartupSequencer SEVERE *** ERROR *** Unable to refresh packages. Unable to find version when calling `<JRE bin folder path>/java -version`. Received: xxxx version "xxxxx" 

For example:

StartupSequencer SEVERE *** ERROR *** Unable to refresh packages. Unable to find version when calling `/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x86_64/jre/bin/java -version`. Received: openjdk version "1.8.0_71"

Solution


The root cause of the issue is that the external JRE no longer valid. You can either use the JRE shipped with the MID server or specify the correct external JRE.

By default, the MID server uses the JRE shipped with the base system (located at <MID-Server-install-path>/jre). However, you can specify an external JRE to use via the wrapper-override.conf (<MID-Server-install-path>/conf).

For example:

wrapper.java.command=/usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java

To resolve the issue, comment out the section to force the MID server to use the base system JRE.

For example:

# wrapper.java.command=/usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java

Article Information

Last Updated:2017-09-12 02:54:47
Published:2017-09-12