VMware vSphere

 View Only
Expand all | Collapse all

CLI check for updates failing since 8.0 U2

  • 1.  CLI check for updates failing since 8.0 U2

    Posted Oct 25, 2023 06:54 PM

    Hi all,

    I used to use these commands to check for available updates:

    [root@esxi:~] esxcli network firewall ruleset set -e true -r httpClient
    [root@esxi:~] esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

    Since I updated to U2 the result instead of a list of profiles is:

     [MemoryError]
     Please refer to the log file for more details.

     Which log is this message referring to? I could not find anything by just searching in /var/log/*. The system is not short on neither RAM nor storage.

    Any hints?

    Thanks,
    Patrick



  • 2.  RE: CLI check for updates failing since 8.0 U2

    Posted Oct 28, 2023 11:52 PM

    I am seeing the exact same issue. Does anybody have a solution?



  • 3.  RE: CLI check for updates failing since 8.0 U2

    Posted Dec 03, 2023 09:32 PM

    same here



  • 4.  RE: CLI check for updates failing since 8.0 U2

    Posted Dec 12, 2023 07:57 AM

    I have the same issue, so i will follow for a solution



  • 5.  RE: CLI check for updates failing since 8.0 U2

    Posted Dec 17, 2023 05:36 PM

    In the /var/log/esxupdate.log file I see:

    2023-12-17T17:27:32Z In(14) esxupdate[529591]: Error parsing https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vmw-ESXi-8.0.0-metadata.zip:
    2023-12-17T17:27:32Z In(14) esxupdate[529591]: Successfully executed cmd: localcli --plugin-dir /usr/lib/vmware/esxcli/int/ networkinternal firewall firewallRuleset set --ruleset-id esxupdate --service-name esxupdate --enabled false
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: Traceback (most recent call last):
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/usr/lib/vmware/esxcli-software", line 1135, in <module>
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: main()
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/usr/lib/vmware/esxcli-software", line 1122, in main
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: ret = CMDTABLE[command](options)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/usr/lib/vmware/esxcli-software", line 601, in SourcesProfileListCmd
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: dc = Transaction.Transaction.ParseDepots(depoturls)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 154, in ParseDepots
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: dc.ConnectDepots(depotUrls, ignoreerror=False)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/DepotCollection.py", line 339, in ConnectDepots
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: return self._connectDepots(depotUrls, timeout,
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/DepotCollection.py", line 437, in _connectDepots
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: metanode = self.ParseMetadata(metaurl, metaFile,
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/DepotCollection.py", line 1004, in ParseMetadata
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: self._buildCollections(scanvibs=False)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/DepotCollection.py", line 1612, in _buildCollections
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: collection += self._getByChannelId(channel, inventoryName)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/ConfigSchema.py", line 274, in __iadd__
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: self.AddConfigSchema(cs)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/ConfigSchema.py", line 291, in AddConfigSchema
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: cscopy = ConfigSchema(cs._filteredSchemaStr)
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/site-packages/vmware/esximage/ConfigSchema.py", line 205, in __init__
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: self._filteredSchemaStr = json.dumps(
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/json/__init__.py", line 231, in dumps
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/json/encoder.py", line 199, in encode
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: File "/lib64/python3.8/json/encoder.py", line 257, in iterencode
    2023-12-17T17:27:32Z Er(11) esxupdate[529591]: MemoryError

    It's confusing because on the one hand it looks like a metadata issue with the vmw-ESXi-8.0.0-metadata.zip file but the final message suggests some sort of memory error. There is plenty of free RAM on the host so I don't think it's an out of memory condition. Maybe the meta data is corrupted at the depot? I've still not found a solution to this problem.



  • 6.  RE: CLI check for updates failing since 8.0 U2

    Posted Feb 07, 2024 04:30 PM

    Anybody?



  • 7.  RE: CLI check for updates failing since 8.0 U2

    Posted Feb 07, 2024 04:33 PM
    • No answer yet on my post. And the issue is still not solved.
    •  


  • 8.  RE: CLI check for updates failing since 8.0 U2

    Broadcom Employee
    Posted Feb 08, 2024 06:11 AM

    Suggested workaround is to download the required offline depot on host and use it for esxcli profile list.



  • 9.  RE: CLI check for updates failing since 8.0 U2



  • 10.  RE: CLI check for updates failing since 8.0 U2

    Posted Mar 18, 2024 11:04 PM

     wrote:

    Hi all,

    I used to use these commands to check for available updates:

     

    [root@esxi:~] esxcli network firewall ruleset set -e true -r httpClient
    [root@esxi:~] esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

     


    When I attempt these two commands on ESXi 8.0.2 I receive this error:

     

    [root@esxi-2:~] esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
    Got no data from process.
    Command "LANG=en_US.UTF-8 /usr/lib/vmware/esxcli-software sources.profile.list  -d "https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml" "
    еxited with error code: 1

     

    And I found this in /var/log/esxupdate.log:

     

    2024-03-18T22:54:46Z In(14) esxupdate[8420759]: Error parsing https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vmw-ESXi-8.0.0-metadata.zip: 

     

    Ideas? Suggestions?

    TIA,
    Eric Pretorious
    Reno, Nevada

     



  • 11.  RE: CLI check for updates failing since 8.0 U2

    Posted Mar 19, 2024 12:14 AM

    Refer to the post directly above yours. Things should work if you follow William's instructions.

    I am not using ESXi anymore for obvious reasons, so thanks to , but ... *shrug* ...



  • 12.  RE: CLI check for updates failing since 8.0 U2

    Posted Mar 19, 2024 12:44 AM

     wrote:

    Refer to the post directly above yours. Things should work if you follow William's instructions.

    Thanks,  - That worked perfectly!

    Eric P.



  • 13.  RE: CLI check for updates failing since 8.0 U2

    Posted Mar 19, 2024 07:48 AM

    thx that did the trick , everything works fine now .



  • 14.  RE: CLI check for updates failing since 8.0 U2

    Posted Mar 19, 2024 07:56 AM

    We're fortunate to have someone like you who is eager to share their knowledge. Thank you!