Posts

Showing posts from December, 2019

Unable to add permissions or Unable to add any identity source in vCenter 6.x

ssoAdminserver logs [INFO ][2019-12-19T14:50:25.432Z][k4cu9c27-323-auto-91-h5:70000118] auditlogger - {"user":" Administrator@VSPHERE.LOCAL ","client":"","timestamp":"12/19/2019 14:50:25 UTC","description":" Registering the Active Directory as identity source with domain Name 'LAB.LOCAL'","eventSeverity":"INFO","type":"com.vmware.sso.IdentitySourceManagement "} [INFO ][2019-12-19T14:50:25.432Z][k4cu9c27-323-auto-91-h5:70000118] IdentitySourceManagementServiceImpl - [User {Name: Administrator, Domain: VSPHERE.LOCAL} with role 'Administrator'] Registering the Active Directory as identity source w ith domain Name 'LAB.LOCAL' [INFO ][2019-12-19T14:50:25.488Z][k4cu9c27-323-auto-91-h5:70000118] PooledLdapConnectionFactory - New connection created in pool PooledLdapConnectionIdentity [tenantName=null, username=vcsalab.org@vsphere.local ...

missing chunk number 0 for toast value 120710098 in pg_toast_17620; -Postgres corruption

vCenter 6.x with postgres DB corruption making vpxd to crash vpxd logs 2019-04-20T16:26:10.995-06:00 error vpxd[11244] [Originator@6876 sub=Default] [VdbStatement] SQLError was thrown: "ODBC error: (XX000) - ERROR: missing chunk number 0 for toast value 120710098 in pg_toast_17620; --> Error while executing the query" is returned when executing SQL statement "SELECT ID, CONFIG_MANAGER FROM VPX_HOST" 2019-04-20T16:26:10.995-06:00 error vpxd[11244] [Originator@6876 sub=DbBulkLoader] [VpxdDbBulkLoader::Load] Failed to load tableDef 19 from database: "ODBC error: (XX000) - --> Error while executing the query" is returned when executing SQL statement "SELECT ID, CONFIG_MANAGER FROM VPX_HOST" 2019-04-20T16:26:10.995-06:00 error vpxd[11244] [Originator@6876 sub=Default] Win32 invalid_parameter: expression=(null), function=(null), file=(null), line=0 2019-04-20T16:26:11.029-06:00 info vpxd[11244] [Originator@6876 sub=Default] Co...

PNID change issue on 6.7 Update 3

Image
As we know PNID change is supported on 6.7 U3 onwards, however while changing the hostname from VAMI, you may encounter errors “ Failed to create replication placeholder ” and “Network update failed” : To fix the issue, we need to replace the pnid_utils.py file which is at /usr/lib/applmgmt/networking/py/vmware/appliance/networking/pnid/ location with attached one, restart Appliance mgmt. service and try changing PNID again.

Quick Esxi commands

 Esxi’s command’s to make your daily troubleshooting  - Lists all vm's running on hypervisor and provides vmid         vim-cmd vmsvc/getallvms     List the inventory ID of the virtual machine with the command :      vim-cmd vmsvc/getallvms |grep <vm name>     Note: The first column of the output shows the vmid. Check the power state of the virtual machine with the command:       vim-cmd vmsvc/power.getstate <vmid> Power-on the virtual machine with the command       vim-cmd vmsvc/power.on <vmid> Power-off the virtual machine with the command:       vim-cmd vmsvc/power.off <vmid> Reboots vmid referenced from getallvms command           vim-cmd vmsvc/power.reboot vmid      Po...

vPostgres service fails to start with Fatal error : bogus postmaster.pid

I came across this issue today where vPostgres service was failing on VCSA with error Fatal Error. # service-control --start vmware-vpostgres Perform start operation. vmon_profile=None, svc_names=['vmware-vpostgres'], include_coreossvcs=False, include_leafossvcs=False 2019-11-06T21:38:14.283Z   Service vmware-vpostgres state STOPPED Error executing start on service vmware-vpostgres. Details {     "resolution": null,     "detail": [         {             "args": [                 "vmware-vpostgres"             ],             "id": "install.ciscommon.service.failstart",             "localized": " A...

Unable to run a automated Script to Backup the VCSA .Failed to run a script which makes connection via API calls 

Image
Error:  A server error occurred: 'com.vmware.vapi.std.errors.unauthenticated': Unable to authenticate user (Server error id: 'vapi.security.authentication.invalid'). Check $Error[0].Exception.ServerError for more details. ERROR:vmware.appliance.vapi.auth:Requested SSO authentication but SSO authentication module is not available vami.log 2019-12-02T18:48:44.336 [50279]INFO:twisted:"127.0.0.1" - - [02/Dec/2019:10:48:44 +0000] "POST /api HTTP/1.1" 200 2783 "-" "vAPI http client" 2019-12-02T18:50:35.336 [50279] ERROR:vmware.appliance.vapi.auth:Could not parse HOK Token Traceback (most recent call last):   File "/usr/lib/applmgmt/vapi/py/vmware/appliance/vapi/auth.py", line 183, in authenticate     token.validate()   File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 529, in validate     signing_chain = self.validate_certificate () ...