VMware Cloud Community
chrismatte
Contributor
Contributor
Jump to solution

vSphere 6.0: "The given key was not present in the dictionary" under home-> Administration -> Licensing

I am attempting to assign a license to a ESXi server, but when I go to Home -> Administration -> Licensing, I get the following error:

An internal error occurred in the vSphere Client

Details: The given key was not present in the dictionary

This occurs with vSphere Client 6.0

Occurring on every user who has administrative access.

Any help is appreciated!

Thanks,

Chris

Tags (2)
1 Solution

Accepted Solutions
defernandez
Contributor
Contributor
Jump to solution

I had the same problem.

I solved it by entering via SSH to my Platform Service Controller server (or your vCenter server in case you have all in the same VM) and deleting logs in my /storage/log path. Then Reboot.

# df -h

Filesystem                            Size  Used Avail Use% Mounted on

/dev/sda3                              11G  2.4G  7.8G  24% /

udev                                 1004M  164K 1004M   1% /dev

tmpfs                                1004M   60K 1004M   1% /dev/shm

/dev/sda1                             128M   38M   84M  31% /boot

/dev/mapper/core_vg-core              5.0G  139M  4.6G   3% /storage/core

/dev/mapper/log_vg-log                5.0G  4.7G     0 100% /storage/log

/dev/mapper/db_vg-db                  9.9G  166M  9.2G   2% /storage/db

/dev/mapper/dblog_vg-dblog            7.8M  1.1M  6.3M  15% /storage/dblog

/dev/mapper/seat_vg-seat              7.8M  1.1M  6.3M  15% /storage/seat

/dev/mapper/netdump_vg-netdump        7.8M  1.1M  6.3M  15% /storage/netdump

/dev/mapper/autodeploy_vg-autodeploy  7.8M  1.1M  6.3M  15% /storage/autodeploy

/dev/mapper/invsvc_vg-invsvc          7.8M  1.1M  6.3M  15% /storage/invsvc

Hope it helps.

Regards.

View solution in original post

0 Kudos
5 Replies
chrismatte
Contributor
Contributor
Jump to solution

from the summary.txt file generated:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

   at System.ThrowHelper.ThrowKeyNotFoundException()

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at VpxClient.Licensing.Controls.LicensesByKeyControl.PopulateLicenseList()

   at VpxClient.Licensing.Controls.LicensesByKeyControl.SetLicenseAssignments(IDictionary`2 licenseAssignments, LicenseData[] allLicenses, LicenseEntityView licenseEntities)

   at VpxClient.Admin.LicenseMgmtView.PopulateLicensesByKey()

   at VpxClient.Admin.LicenseMgmtView.PopulateReport()

   at VpxClient.Admin.LicenseMgmtView.OnLicenseEditorLoad(IList`1 faultList)

   at VpxClient.Licensing.InMemoryModel.Impl.LicenseEditorImpl.<>c__DisplayClassb.<>c__DisplayClasse.<LoadAsync>b__a(Object )

0 Kudos
okeedokee
Enthusiast
Enthusiast
Jump to solution

I'm seeing this as well with the C# client. It shows all of the hosts as unlicensed and therefore cannot vMotion, etc.

The web client shows everything licensed as it should.

Thanks

0 Kudos
defernandez
Contributor
Contributor
Jump to solution

I had the same problem.

I solved it by entering via SSH to my Platform Service Controller server (or your vCenter server in case you have all in the same VM) and deleting logs in my /storage/log path. Then Reboot.

# df -h

Filesystem                            Size  Used Avail Use% Mounted on

/dev/sda3                              11G  2.4G  7.8G  24% /

udev                                 1004M  164K 1004M   1% /dev

tmpfs                                1004M   60K 1004M   1% /dev/shm

/dev/sda1                             128M   38M   84M  31% /boot

/dev/mapper/core_vg-core              5.0G  139M  4.6G   3% /storage/core

/dev/mapper/log_vg-log                5.0G  4.7G     0 100% /storage/log

/dev/mapper/db_vg-db                  9.9G  166M  9.2G   2% /storage/db

/dev/mapper/dblog_vg-dblog            7.8M  1.1M  6.3M  15% /storage/dblog

/dev/mapper/seat_vg-seat              7.8M  1.1M  6.3M  15% /storage/seat

/dev/mapper/netdump_vg-netdump        7.8M  1.1M  6.3M  15% /storage/netdump

/dev/mapper/autodeploy_vg-autodeploy  7.8M  1.1M  6.3M  15% /storage/autodeploy

/dev/mapper/invsvc_vg-invsvc          7.8M  1.1M  6.3M  15% /storage/invsvc

Hope it helps.

Regards.

0 Kudos
zilgs
Enthusiast
Enthusiast
Jump to solution

Hello defernandez

I had the same issue and solved it by restarting the vCenter.

Best regards, 

titi2404
Contributor
Contributor
Jump to solution

Hi,

I confirm also , restarting the esxi 6 i didn't get this issue.

thanks

best regards

Thierry

0 Kudos