EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB485488: Platform Analytics Consumer failed to start after upgrade to MicroStrategy 2021 Update 5.1 in Linux


Danfeng Zhan

Principal Product Specialist • Strategy


The article narrates Platform Analytics Consumer failed to start in MicroStrategy 2021 Update 5.1 in Linux due to missing columns in lu_metadata table. A solution and workaround are available in current release.

Symptom


After upgrade to Strategy 2021 Update 5.1, platform analytics consumer failed to start. Below error could be found in platform-analytics-consumer.err. 

2022-05-04` 06:20:41,056 ERROR PlatformAnalyticsConsumer:210 - Fatal Exception:com.Strategy.pa.common.exception.PALoadCacheException: Error while loading data from LuMetadata to Redis.        at com.Strategy.pa.persistence.dao.impl.LuMetadataDaoImpl.loadData(LuMetadataDaoImpl.java:106) ~[platform-analytics-consumer.jar:?]        at com.Strategy.pa.kafka.consumer.main.PlatformAnalyticsConsumer.loadData(PlatformAnalyticsConsumer.java:372) ~[platform-analytics-consumer.jar:…        at com.Strategy.pa.persistence.dao.impl.LuMetadataDaoImpl.loadData(LuMetadataDaoImpl.java:100) ~[platform-analytics-consumer.jar:?]        ... 4 moreCaused by: org.postgresql.util.PSQLException: ERROR: column lumetadata0_.hashed_metadata_connection_string does not exist

Refer to Knowledge Base article for a similar issue: 
KB484369: The error, "missing column [metadata_db_type] in table [platform_analytics_wh.platform_analytics_wh.lu_metadata]" appears after upgrading to MicroStrategy 2020 Update 2
 

Cause


When the Platform Analytics Consumer is upgraded without also upgrading the Platform Analytics Repository, the components are out of sync.  The columns:

hashed_metadata_connection_string
and
raw_metadata_connection_string
is missing in lu_metadata table as shown below. 

ka04W000001IvQuQAK_0EM4W000004ZtZT.jpeg

 

Action


Upgrade Platform Analytics repository from configuration wizard by following steps below: 
https://www2.microstrategy.com/producthelp/Current/UpgradeGuide/en-us/Content/upgrade_win_in_place_pa_repo.htm
 

Workaround

  1. Manually add missing columns in lu_metadata table:
    ALTER TABLE lu_metadata ADD COLUMN hashed_metadata_connection_string VARCHAR;
    ALTER TABLE lu_metadata ADD COLUMN  raw_metadata_connection_string VARCHAR;

Refer to pgsql official document for more details: 
https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-add-column/ 
 

  1. Restart Platform analytics consumer, and the lu_metadata table will be populated correctly as shown below: 
ka04W000001IvQuQAK_0EM4W000004ZtZY.jpeg

 


Comment

0 comments

Details

Knowledge Article

Published:

May 16, 2022

Last Updated:

May 16, 2022