novu5
novu5

Reputation: 13

OpenWhisk build failure in local vagrant

Attempting to build my local openwhisk instance using the provided VagrantFile. I am using the ephemeral CouchDB container as my datasource.

During ant clean build deploy I get the following exceptions:

BUILD FAILED
/home/vagrant/openwhisk/build.xml:55: The following error occurred while executing this line:
/home/vagrant/openwhisk/build.xml:99: exec returned: 5

Further up the logs I see the following repeated under the installCatalog.sh section: [exec] error: The supplied authentication is invalid

I've verified that the couchdb credentials in my cloudant-local.env are correct by executing some test curl commands. Not sure what other authentication credentials it could be complaining about. Any ideas?

http://dumptext.com/6QDOWNE3

Upvotes: 1

Views: 200

Answers (1)

user6062970
user6062970

Reputation: 831

When you use an ephemeral Couch instance, you need to start it after ant clean build and before deploy. Further, every time you start the container, you have to run the script tools/db/createImmortalDBs.sh to initialize the authentication store.

ant clean build
tools/db/couchdb/start-couchdb-box.sh ...
tools/db/createImmortalDBs.sh
ant deploy

BTW, Did you mean couchdb-local.env?

Upvotes: 1

Related Questions