rohityadavcloud opened a new issue #6060:
URL: https://github.com/apache/cloudstack/issues/6060


   The mvn deploydb command fails with:
   
   ```
   ========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
   [WARNING]
   java.lang.reflect.InvocationTargetException
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:566)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
       at java.lang.Thread.run (Thread.java:829)
   Caused by: com.cloud.utils.exception.CloudRuntimeException: Failed to parse 
systemVM template metadata file: 
./engine/schema/dist/systemvm-templates/metadata.ini
       at com.cloud.upgrade.SystemVmTemplateRegistration.parseMetadataFile 
(SystemVmTemplateRegistration.java:705)
       at com.cloud.upgrade.DatabaseUpgradeChecker.check 
(DatabaseUpgradeChecker.java:372)
       at com.cloud.upgrade.DatabaseCreator.main (DatabaseCreator.java:219)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:566)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
       at java.lang.Thread.run (Thread.java:829)
   Caused by: java.lang.NullPointerException
       at com.cloud.upgrade.SystemVmTemplateRegistration.parseMetadataFile 
(SystemVmTemplateRegistration.java:695)
       at com.cloud.upgrade.DatabaseUpgradeChecker.check 
(DatabaseUpgradeChecker.java:372)
       at com.cloud.upgrade.DatabaseCreator.main (DatabaseCreator.java:219)
   ```
   Further, the content of the metadata.ini is:
   ```
    cat ./engine/schema/dist/systemvm-templates/metadata.ini
   
   [default]
   version = 4.16.1.0
   
   [0]
   templatename = systemvm-0-4.16.1
   checksum =
   downloadurl = 
https://download.cloudstack.org/systemvm/4.16/systemvmtemplate-4.16.1-ovm.raw.bz2
   filename = systemvmtemplate-4.16.1-ovm.raw.bz2
   ```
   
   Starting jetty fails with:
   ```
   ERROR [c.c.u.SystemVmTemplateRegistration] (main:null) (logid:) Failed to 
parse systemVM template metadata file: 
./engine/schema/dist/systemvm-templates/metadata.ini
   java.lang.NullPointerException
        at 
com.cloud.upgrade.SystemVmTemplateRegistration.parseMetadataFile(SystemVmTemplateRegistration.java:695)
        at 
com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:372)
        at 
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.checkIntegrity(CloudStackExtendedLifeCycle.java:64)
        at 
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:54)
   ```
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Building/running mgmt server on osx
   ~~~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to