VMware Cloud Community
eduruizblas
Enthusiast
Enthusiast

VCenter services won't start

Good! After a sudden blackout, vCenter did not start, but best of all, I tried to start replicas of previous days and the problem was also. I enclose what I get when I force the start of the services:

Operation not cancellable. Please wait for it to finish...

Performing start operation on service lwsmd...

Successfully started service lwsmd

Performing start operation on service vmafdd...

Successfully started service vmafdd

Performing start operation on service vmdird...

Successfully started service vmdird

Performing start operation on service vmcad...

Successfully started service vmcad

Performing start operation on service vmware-sts-idmd...

Successfully started service vmware-sts-idmd

Performing start operation on service vmware-stsd...

Successfully started service vmware-stsd

Performing start operation on service vmdnsd...

Successfully started service vmdnsd

Performing start operation on profile: ALL...

Service-control failed. Error: Failed to start services in profile ALL. RC=1, stderr=Failed to start topologysvc, vpxd-svcs, vmware-postgres-archiver, vmware-vpostgres services. Error: Operation timed out

0 Kudos
23 Replies
Alex_Romeo
Leadership
Leadership

Hi,

what version of vcenter do you have?

ARomeo

Blog: https://www.aleadmin.it/
0 Kudos
eduruizblas
Enthusiast
Enthusiast

Hi!
the version is 6.7.0.30000

0 Kudos
scott28tt
VMware Employee
VMware Employee

Windows or VCSA?


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
eduruizblas
Enthusiast
Enthusiast

Hi!

VCSA

0 Kudos
nachogonzalez
Commander
Commander

Can you please run a service-control --status --all and share the output?

0 Kudos
eduruizblas
Enthusiast
Enthusiast

root@vcenter [ ~ ]# service-control --status --all

Stopped:

pschealth vmcam vmware-content-library vmware-imagebuilder vmware-mbcs vmware-netdumper vmware-perfcharts vmware-postgres-archiver vmware-rbd-watchdog vmware-sps vmware-topologysvc vmware-updatemgr vmware-vcha vmware-vpostgres vmware-vpxd vmware-vpxd-svcs vmware-vsan-health vmware-vsm vsan-dps

Running:

applmgmt lwsmd vmafdd vmcad vmdird vmdnsd vmonapi vmware-analytics vmware-certificatemanagement vmware-cis-license vmware-cm vmware-eam vmware-pod vmware-rhttpproxy vmware-sca vmware-statsmonitor vmware-sts-idmd vmware-stsd vmware-vapi-endpoint vmware-vmon vsphere-client vsphere-ui

I have tried to start the vcenter and posgresql services but it was impossible.

root@vcenter [ ~ ]# service-control --start vmware-vpostgres

Operation not cancellable. Please wait for it to finish...

Performing start operation on service vmware-vpostgres...

Error executing start on service vmware-vpostgres. Details {

    "resolution": null,

    "problemId": null,

    "componentKey": null,

    "detail": [

        {

            "args": [

                "vmware-vpostgres"

            ],

            "translatable": "An error occurred while starting service '%(0)s'",

            "id": "install.ciscommon.service.failstart",

            "localized": "An error occurred while starting service 'vmware-vpostgres'"

        }

    ]

}

Service-control failed. Error: {

    "resolution": null,

    "problemId": null,

    "componentKey": null,

    "detail": [

        {

            "args": [

                "vmware-vpostgres"

            ],

            "translatable": "An error occurred while starting service '%(0)s'",

            "id": "install.ciscommon.service.failstart",

            "localized": "An error occurred while starting service 'vmware-vpostgres'"

        }

    ]

}

0 Kudos
nachogonzalez
Commander
Commander

0 Kudos
eduruizblas
Enthusiast
Enthusiast

Thank you! from what I can read in the link this is for vcenter windows. i have vcenter aplliance

0 Kudos
nachogonzalez
Commander
Commander

sorry for the misconception, i understood that you had a windows based vCenter./var/log/vmware/

Let me ask you something:

Did you have any outage/shutdown of the VMs lately?


Can you paste the vpxd logs (/var/log/vmware/)

Can you please check if this KB works: 

VMware Knowledge Base

0 Kudos
eduruizblas
Enthusiast
Enthusiast

Hi!

this is a part of the vpxd logs

2020-08-02T13:23:49.857+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.858+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.859+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.859+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.860+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.860+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.861+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.862+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.863+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.863+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.864+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.865+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.865+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.866+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.867+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.867+02:00 info vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc

2020-08-02T13:23:49.868+02:00 error vpxd[33515] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Failed to connect to database: ODBC error: (08001) - [unixODBC]could not connect to server: Connection refused

--> Is the server running on host "localhost" (127.0.0.1) and accepting

--> TCP/IP connections on port 5432?

0 Kudos
nachogonzalez
Commander
Commander

Please share serverlog.stderr log

0 Kudos
eduruizblas
Enthusiast
Enthusiast

Starting service process with pid: 21556.

LOG:  skipping missing configuration file "/storage/db/vpostgres/postgresql.conf.repl"

LOG:  skipping missing configuration file "/storage/db/vpostgres/postgresql.conf.repl"

2020-07-06 09:51:56.805 UTC 5f02f43a.5434 0   LOG:  redirecting log output to logging collector process

2020-07-06 09:51:56.805 UTC 5f02f43a.5434 0   HINT:  Future log output will appear in directory "/var/log/vmware/vpostgres".

0 Kudos
msripada
Virtuoso
Virtuoso

these logs are from 6th july.. so are they not updated from that time.

ls -ltrh under the /var/log/vmware/vpostgres

check the date of the latest logs listed

thanks,

MS

0 Kudos
eduruizblas
Enthusiast
Enthusiast

Hi! It is correct since that date there is no updated log.

0 Kudos
msripada
Virtuoso
Virtuoso

can you upload the vmon-syslog.log on vcsa from /var/log/vmware/vmon.. Service log would fail to update only when config files are corrupt

thanks,

MS

0 Kudos
scott28tt
VMware Employee
VMware Employee

Moderator: Please be careful when posting from Google Translate (or equivalent) - I have edited two of your posts in this thread to make them readable by others.

Your most recent comment on this thread originally looked like this:

Screenshot 2020-08-07 at 15.05.40.png

There is a Remove formatting button in the post creator which makes posts like this readable - click the button shown below before adding the comment:

Screenshot 2020-08-07 at 15.06.04.png


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
eduruizblas
Enthusiast
Enthusiast

Hello! here is the log

0 Kudos
nachogonzalez
Commander
Commander

Hello, based on what you provided the solution is this KB: VMware Knowledge Base

0 Kudos
eduruizblas
Enthusiast
Enthusiast

hello! this Kb has not worked for me. Does not regenerate  postmaster.pid file

0 Kudos