- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
The problem I had was coming from parsing an XML file, for the STS component (vCenter Single Sign-On Security Token Service (STS), a Web service that issues, validates, and renews security tokens).
From the back trace message, which appears at the end of the failing installation :
Traceback (most recent call last):
File "C:\Program Files\VMware\vCenter Server\firstboot\vmidentity-firstboot.py", line 202, in main
vmidentityFB.boot()
File "C:\Program Files\VMware\vCenter Server\VMware Identity Services\vmidentity_firstboot_core.py", line 181, in boot
self.configureSTS(self.__stsRetryCount, self.__stsRetryInterval)
File "C:\Program Files\VMware\vCenter Server\VMware Identity Services\vmidentity_firstboot_core.py", line 1145, in configureSTS
self.copyCertForTC()
File "C:\Program Files\VMware\vCenter Server\VMware Identity Services\vmidentity_firstboot_core.py", line 810, in copyCertForTC
self.configureTCSSLProtocol(self.__tc_sts_server_xml_path, self.__ecdheFlag)
File "C:\Program Files\VMware\vCenter Server\VMware Identity Services\vmidentity_firstboot_core.py", line 680, in configureTCSSLProtocol
tree = ET.parse(file_path)
File "C:\Program Files\VMware\vCenter Server\python\lib\xml\etree\ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "C:\Program Files\VMware\vCenter Server\python\lib\xml\etree\ElementTree.py", line 656, in parse
parser.feed(data)
File "C:\Program Files\VMware\vCenter Server\python\lib\xml\etree\ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "C:\Program Files\VMware\vCenter Server\python\lib\xml\etree\ElementTree.py", line 1506, in _raiseerror
raise err
ParseError: junk after document element: line 66, column 0
We can see that it fails parsing the "server.xml" file, located at :
C:\ProgramData\VMware\CIS\runtime\VMwareSTS\conf
This SERVER.XML file in my environment, was containing multiple duplication of the exact same data.
In that same location, there was another file called SERVEROUT.XML.
Here is what I did :
- made a backup copy of this file, and edited it. I only kept the 65 first lines, and delete ALL the others below. The last line of the NEW file sould be "< /Server >".
- renamed the serverout.xml file to serverout.original.xml
Then, Upgrade went well.
Before reaching this, I checked all those KBs :
- https://kb.vmware.com/kb/7960893 Moving the VMware vCenter Server 4.x/5.x/6.x SQL database (7960893)
- https://kb.vmware.com/kb/1003928 vCenter Server installation fails with ODBC and DSN errors (1003928)
- https://kb.vmware.com/kb/1006482 Changing the vCenter Server database user ID and password (1006482)
- https://kb.vmware.com/kb/2105554 Upgrading or installing vCenter Server 6.0 with an external SQL Server database fails (2105554)
- https://kb.vmware.com/kb/2114754 "The user associated with the DSN has insufficient privileges" when upgrading from vCenter Server 5.x to 6.x (2114754)
- https://kb.vmware.com/kb/2119876 Upgrading VMware vCenter Server Appliance from 5.5 to 6.0 fails with the error: File /usr/lib/vmidentity-firstboot.py (2119876)
- https://kb.vmware.com/kb/2146225 How to unlock and reset SSO administrator password in vSphere 5.5 (2146225)
- https://kb.vmware.com/kb/2144402 Deploying a Platform Services Controller in an existing Single Sign-On site fails (2144402)
- https://kb.vmware.com/kb/2119768 Error code 1603 when upgrading to vCenter Server 6.0 (2119768)
- https://kb.vmware.com/kb/2127284 Troubleshooting 1603 errors when installing\upgrading vCenter Server 6.0 (2127284)
Hope this helps!