Content Pack Installation Error

  • KM03630997
  • 27-Mar-2020
  • 27-Mar-2020

Summary

Content Pack Installation Error

Question

In the event one may get the following errors, while installing a content pack. 

“content pack cannot be installed”  

A. Error.log 

…  ERROR  [UCMDB - global framework scheduler] ContentFileUtils.java:81) - Content pack zip file 

C:\hp\UCMDB\UCMDBServer\bin\..\content\content_packs\UD Content Pack # V##..## was not found 

…  ERROR  [UCMDB - global framework scheduler] ContentFileUtils.java:635) - Failed uploading CP version [] to the DB 

java.lang.NullPointerException 

  

MAM.packaging.log 

…  INFO   [UCMDB - global framework scheduler] - Found CP version [] on the file system that does not exist in the DB - 

uploading..... 

…  ERROR  [UCMDB - global framework scheduler] - Content pack zip file C:\hp\UCMDB\UCMDBServer\bin\..\content\content_packs\UD 

Content Pack xxV xx.00 was not found 

…  ERROR  [UCMDB - global framework scheduler] - 

Failed uploading CP version [] to the DB 

java.lang.NullPointerException 

 

Answer

 It is suggest to perform the following steps: 

 Stop the UCMDB server. 

 Delete all the files except CP_##.zip. (previous CP #) 

 Delete the same from DB so content_packs table will have only CP_##.zip file. 

 Unzip the CP## so you will copy in CP##.zip which must have a directory structure of a valid package (right in the zip file you will see version.dat file). 

 Start UCMDB. 

 Monitor mam.packaging.log for any error messages 

  

Please note, before uploading something from content\content_packs directory to the Database, one should check (from the code): 

 If its a zip file 

 If it starts with CP (all Content Packs have a name like CPxyz.zip 

 If the zip has inside it a file named version.dat If that version from version.dat is deployed, smaller than the current CP version