You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed looking at the cli help they are part from the setting-autofailover command and not the cluster-init
Trace:
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Exec[couchbase-init]/returns (notice): ERROR: option --enable-auto-failover not recognized
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Execcouchbase-init: Failed to call refresh: /usr/local/bin/couchbase-cluster-init.sh returned 2 instead of one of [0]
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Execcouchbase-init: /usr/local/bin/couchbase-cluster-init.sh returned 2 instead of one of [0]
@rmacian I have pushed a likely fix to github. Please check it out and let me know if this resolves your issue. If so I'll post a new release on the Puppet Forge.
Hi Justice,
I have found my own that the file https://github.com/justicel/puppet-couchbase/blob/master/templates/couchbase-cluster-init.sh.erb
has two options that are not working for me (couchbase 2.1.1).:
--enable-auto-failover=1
--auto-failover-timeout=30
Indeed looking at the cli help they are part from the setting-autofailover command and not the cluster-init
Trace:
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Exec[couchbase-init]/returns (notice): ERROR: option --enable-auto-failover not recognized
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Execcouchbase-init: Failed to call refresh: /usr/local/bin/couchbase-cluster-init.sh returned 2 instead of one of [0]
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Execcouchbase-init: /usr/local/bin/couchbase-cluster-init.sh returned 2 instead of one of [0]
Running from command line I get the same error
EDIT:
seems related with this:
https://issues.couchbase.com/browse/MB-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
I modified the erb commenting the last two lines and adding the changes with curl, is dirty but works until I update:
Commented as bug in
https://issues.couchbase.com/browse/MB-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
--enable-auto-failover=<%= @_autofailover %> \
--auto-failover-timeout=30
if [ $? -ne 0 ]; then
echo "error with $1" >&2
fi
curl -i -u <%= @user %>:<%= @password %> http://localhost:8091/settings/autoFailover -d 'enabled=true&timeout=30'
The text was updated successfully, but these errors were encountered: