Closed shalako closed 6 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/152824413
The labels on this github issue will be updated when the story is started.
For what it is worth, we eventually found the logs in /var/vcap/store/postgres/postgres-9.6.4/pg_log/startup.log
2017-11-13 21:57:18.953 GMT: FATAL: could not load root certificate file "/var/vcap/jobs/postgres/config/certificates/server.ca_cert": no SSL error reported.
That file exists but is empty.
In the deployment, we provided databases.tls.certificate
and databases.tls.private_key
, but we did not specify databases.tls.ca
because we did not need mTLS.
Adding a databases.tls.ca
fixed the problem, but should not have been necessary. It looks like the release creates an empty server.ca_cert
file and postgres won't start if this file is not a valid certificate.
It would be great to get some of that logging from /var/vcap/store/postgres/postgres-9.6.4/pg_log/startup.log
into something like /var/vcap/sys/log/postgres/startup.log
.
Operators should only ever look for logs in /var/vcap/sys/log/
Is it intentional to require mutual authentication, or would you consider accepting one-way TLS? If the latter, please make databases.tls.ca
optional.
Attempting to test that Routing API can communicate with postgresql over TLS. We have tested that without configuring
databases.tls.certificate
anddatabases.tls.private_key
, the deployment succeeds. However, upon configuring these properties, BOSH/monit believes postgres fails to start.The postgres logs don't have any errors in them: https://gist.github.com/shalako/7cd886afdb6ac9f8924e60f253553b78
We looked for a manifest property to increase the log level but couldn't find one. We ended up modifying
/var/vcap/jobs/postgres/config/postgresql.conf
by adding the following line and using monit to restartThe logs didn't seems to change at all
We don't know how to troubleshoot the problem.