Juju deploy mongodb error!

zhangyuanyou zhangyuanyou at huawei.com
Tue Dec 15 12:03:44 UTC 2015


Hi , Narinder Gupta
When I use the ./deploy.sh to deploy juju, there are some error about mongodb.
This is the log:
Attempt 1 to download tools from https://streams.canonical.com/juju/tools/releases/juju-1.25.0-trusty-amd64.tgz...
tools from https://streams.canonical.com/juju/tools/releases/juju-1.25.0-trusty-amd64.tgz downloaded: HTTP 200; time 13.682s; size 18672448 bytes; speed 1364782.000 bytes/s Tools downloaded successfully.
0419fcde2d571a00eddd0b2fb9e35f5102a9fd81cbecd4a2d0b648da7740eab3  /var/lib/juju/tools/1.25.0-trusty-amd64/tools.tar.gz
2015-12-15 10:59:58 INFO juju.cmd supercommand.go:37 running jujud [1.25.0-trusty-amd64 gc]
2015-12-15 10:59:58 DEBUG juju.agent agent.go:482 read agent config, format "1.18"
2015-12-15 10:59:58 INFO juju.network network.go:242 setting prefer-ipv6 to false
2015-12-15 10:59:58 DEBUG juju.provider.maas environprovider.go:28 opening environment "demo-maas".
2015-12-15 10:59:59 INFO juju.agent identity.go:22 writing system identity file
2015-12-15 10:59:59 DEBUG juju.cmd.jujud bootstrap.go:253 starting mongo
2015-12-15 10:59:59 DEBUG juju.cmd.jujud bootstrap.go:278 calling ensureMongoServer
2015-12-15 10:59:59 INFO juju.mongo mongo.go:175 Ensuring mongo server is running; data directory /var/lib/juju; port 37017
2015-12-15 10:59:59 INFO juju.mongo mongo.go:339 installing juju-mongodb
2015-12-15 10:59:59 INFO juju.utils.packaging.manager utils.go:57 Running: apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb
2015-12-15 11:07:18 DEBUG juju.mongo mongo.go:298 using mongod: /usr/lib/juju/bin/mongod --version: "db version v2.4.9\nTue Dec 15 11:07:18.756 git version: nogitversion\n"
2015-12-15 11:07:18 DEBUG juju.service discovery.go:115 discovered init system "upstart" from local host
2015-12-15 11:07:20 DEBUG juju.worker.peergrouper initiate.go:48 Initiating mongo replicaset; dialInfo &mgo.DialInfo{Addrs:[]string{"127.0.0.1:37017"}, Direct:false, Timeout:300000000000, FailFast:false, Database:"", ReplicaSetName:"", Source:"", Service:"", ServiceHost:"", Mechanism:"", Username:"", Password:"", PoolLimit:0, DialServer:(func(*mgo.ServerAddr) (net.Conn, error))(nil), Dial:(func(net.Addr) (net.Conn, error))(0x5445a0)}; memberHostport "bootstrap.maas:37017"; user ""; password ""
2015-12-15 11:07:20 DEBUG juju.mongo open.go:117 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2015-12-15 11:07:20 DEBUG juju.mongo open.go:117 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2015-12-15 11:07:20 DEBUG juju.mongo open.go:117 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2015-12-15 11:07:21 DEBUG juju.mongo open.go:117 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2015-12-15 11:07:22 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-12-15 11:07:22 INFO juju.replicaset replicaset.go:78 Initiating replicaset with config replicaset.Config{Name:"juju", Version:1, Members:[]replicaset.Member{replicaset.Member{Id:1, Address:"bootstrap.maas:37017", Arbiter:(*bool)(nil), BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), Tags:map[string]string{"juju-machine-id":"0"}, SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2015-12-15 11:07:22 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:22 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:23 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:23 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:24 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:24 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:25 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:25 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:26 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:26 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:27 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-12-15 11:07:27 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:27 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:46 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:46 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:47 DEBUG juju.worker.peergrouper initiate.go:74 replica set initiation failed, will retry: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:47 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-12-15 11:07:47 INFO juju.replicaset replicaset.go:78 Initiating replicaset with config replicaset.Config{Name:"juju", Version:1, Members:[]replicaset.Member{replicaset.Member{Id:1, Address:"bootstrap.maas:37017", Arbiter:(*bool)(nil), BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), Tags:map[string]string{"juju-machine-id":"0"}, SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2015-12-15 11:07:47 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:48 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:48 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:49 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:49 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:50 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:50 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:51 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:51 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:52 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:52 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-12-15 11:07:52 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:53 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:53 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:54 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:12 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:12 DEBUG juju.worker.peergrouper initiate.go:74 replica set initiation failed, will retry: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:12 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-12-15 11:08:12 INFO juju.replicaset replicaset.go:78 Initiating replicaset with config replicaset.Config{Name:"juju", Version:1, Members:[]replicaset.Member{replicaset.Member{Id:1, Address:"bootstrap.maas:37017", Arbiter:(*bool)(nil), BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), Tags:map[string]string{"juju-machine-id":"0"}, SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2015-12-15 11:08:13 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:13 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:14 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:14 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:15 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:15 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:38 INFO juju.worker.peergrouper initiate.go:78 finished MaybeInitiateMongoServer
2015-12-15 11:08:38 ERROR juju.cmd supercommand.go:429 cannot initiate replica set: cannot get replica set status: can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:38 ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: subprocess encountered error code 1

Thanks,
Yuanyou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151215/2d78cb08/attachment.html>


More information about the Juju mailing list