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

Getting "Unable to establish connection to the DB" during upgrading process


Yingjia Cao

Cloud Support Engineer II • MicroStrategy


SUMMARY: 

While trying to do an in-place upgrade of MSTR 2021, in some cases user would encounter "Unable to establish connection to the DB" in the Strategy Repository step even if enter the right credential. Please check if the Strategy Repository service is enabled and running on the I-server machine. 
 

ka04W000001MKurQAG_0EM4W000008KHNY.png

 
 
 

DESCRIPTION: 

The below error shows up in install.log:  


[Z:\InstallMaster\Win64\Objects\MASilent\MASilent\Script Files\MASilent.rul]
[l:122][782078ms][I] Matching INI value HideDialog from section
RepositoryUpgradeConfig @ file: 

[Z:\InstallMaster\Win64\Objects\MASilent\MASilent\Script 
Files\MASilent.rul][Sil_MatchINIValue][I:131][782078ms][F] 
Leaving function. 

[Z:\InstallMaster\Win64\Objects\MASilent\MASilent\Script 
Files\MASilent.rul][Sil_MatchINIValue][I:131][782078ms][F] 
entering function. 

 
 
Please be noted the upgrade step introduced above is not related to PA repository upgrade, so it doesn’t matter where PA repository is located, user doesn’t need to map iserver with PA repository server in pg_hba.conf file. As long as localhost entry exist in pg_hba.conf file in Iserver, it should be fine. 
 

host all mstr 127.0.0.1/32 password 

host all mstr ::1/128 password 

 
 
 

ROOT CAUSE:  

The cause of the issue that "Unable to establish connection to the DB" appears during an upgrade is that the upgrade repository step during the upgrade process in the install wizard is by design upgrading the repository in Iserver, that is also why DB Login Username is a static mstr. So if the repository in Iserver is in disabled status, the upgrade process would fail. 
 

SOLUTION: 


 
Enable Strategy Repository service and make sure it’s in running status when doing the upgrade. After the upgrade is completed, the Strategy Repository service can be disabled again if not in use. 
 

ka04W000001MKurQAG_0EM4W000008KHNZ.png

 


Comment

0 comments

Details

Knowledge Article

Published:

June 26, 2023

Last Updated:

June 26, 2023