Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

cf dev is stuck on 'waiting for services to start' #325

Closed
gmanoj79 opened this issue Apr 24, 2018 · 4 comments
Closed

cf dev is stuck on 'waiting for services to start' #325

gmanoj79 opened this issue Apr 24, 2018 · 4 comments
Labels

Comments

@gmanoj79
Copy link

gmanoj79 commented Apr 24, 2018

I was using pcfdev last week without any issues but today I am not able to start cf dev. It gets stuck at 'waiting for services to start'. I tried starting it with a .ova file that I downloaded but same issue.

cf dev start
Allocating 4096 MB out of 16384 MB total system memory (6462 MB free).
Importing VM...
Starting VM...
Provisioning VM...
Waiting for services to start...

I did a 'cf dev ssh' and here's the output of some commands (looks like 'consul_agent' is having certificate issues)

tail -f /var/vcap/monit/monit.log
vcap@agent-id-pcfdev-0:/var/vcap/monit$ sudo tail -f monit.log 
[UTC Apr 24 04:53:20] info     : 'consul_agent' trying to restart
[UTC Apr 24 04:53:20] info     : 'consul_agent' start: /var/vcap/jobs/consul_agent/bin/agent_ctl_wrapper
[UTC Apr 24 04:54:20] error    : 'consul_agent' failed to start
[UTC Apr 24 04:54:30] error    : 'consul_agent' process is not running
[UTC Apr 24 04:54:30] info     : 'consul_agent' trying to restart
[UTC Apr 24 04:54:30] info     : 'consul_agent' start: /var/vcap/jobs/consul_agent/bin/agent_ctl_wrapper
[UTC Apr 24 04:55:30] error    : 'consul_agent' failed to start
[UTC Apr 24 04:55:40] error    : 'consul_agent' process is not running
[UTC Apr 24 04:55:40] info     : 'consul_agent' trying to restart
[UTC Apr 24 04:55:40] info     : 'consul_agent' start: /var/vcap/jobs/consul_agent/bin/agent_ctl_wrapper

And:

vcap@agent-id-pcfdev-0:/var/vcap/sys/log/consul_agent$ tail -f consul_agent.stderr.log 
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"
error during start: timeout exceeded: "Unexpected response code: 500 (rpc error: failed to get conn: x509: certificate has expired or is not yet valid)"

PCF Dev version 0.29.0 (CLI: 49405ec, OVA: 0.548.0)

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@gmanoj79
Copy link
Author

To temporarily fix the issue, I ssh'ed into cf dev (cf dev ssh) and changed the VM date/time to Apr 19th (sudo date -s "2018-04-19 00:00:00"). Seems like a certificate expired over the weekend.

@torstenwalter
Copy link

@gmanoj79 Thanks for sharing! I had the same issue. Setting the date back fixed it temporarily.

@ssisil
Copy link
Contributor

ssisil commented Apr 24, 2018

Please follow #324 for the latest updates on this issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants