This is an automated email from the ASF dual-hosted git repository. rabbah pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push: new ed27285 Create the required CouchDB system databases (#60) ed27285 is described below commit ed27285ca7a20460c76c96100ca18bb8714c2d6f Author: Ben Browning <ben...@gmail.com> AuthorDate: Thu Sep 28 09:35:54 2017 -0400 Create the required CouchDB system databases (#60) As of CouchDB 2.0, system databases don't automatically get created on startup and you have to do this manually. The process differs a bit for single nodes vs clusters, but since everything else in the Ansible scripts seems to assume single node this just sets things up that way. See the CouchDB docs at http://docs.couchdb.org/en/2.0.0/install/#single-node-setup for more info. This prevents errors constantly being logged by CouchDB with messages like `Error in process <0.22878.7> on node 'couchdb@couchdb0' with exit value: {database_does_not_exist ...` and `chttpd_auth_cache changes listener died database_does_not_exist ...` which can end up chewing through a lot of log disk space. --- kubernetes/couchdb/docker/init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kubernetes/couchdb/docker/init.sh b/kubernetes/couchdb/docker/init.sh index 5568107..85e41e3 100755 --- a/kubernetes/couchdb/docker/init.sh +++ b/kubernetes/couchdb/docker/init.sh @@ -57,6 +57,11 @@ pushd /openwhisk # disable reduce limits on views curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@$DB_HOST:$DB_PORT/_node/couchdb@couchdb0/_config/query_server_config/reduce_limit -d '"false"' + # create the couchdb system databases + curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@$DB_HOST:$DB_PORT/_users + curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@$DB_HOST:$DB_PORT/_replicator + curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@$DB_HOST:$DB_PORT/_global_changes + pushd ansible # initialize the DB ansible-playbook -i environments/local initdb.yml \ -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].