cloudfoundry-attic / cfdev

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit
Apache License 2.0
227 stars 64 forks source link

Unable to start PCFDev due to certificate issues #78

Closed shaunfink closed 5 years ago

shaunfink commented 5 years ago

I am trying to load up PCF Dev on my Mac. I have followed the documentation on the pcf-dev site: https://pivotal.io/platform/pcf-tutorials/getting-started-with-pivotal-cloud-foundry-dev/introduction

I've installed the cf cli, and the dev plugin as per the documentation.

Shauns-MacBook-Pro:~ shaun$ cf dev version
PCF Dev version 0.30.0 (CLI: 850ae45, OVA: 0.549.0)

Then running the cf dev start command, I get the following output:

Shauns-MacBook-Pro:~ shaun$ cf dev start
Using existing image.
Allocating 4096 MB out of 16384 MB total system memory (7822 MB free).
Importing VM...
Starting VM...
Provisioning VM...
Waiting for services to start...
7 out of 58 running
7 out of 58 running
7 out of 58 running
7 out of 58 running
7 out of 58 running
28 out of 58 running
33 out of 58 running
48 out of 58 running
48 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
55 out of 58 running
Timed out after 3600 seconds.
FAILED
Error: failed to provision VM: Process exited with: 1. Reason was: ().

I've had a look, and if running a cf dev ssh, and sudo -i to root, running monit summary returns the following:

root@agent-id-pcfdev-0:~# monit summary
The Monit daemon 5.2.5 uptime: 1h 3m 

Process 'pcfdev-api' running
Process 'pcfdev-nginx' running
Process 'vxlan-policy-agent' running
Process 'uaa' running
Process 'tps_listener' running
Process 'tps_watcher' running
Process 'tcp_router' running
Process 'tcp_emitter' running
Process 'syslog_drain_binder' running
Process 'syslog-configurator' running
Process 'stager' running
Process 'ssh_proxy' running
Process 'silk-daemon' running
Process 'silk-controller' running
Process 'routing-api' running
Process 'route_registrar' running
Process 'route_emitter' running
Process 'rep' running
Process 'rabbitmq-server' running
Process 'rabbitmq-broker' running
Process 'policy-server' running
Process 'nsync_listener' running
Process 'nsync_bulker' running
Process 'netmon' running
Process 'nats' running
Process 'mariadb_ctrl' running
Process 'galera-healthcheck' running
Process 'gra-log-purger-executable' running
Process 'cluster_health_logger' running
Process 'metron_agent' Execution failed
Process 'loggregator_trafficcontroller' Execution failed
Process 'localdriver' running
Process 'localbroker' running
Process 'gorouter' running
Process 'garden' running
Process 'file_server' running
Process 'etcd' running
Process 'etcd_consistency_checker' running
Process 'doppler' not monitored
Process 'consul_agent' running
Process 'cloud_controller_worker_1' running
Process 'cloud_controller_ng' running
Process 'cloud_controller_worker_local_1' running
Process 'cloud_controller_worker_local_2' running
Process 'nginx_cc' running
Process 'cloud_controller_clock' running
Process 'process-watcher' running
Process 'process-destroyer' running
Process 'cf-redis-broker' running
Process 'broker-nginx' running
Process 'cf-mysql-broker' running
Process 'quota-enforcer' running
Process 'cc_uploader' running
Process 'blobstore_nginx' running
Process 'blobstore_url_signer' running
Process 'bbs' running
Process 'auctioneer' running
System 'system_localhost' running

It seems like the loggregator_trafficcontroller and metron_agent jobs are not starting.

Checking the logs for both of these jobs, I see the following error in logs for both:

Could not use GRPC creds for client: x509: certificate has expired or is not yet valid

Any thoughts about this?

cf-gitbot commented 5 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/163974867

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

aemengo commented 5 years ago

@shaunfink Unfortunately, that was outdated documentation that you were following, which we will rectify soon. You've installed an outdated version of CF Dev which has certificates baked into it that have now expired

screen shot 2019-02-14 at 12 10 51 am

The way to upgrade to the most recent plugin is via the Cloud Foundry plugin repository:

$ cf dev stop
$ cf uninstall-plugin pcfdev
$ cf install-plugin -r CF-Community "cfdev"
$ cf dev version
CLI: 0.0.13

The newest iteration of CF Dev add support for adds, a more modern, native hypervisor support much like similar tools in this domain: Docker for Mac, minikube.

shaunfink commented 5 years ago

@aemengo - Thanks for this. I'll give it a shot and see how it goes. Will update here if I have any more issues.