Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"Reason: No reason given" user permission added to VC is removed automatically upon restarting vpxd service after upgrading to VC 6.7. (59715)

Last Updated: 2/27/2024Categories: TroubleshootingTotal Views: 16314Language:
Chinese (Simplified)JapaneseEnglish

9 like this article

Subscribe to get an email
newsletter with new updates

9 people found this helpful Please provide article feedback:

Symptoms

User permission added are removed automatically from vCenter server upon service restart with "Reason: No reason given" after upgrading to vCenter Server 6.7.

In /var/log/vmware/vpxd/vpxd.log or %ALLUSERSPROFILE%\VMWare\vCenterServer\logs\vmware-vpx\vpxd.log, you see entries similar to:

2018-07-10T14:54:03.860-05:00 error vpxd[04162] [Originator@6876 sub=AuthorizeManager] Removing invalid permission 333: unknown error
2018-07-10T14:54:03.860-05:00 warning vpxd[04162] [Originator@6876 sub=Default] Removing permission for entity "group-v2760", group "VSPHERE.LOCAL\SSO_web_support", role 721420390.  Reason: No reason given

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Cause

This issue occurs because vCenter Server is expecting a full admin permission to be loaded as first permission set during start up.

Resolution

This issue has been resolved in vCenter Server 6.7 U1b/EP6, you can download the vCenter Server 6.7U1b VMware Downloads.

Workaround

Caution:  Ensure vCenter Server backup and/or a snapshot state is available before proceeding.

To workaround this issue, re-order the permission list using one of the method below:

Manual Method:

Find the permission entry list of Root object from vpx_access table and make a note of all entries with entity_id IS 1 and role_id IS NOT -1 above the first role_id -1 in the list

On vCenter Server Appliance:

/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -c "select * from VPX_ACCESS where entity_id = '1';"

On vCenter Server installed on Windows (Connecting to the embedded vPostgres Database in a Windows installed vCenter Server 6.x):

select * from VPX_ACCESS where entity_id = '1'

On MS SQL:

select * from VPX_ACCESS where entity_id = '1'

Example:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -c "select * from VPX_ACCESS where entity_id = '1';"
id  |              principal              |  role_id  | entity_id | flag | surr_key
------+-------------------------------------+-----------+-----------+------+----------
25 | VSPHERE.LOCAL\SSO_ProductionControl | 721420390 |         1 |    3 |        2
1701 | VSPHERE.LOCAL\Administrator         |        -1 |         1 |    1 |      103
(2 rows)

Expected : Root object (entity_id 1) should have a user with role_id -1 as first in the list.

Remove and re-add all entries with entity_id IS 1 and role_id IS NOT -1 to re-order the list:

From vSphere Web Client Host and Clusters Navigator, select the vCenter Server object (Root of the inventory)

Go to permissions tab

Note the role of User/Groups identified in step 1

Remove the permission

Re-add the permission back

Validate the permission order from Database:

On vCenter Server Appliance:

/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -c "select * from VPX_ACCESS where entity_id = '1';"

On vCenter Server installed on Windows (Connecting to the embedded vPostgres Database in a Windows installed vCenter Server 6.x):

select * from VPX_ACCESS where entity_id = '1'

On MS SQL:

select * from VPX_ACCESS where entity_id = '1'

Example:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -c "select * from VPX_ACCESS where entity_id = '1';"
id  |              principal              |  role_id  | entity_id | flag | surr_key
------+-------------------------------------+-----------+-----------+------+----------
1701 | VSPHERE.LOCAL\Administrator         |        -1 |         1 |    1 |      103
1733 | VSPHERE.LOCAL\SSO_ProductionControl | 721420390 |         1 |    2 |      104
(2 rows)

After this re-order, new permissions added will be available even after vCenter Server Service restart

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Automated Method for vCenter Server Appliance:

Copy the attached script restore_permissions.sh to vCenter Server Appliance

Add execution privilege for the script:

chmod +x restore_permissions.sh

Execute the script

./restore_permissions.sh <current administrator> <desired full administator>

<current administrator> - Existing user who has Administrator privilege on vCenter Server to make privilege changes
<desired full administator> - The user who has existing privilege entry on vCenter Server and should be the desired Root Object Administrator to re-order and bring on top

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

restore_permissions.sh

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
配置的资源不足，无法满足群集上所需的 vSphere HA 故障切换级别 (59228)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vCenter Server Appliance

Related Versions:

VMware vCenter Server Appliance 6.7.x

Take Our Survey

Support Assistant