hzoang
Contributor
Contributor

Failed to update vCenter Server 6.7

Jump to solution

Due to this security advisory, I'm trying to upgrade from vCenter Server Update 2a (6.7.0.31000) to vCenter Server Update 3n (6.7.0.48000).
I'm following the steps listed in the release notes, but it failed.
I have tried to reset root password, but it still the same.
Anyone know what's wrong and how i can fix this?

I have attached the full software-packages.log.

 

output snippets

 

[2021-06-08T12:00:21.159] : Validating software update payload
 [2021-06-08T12:00:21.159] : Validation successful
 [2021-06-08 12:00:21,931] : Copying software packages  [2021-06-08T12:00:21.159] : ISO mounted successfully
220/220
 [2021-06-08T12:00:39.159] : ISO unmounted successfully
 [2021-06-08 12:00:39,623] : Running test transaction ....
 [2021-06-08 12:00:41,643] : Running pre-install script.....
 [2021-06-08 12:01:39,766] : Upgrading software packages ....
 [2021-06-08T12:06:18.159] : Package update failed
 [2021-06-08 12:06:18,307] : Starting all services ....
 [2021-06-08T12:09:20.159] : Installation process failed
 [2021-06-08T12:09:20.159] : Command Failed

 

 

software-packages.log error message

error=warning: /etc/passwd created as /etc/passwd.rpmnew
warning: /etc/login.defs created as /etc/login.defs.rpmnew
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python3.5/logging/handlers.py", line 187, in shouldRollover
    msg = "%s\n" % self.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 836, in format
    return fmt.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 576, in format
    s = self.formatMessage(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 545, in formatMessage
    return self._style.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 389, in format
    return self._fmt % record.__dict__
KeyError: 'hreadName'
Call stack:
  File "/usr/lib/vmware-vpx/py/generateCatalog.py", line 81, in <module>
    generate_catalog_zip()
  File "/usr/lib/vmware-vpx/py/generateCatalog.py", line 46, in generate_catalog_zip
    logger.info('Initiating catalog.zip creation process')
Message: 'Initiating catalog.zip creation process'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python3.5/logging/handlers.py", line 187, in shouldRollover
    msg = "%s\n" % self.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 836, in format
    return fmt.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 576, in format
    s = self.formatMessage(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 545, in formatMessage
    return self._style.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 389, in format
    return self._fmt % record.__dict__
KeyError: 'hreadName'
Call stack:
  File "/usr/lib/vmware-vpx/py/generateCatalog.py", line 81, in <module>
    generate_catalog_zip()
  File "/usr/lib/vmware-vpx/py/generateCatalog.py", line 76, in generate_catalog_zip
    logger.info('Successfully generated the catalog.zip file')
Message: 'Successfully generated the catalog.zip file'
Arguments: ()
warning: group nobody does not exist - using root
warning: /etc/sudoers created as /etc/sudoers.rpmnew
warning: /opt/vmware/etc/lighttpd/lighttpd.conf saved as /opt/vmware/etc/lighttpd/lighttpd.conf.rpmsave
Warning: vami-lighttp.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for vami-lighttp.service failed because the control process exited with error code. See "systemctl status vami-lighttp.service" and "journalctl -xe" for details.
/var/tmp/rpm-tmp.w0dGvs: line 205: syntax error near unexpected token `!'
/var/tmp/rpm-tmp.w0dGvs: line 205: `if [ (! -f /usr/lib/systemd/system/vami-lighttp.service) -a \'
warning: %post(applmgmt-6.7.0-18010531.x86_64) scriptlet failed, exit status 2
warning: /etc/vmware-vsan-health/vsanhealth.properties saved as /etc/vmware-vsan-health/vsanhealth.properties.rpmsave
warning: /etc/gnutls/default-priorities created as /etc/gnutls/default-priorities.rpmnew
warning: /etc/localtime created as /etc/localtime.rpmnew
warning: /etc/rsyslog.conf created as /etc/rsyslog.conf.rpmnew
warning: /etc/audit/auditd.conf created as /etc/audit/auditd.conf.rpmnew
warning: /etc/cloud/cloud.cfg created as /etc/cloud/cloud.cfg.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/extension.xml created as /usr/lib/vmware-updatemgr/bin/extension.xml.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/jetty-vum-ssl.xml created as /usr/lib/vmware-updatemgr/bin/jetty-vum-ssl.xml.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/ssl/jetty.crt created as /usr/lib/vmware-updatemgr/bin/ssl/jetty.crt.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/ssl/jetty.key created as /usr/lib/vmware-updatemgr/bin/ssl/jetty.key.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/ssl/rui.crt created as /usr/lib/vmware-updatemgr/bin/ssl/rui.crt.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/ssl/rui.key created as /usr/lib/vmware-updatemgr/bin/ssl/rui.key.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/ssl/vmware-vum.keystore created as /usr/lib/vmware-updatemgr/bin/ssl/vmware-vum.keystore.rpmnew
warning: /usr/lib/vmware-updatemgr/bin/vci-integrity.xml created as /usr/lib/vmware-updatemgr/bin/vci-integrity.xml.rpmnew
warning: /etc/mail/sendmail.cf created as /etc/mail/sendmail.cf.rpmnew
error: unpacking of archive failed on file /usr/lib/vmware-eam/web/webapps/eam/error.jsp: cpio: rename
error: vmware-eam-6.7.0-18010531.x86_64: install failed
error: unpacking of archive failed on file /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp: cpio: rename
error: VMware-perfcharts-6.7.0-18010531.x86_64: install failed
warning: /etc/vmware-imagebuilder/imagebuilder.properties created as /etc/vmware-imagebuilder/imagebuilder.properties.rpmnew
/var/tmp/rpm-tmp.u3Z93Y: line 2: fg: no job control
warning: /etc/vmware-rhttpproxy/config.xml created as /etc/vmware-rhttpproxy/config.xml.rpmnew
warning: /etc/dnsmasq.conf created as /etc/dnsmasq.conf.rpmnew
ChmodFiles: /usr/sbin/traceroute does not exist
ChmodFiles: /etc/syslog-ng/syslog-ng.conf does not exist
ChmodFiles: /var/crash does not exist
useradd: user 'cm' already exists
warning: /usr/lib/vmware-vpx/sps/resources/static-content/sms/SmsMessageCatalog.zip created as /usr/lib/vmware-vpx/sps/resources/static-content/sms/SmsMessageCatalog.zip.rpmnew
mkdir: cannot create directory ‘/etc/vmware/service-state/sps’: File exists
warning: /usr/lib/vmware-topologysvc/config/topologysvc-ls-spec.properties created as /usr/lib/vmware-topologysvc/config/topologysvc-ls-spec.properties.rpmnew
warning: /usr/lib/vmware-vpxd-svcs/lib/server/config/log4j.properties created as /usr/lib/vmware-vpxd-svcs/lib/server/config/log4j.properties.rpmnew
warning: /usr/lib/vmware-vsphere-client/server/configuration/config.ini created as /usr/lib/vmware-vsphere-client/server/configuration/config.ini.rpmnew
warning: /usr/lib/vmware-vsphere-client/server/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info created as /usr/lib/vmware-vsphere-client/server/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info.rpmnew
warning: /usr/lib/vmware-vsphere-client/server/configuration/org.eclipse.virgo.kernel.userregion.properties created as /usr/lib/vmware-vsphere-client/server/configuration/org.eclipse.virgo.kernel.userregion.properties.rpmnew
warning: /usr/lib/vmware-vsphere-client/server/configuration/tomcat-server.xml created as /usr/lib/vmware-vsphere-client/server/configuration/tomcat-server.xml.rpmnew
warning: /usr/lib/vmware-vsphere-client/server/wrapper/conf/wrapper.conf created as /usr/lib/vmware-vsphere-client/server/wrapper/conf/wrapper.conf.rpmnew
warning: /etc/vmware/vsphere-ui/webclient.properties created as /etc/vmware/vsphere-ui/webclient.properties.rpmnew
warning: /usr/lib/vmware-vsphere-ui/server/conf/catalina.properties saved as /usr/lib/vmware-vsphere-ui/server/conf/catalina.properties.rpmsave
warning: /usr/lib/vmware-vsphere-ui/server/conf/server.xml saved as /usr/lib/vmware-vsphere-ui/server/conf/server.xml.rpmsave
error: VMware-perfcharts-6.7.0-13643870.x86_64: erase skipped
/var/tmp/rpm-tmp.PErXu9: line 1: [1: command not found
error: vmware-eam-6.7.0-13643870.x86_64: erase skipped
/var/tmp/rpm-tmp.uT7Qvq: line 1: [: missing `]'
/var/tmp/rpm-tmp.SjpcZN: line 9: /etc/init.d/snmpd: No such file or directory
error reading information on service snmpd: No such file or directory
warning: file /var/run/lock: remove failed: No such file or directory

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
marcschulz001
Contributor
Contributor
error: unpacking of archive failed on file /usr/lib/vmware-eam/web/webapps/eam/error.jsp: cpio: rename
/usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp: cpio: rename

 

There is something at some point that made the upgrader unable to change these two files. Check to see if they are immutable using lsattr <file>

chattr -i /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp
chattr -i /usr/lib/vmware-eam/web/webapps/eam/error.jsp

If it still doesn't work you can remove these files

rm -f /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp

rm -f /usr/lib/vmware-eam/web/webapps/eam/error.jsp

it will replace the files when you run the updater and the rpm package is installed. 

Make sure you take a backup and snapshot before performing any actions. 

View solution in original post

1 Reply
marcschulz001
Contributor
Contributor
error: unpacking of archive failed on file /usr/lib/vmware-eam/web/webapps/eam/error.jsp: cpio: rename
/usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp: cpio: rename

 

There is something at some point that made the upgrader unable to change these two files. Check to see if they are immutable using lsattr <file>

chattr -i /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp
chattr -i /usr/lib/vmware-eam/web/webapps/eam/error.jsp

If it still doesn't work you can remove these files

rm -f /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp

rm -f /usr/lib/vmware-eam/web/webapps/eam/error.jsp

it will replace the files when you run the updater and the rpm package is installed. 

Make sure you take a backup and snapshot before performing any actions. 

View solution in original post