jujud is crashing and restarting. Every time it restarts it does:
2014-07-29 18:08:46 INFO juju.mongo mongo.go:169 Ensuring mongo server is running; data directory /var/lib/juju; port 37017
2014-07-29 18:08:46 INFO juju.mongo mongo.go:317 installing juju-mongodb
2014-07-29 18:08:46 INFO juju.utils.apt apt.go:128 Running: [apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb]
2014-07-29 18:08:46 INFO juju.state.api apiclient.go:250 error dialing "wss://localhost:17070/": websocket.Dial wss://localhost:17070/: dial tcp 127.0.0.1:17070: connection refused
2014-07-29 18:08:46 ERROR juju.worker runner.go:218 exited "api": unable to connect to "wss://localhost:17070/"
2014-07-29 18:08:46 INFO juju.worker runner.go:252 restarting "api" in 3s
2014-07-29 18:08:47 DEBUG juju.mongo mongo.go:260 using mongod: /usr/lib/juju/bin/mongod --version: "db version v2.4.9\nTue Jul 29 18:08:47.314 git version: nogitversion\n"
2014-07-29 18:08:47 INFO juju.state open.go:47 opening state, mongo addresses: ["127.0.0.1:37017"]; entity "machine-0"
2014-07-29 18:08:47 DEBUG juju.state open.go:52 dialing mongo
2014-07-29 18:08:47 DEBUG juju.mongo open.go:87 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2014-07-29 18:08:47 DEBUG juju.mongo open.go:87 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2014-07-29 18:08:48 INFO juju.mongo open.go:95 dialled mongo successfully
I thought that might be rewriting the Upstart juju-db.conf but it doesn't seem that it should:
sudo apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb
Reading package lists...
Building dependency tree...
Reading state information...
juju-mongodb is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
In other words, apt doesn't reinstall it if it's there already.
jujud is crashing and restarting. Every time it restarts it does:
2014-07-29 18:08:46 INFO juju.mongo mongo.go:169 Ensuring mongo server is running; data directory /var/lib/juju; port 37017 Dpkg::Options: :=--force- confold --option= Dpkg::options: :=--force- unsafe- io --assume-yes --quiet install juju-mongodb] localhost: 17070/" : websocket.Dial wss://localhost :17070/ : dial tcp 127.0.0.1:17070: connection refused localhost: 17070/" juju/bin/ mongod --version: "db version v2.4.9\nTue Jul 29 18:08:47.314 git version: nogitversion\n" 0.1:37017" ]; entity "machine-0"
2014-07-29 18:08:46 INFO juju.mongo mongo.go:317 installing juju-mongodb
2014-07-29 18:08:46 INFO juju.utils.apt apt.go:128 Running: [apt-get --option=
2014-07-29 18:08:46 INFO juju.state.api apiclient.go:250 error dialing "wss://
2014-07-29 18:08:46 ERROR juju.worker runner.go:218 exited "api": unable to connect to "wss://
2014-07-29 18:08:46 INFO juju.worker runner.go:252 restarting "api" in 3s
2014-07-29 18:08:47 DEBUG juju.mongo mongo.go:260 using mongod: /usr/lib/
2014-07-29 18:08:47 INFO juju.state open.go:47 opening state, mongo addresses: ["127.0.
2014-07-29 18:08:47 DEBUG juju.state open.go:52 dialing mongo
2014-07-29 18:08:47 DEBUG juju.mongo open.go:87 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2014-07-29 18:08:47 DEBUG juju.mongo open.go:87 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2014-07-29 18:08:48 INFO juju.mongo open.go:95 dialled mongo successfully
I thought that might be rewriting the Upstart juju-db.conf but it doesn't seem that it should:
sudo apt-get --option= Dpkg::Options: :=--force- confold --option= Dpkg::options: :=--force- unsafe- io --assume-yes --quiet install juju-mongodb
Reading package lists...
Building dependency tree...
Reading state information...
juju-mongodb is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
In other words, apt doesn't reinstall it if it's there already.