Quantcast
Channel: VMware Communities: Message List - vSphere Upgrade & Install
Viewing all articles
Browse latest Browse all 11859

Command-line vCenter Upgrade fails with incorrect path to VCDatabaseUpgrade.exe

$
0
0

I have been working on a powershell script to upgrade vCenter servers (sample below). I can upgrade the SSO and Inventory Service with no problems, but vCenter fails on the database upgrade step.

 

Error:

 

vcenterupgradeerror.png

 

VC details:

Windows Server 2012 R2 Standard

8GB RAM

4 x Intel i7 960

vCenter 5.5 build 1378901 installed (yes, I copied the OCSetup.exe file and installed the ADLDS feature prior to installation).

Bundled SQL

 

Script I executed below:

 




Write-Host "Upgrading vCenter"

$vCPath = "$InstallSource\vCenter-Server\VMware-vcserver.exe"

$processInfo = New-Object System.Diagnostics.ProcessStartInfo $vCPath

$processInfo.arguments = "/S /v`" /qr DB_EXISTING_VERSION=550 DB_USERNAME=$AdminUser DB_PASSWORD=$AdminPass LAUNCHWIZARD=1 VCS_DB_BACKUP=1 SSO_ADMIN_USER=$AdminUser SSO_ADMIN_PASSWORD=$AdminPass /L*v $env:temp\vmvcsvr.log`""

$processEXE = New-Object System.Diagnostics.Process

$processEXE.StartInfo = $processInfo

$processEXE.Start() | Out-Null

$processEXE.WaitforExit()



if ($processEXE.ExitCode -ne 0) {

Write-Host "The error code is:" $processEXE.ExitCode "Exiting!"

exit

}

 

I've also included the vminst.log file.

 

Both the log file and the screen capture show the incorrect file path (missing a '\') character in the path. Any thoughts?


Viewing all articles
Browse latest Browse all 11859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>