Error: Cannot sync with the cluster using peers 127.0.0.1:4001
Kick off couchbase cluster
2015/03/23 03:55:59 Update-Wrapper: skipping update
2015/03/23 03:55:59 Connect to etcd on localhost
2015/03/23 03:55:59 verifyEnoughMachinesAvailable()
2015/03/23 03:55:59 getJsonData error: Get http://localhost:49153/fleet/v1/machines: dial tcp 127.0.0.1:49153: connection refused
2015/03/23 03:55:59 Failed: Get http://localhost:49153/fleet/v1/machines: dial tcp 127.0.0.1:49153: connection refused
2015/03/23 03:55:59 Error invoking target: exit status 1
Failed to kick off couchbase server
elasticthought-cluster-init.sh
you should have verified the coreos setup with fleetctl list-machines
. I'll add that to the readme
core@core-01 ~ $ fleetctl list-machines
2015/03/24 05:20:15 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:15 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 100ms
2015/03/24 05:20:15 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:15 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 200ms
2015/03/24 05:20:15 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:15 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 400ms
2015/03/24 05:20:16 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:16 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 800ms
2015/03/24 05:20:16 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:16 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s
2015/03/24 05:20:17 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:17 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s
2015/03/24 05:20:18 ERROR fleetctl.go:212: error attempting to check latest fleet version in Registry: timeout reached
2015/03/24 05:20:18 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:18 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 100ms
2015/03/24 05:20:18 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:18 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 200ms
2015/03/24 05:20:18 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:18 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 400ms
2015/03/24 05:20:19 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:19 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 800ms
2015/03/24 05:20:19 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:19 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s
2015/03/24 05:20:20 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: dial tcp 127.0.0.1:4001: connection refused
2015/03/24 05:20:20 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s
Error retrieving list of active machines: timeout reached
@j0n3 does your user-data file look like this? https://github.com/tleyden/elastic-thought#update-cloud-config
if it does but its still not working, you may need to run vagrant reload --provision
I've uncommented this:$new_discovery_url='https://discovery.etcd.io/new'
#
#
if File.exists?('user-data') && ARGV[0].eql?('up')
require 'open-uri'
require 'yaml'
token = open($new_discovery_url).read
data = YAML.load(IO.readlines('user-data')[1..-1].join)
data['coreos']['etcd']['discovery'] = token
yaml = YAML.dump(data)
File.open('user-data', 'w') { |file| file.write("#cloud-config\n\n#{yaml}") }
end
@j0n3 you have to get past this error:
Get http://localhost:49153/fleet/v1/machines: dial tcp 127.0.0.1:49153: connection refused
that means it's trying to connect to the coreos fleet api on port 49153, but fleet isn't listening on that port. I'm guessing because your user-data file is wrong or you need to run vagrant reload --provision