rmustafa
Contributor
Contributor

vsphere client cannot able to connect vcenter 4 server

vsphere client cannot able to connect vcenter 4 server, error is "unable to connect server", rebooted , restarted services but still problem exist.

Please help.

0 Kudos
12 Replies
kjb007
Immortal
Immortal

Are you trying to connect from the vCenter host itself?  Have you checked the vCenter logs?

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
rmustafa
Contributor
Contributor

yes trying to connect from vcenter server itself, without connecting vcenter how can I check vCenter logs ??

0 Kudos
vGuy
Expert
Expert

Can you check if you're DB services are running and that connection of the DSN used to connect to vCenter DB is working.

Also, do you see any errors or possible pointers in the vpxd logs:

vCenter Server 2.5-5.0 on Windows XP, 2000, 2003: %ALLUSERSPROFILE%\Application Data\VMware\VMware VirtualCenter\Logs\

vCenter Server 2.5-5.0 on Windows Vista, 7, 2008: %ALLUSERSPROFILE%\VMware\VMware VirtualCenter\Logs\
0 Kudos
kjb007
Immortal
Immortal

I meant the service logs on windows, the path was just given.  Those will have details as to the state of the service.

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
rmustafa
Contributor
Contributor

I've seen some DB error space full in my event logs , MS-sql db services is running fine. what is this DSN connection with vCenter ? how to ceck this connection.

0 Kudos
kjb007
Immortal
Immortal

vCenter uses ODBC to connect to the SQL database.  You can verify that your db is still working correctly using the data sources, and make sure db connects successfully.

Also, the vpxd.log will tell you if there are db problems, and should have further details as to the connection problem you are having.

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
rmustafa
Contributor
Contributor

This is the vpxd-89348 log file text, anyone help me to trace a problem, I suspect this is something with database & what need to be done ??

[2012-04-04 22:09:30.196 03560 info 'Heartbeat'] primary handler started
[2012-04-04 22:09:30.274 00608 error 'App'] [LDAP Client] Failed to add LDAP entry cn=0102K-4AH07-5823A-0JAA2-3X140,ou=Licenses,ou=Licensing,dc=virtualcenter,dc=vmware,dc=int: 0x44 (The object already exists.)
[2012-04-04 22:09:30.414 03932 error 'App'] [Vdb::IsRecoverableErrorCode] Unable to recover from 42000:1105
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] SQL execution failed: INSERT INTO VPX_EVENT_ARG WITH (ROWLOCK) (EVENT_ID, ARG_ID, ARG_TYPE, ARG_DATA, OBJ_TYPE, OBJ_NAME, VM_ID, HOST_ID, COMPUTERESOURCE_ID, DATASTORE_ID, NETWORK_ID, NETWORK_TYPE, DVS_ID, DATACENTER_ID, RESOURCEPOOL_ID, FOLDER_ID, ALARM_ID, SCHEDULEDTASK_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] Execution elapsed time: 47 ms
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] Diagnostic data from driver is 42000:1:1105:[Microsoft][SQL Native Client][SQL Server]Could not allocate space for object 'dbo.VPX_EVENT_ARG'.'PK_VPX_EVENT_ARG' in database 'VIM_VCDB' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the file
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] Bind parameters:
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 1, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] value = 0
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 1, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] value = 0
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 11, size: 38,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 11, size: 1464,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 1, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] value = 0
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 11, size: 0,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 11, size: 0,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 6
[2012-04-04 22:09:30.414 03932 error 'App'] Error inserting events: "ODBC error: () - " is returned when executing SQL statement "INSERT INTO VPX_EVENT_ARG WITH (ROWLOCK) (EVENT_ID, ARG_ID, ARG_TYPE, ARG_DATA, OBJ_TYPE, OBJ_NAME, VM_ID, HOST_ID, COMPUTERESOURCE_ID, DATASTORE_ID, NETWORK_ID, NETWORK_TYPE, DVS_ID, DATACENTER_ID, RESOURCEPOOL_ID, FOLDER_ID, ALARM_ID, SCHEDULEDTASK_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
[2012-04-04 22:09:30.414 03932 panic 'ThreadPool'] Unhandled exception of unknown type
[2012-04-04 22:09:30.711 00608 info 'HTTP server'] HTTP server created with docroots C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\docRoot;C:\Program Files\VMware\Infrastructure\VirtualCenter Server\locale/;C:\Program Files\VMware\Infrastructure\VirtualCenter Server\extensions/;C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\sysprep, chunked responses enabled: true
[2012-04-04 22:09:30.711 00608 info 'HttpSvc.HTTPService'] Http Service started: [class Vmacore::System::NamedPipeServerWin32:059F68E0]
[2012-04-04 22:09:30.711 00608 info 'App'] Web server bound to pipe: \\.\pipe\vmware-vpxd-webserver-pipe
[2012-04-04 22:09:30.742 00608 error 'App'] [Vdb::IsRecoverableErrorCode] Unable to recover from 42000:1105
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] SQL execution failed: INSERT INTO VPX_EVENT_ARG WITH (ROWLOCK) (EVENT_ID, ARG_ID, ARG_TYPE, ARG_DATA, OBJ_TYPE, OBJ_NAME, VM_ID, HOST_ID, COMPUTERESOURCE_ID, DATASTORE_ID, NETWORK_ID, NETWORK_TYPE, DVS_ID, DATACENTER_ID, RESOURCEPOOL_ID, FOLDER_ID, ALARM_ID, SCHEDULEDTASK_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] Execution elapsed time: 0 ms
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] Diagnostic data from driver is 42000:1:1105:[Microsoft][SQL Native Client][SQL Server]Could not allocate space for object 'dbo.VPX_EVENT_ARG'.'PK_VPX_EVENT_ARG' in database 'VIM_VCDB' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the file
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] Bind parameters:
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 1, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] value = 0
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 1, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] value = 0
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 11, size: 14,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 11, size: 138,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 1, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] value = 0
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 11, size: 0,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 11, size: 0,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] [VdbStatement] datatype: 9, size: 4,arraySize: 1
[2012-04-04 22:09:30.742 00608 error 'App'] Error inserting events: "ODBC error: () - " is returned when executing SQL statement "INSERT INTO VPX_EVENT_ARG WITH (ROWLOCK) (EVENT_ID, ARG_ID, ARG_TYPE, ARG_DATA, OBJ_TYPE, OBJ_NAME, VM_ID, HOST_ID, COMPUTERESOURCE_ID, DATASTORE_ID, NETWORK_ID, NETWORK_TYPE, DVS_ID, DATACENTER_ID, RESOURCEPOOL_ID, FOLDER_ID, ALARM_ID, SCHEDULEDTASK_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
[2012-04-04 22:09:30.742 00608 warning 'App'] [VpxUnhandledException] Win32 Exception (0xe06d7363) detected at 0x77e4bee7
[2012-04-04 22:09:30.742 00608 warning 'App']    eip: 0x77e4bee7, esp: 0x3aced80, ebp: 0x3acedd4
[2012-04-04 22:09:30.742 00608 warning 'App']    eax: 0x3aced84 ebx: 0xa22b06 ecx: 00000000 edx: 00000000 edi: 0x3acf790 esi: 0x3acee0c
[2012-04-04 22:09:30.758 00608 warning 'App'] [VpxUnhandledException] Backtrace
backtrace[00] eip 0x019e88f0 ?AbortProcess@System@Vmacore@@YAXXZ
backtrace[01] eip 0x019e9077 ?CreateBacktrace@SystemFactoryImpl@System@Vmacore@@UAEXAAV?$Ref@VBacktrace@System@Vmacore@@@3@@Z
backtrace[02] eip 0x00d20027 (no symbol)
backtrace[03] eip 0x77e761b7 RemoveDirectoryA
backtrace[04] eip 0x77e792a3 QueryMemoryResourceNotification
[2012-04-04 22:09:30.758 00608 warning 'App'] [VpxUnhandledException] Generating minidump ...
[2012-04-04 22:09:34.680 00608 info 'App'] CoreDump: Writing minidump
0 Kudos
kjb007
Immortal
Immortal

From your logs 'VIM_VCDB' because the 'PRIMARY' filegroup is full

You'll need to make room for your vCenter database,and restart vCenter.

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
vGuy
Expert
Expert

incase you're not able to increase the DB size, may want to check the below article for purging the old data:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=102591...

0 Kudos
rmustafa
Contributor
Contributor

Now I can able to logon through vCenter , all is well looks like , just would like to confirm & clear in few points.

I've clear few event in my database through this link :

http://www.petenetlive.com/KB/Article/0000479.htm

Now my MS-SQL database Properties looks like this in attacement.

Database:

Size                    4554.01 MB

SpaceAvailable     3561.64 MB

MSSQL-database report is also in attachement.

What does it means , is it means my vsphere vCenter will run till "space available" comes 4-5 MB ??

I just would like to make sure that I've enough available size for my DB to run for 7-8 month, it have only 3 ESX attached.

0 Kudos
rmustafa
Contributor
Contributor

Any one who can help on the above question ????????????????????

0 Kudos
kjb007
Immortal
Immortal

SQL Server 2005 Exress has a 4 GB filesize limit, which is probably what happened to you.  Right now, since you've cleared out the space, your report shows you're using 415 MB of that 4 GB limit.

You can typically go longer, provided you have your database retention of events turned down from default, we keep ours for 1 month.  And you set your statistics collection level to a low number as well.  With those options set, your db can stay below that limit for quite some time.

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos