Fails to run cluster-init and bucket-create

Bug #1074344 reported by Elfar Torarinsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
couchbase (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

When running the install script it fails every time to run the cluster-init and bucket-create using precise and with default settings:

2012-11-02 12:33:02,757: hook.output@INFO: + /opt/couchbase/bin/couchbase-cli cluster-init -c 10.0.3.202:8091 --cluster-init-username=Administrator --cluster-init-password=administrator --cluster-init-port=8091 --cluster-init-ramsize=1607

2012-11-02 12:33:02,827: hook.output@INFO: ERROR: command: cluster-init: 10.0.3.202:8091, [Errno 111] Connection refused

2012-11-02 12:33:02,837: hook.output@INFO: + /opt/couchbase/bin/couchbase-cli bucket-create -c 10.0.3.202:8091 -u Administrator -p administrator --bucket=default --bucket-type=couchbase --bucket-password= --bucket-ramsize=1607 --bucket-replica=1

2012-11-02 12:33:02,883: hook.output@INFO: ERROR: command: bucket-create: 10.0.3.202:8091, [Errno 111] Connection refused

2012-11-02 12:33:02,890: hook.output@DEBUG: hook install exited, exit code Traceback (most recent call last):
Failure: juju.errors.CharmInvocationError: Error processing '/var/lib/juju/units/couchbase-0/charm/hooks/install': exit code 1.

If I ssh into the machine and run the exact same commands manually it works just fine....Any ideas?

Related branches

Revision history for this message
Elfar Torarinsson (elfar7) wrote :

BTW I tried to add a short sleep after the couchbase service start command, just before calling cluster-init, and that worked. So seems like the couchbase is not 100% ready by the time cluster-init is called...

Revision history for this message
Cory Johns (johnsca) wrote :

I added a wait for the server, and also fixed hard-coded paths to open-port so that it works with modern Juju.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.