Reply to Message

View discussion in a popup

Replying to:
Oizo
VMware Employee
VMware Employee

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 :

Hope this helps!