juju bootstrap fails with a local environment, why?

Posted by Braiam on Ask Ubuntu See other posts from Ask Ubuntu or by Braiam
Published on 2013-10-20T03:04:19Z Indexed on 2013/10/20 4:14 UTC
Read the original article Hit count: 334

Filed under:

Each time I try to bootstrap juju using a local enviroment it fails starting the juju-db-braiam-local script as follows:

$ sudo juju --debug --verbose bootstrap
2013-10-20 02:28:53 INFO juju.provider.local environprovider.go:32 opening environment "local"
2013-10-20 02:28:53 DEBUG juju.provider.local environ.go:210 found "10.0.3.1" as address for "lxcbr0"
2013-10-20 02:28:53 DEBUG juju.provider.local environ.go:234 checking 10.0.3.1:8040 to see if machine agent running storage listener
2013-10-20 02:28:53 DEBUG juju.provider.local environ.go:237 nope, start some
2013-10-20 02:28:53 DEBUG juju.environs.tools storage.go:87 Uploading tools for [raring precise]
2013-10-20 02:28:53 DEBUG juju.environs.tools build.go:109 looking for: juju
2013-10-20 02:28:53 DEBUG juju.environs.tools build.go:150 checking: /usr/bin/jujud
2013-10-20 02:28:53 INFO juju.environs.tools build.go:156 found existing jujud
2013-10-20 02:28:53 INFO juju.environs.tools build.go:166 target: /tmp/juju-tools243949228/jujud
2013-10-20 02:28:53 DEBUG juju.environs.tools build.go:217 forcing version to 1.14.1.1
2013-10-20 02:28:53 DEBUG juju.environs.tools build.go:37 adding entry: &tar.Header{Name:"FORCE-VERSION", Mode:420, Uid:0, Gid:0, Size:8, ModTime:time.Time{sec:63517832933, nsec:278894120, loc:(*time.Location)(0x108fda0)}, Typeflag:0x30, Linkname:"", Uname:"ubuntu", Gname:"ubuntu", Devmajor:0, Devminor:0, AccessTime:time.Time{sec:63517832933, nsec:278894120, loc:(*time.Location)(0x108fda0)}, ChangeTime:time.Time{sec:63517832933, nsec:278894120, loc:(*time.Location)(0x108fda0)}}
2013-10-20 02:28:53 DEBUG juju.environs.tools build.go:37 adding entry: &tar.Header{Name:"jujud", Mode:493, Uid:0, Gid:0, Size:19179512, ModTime:time.Time{sec:63517832933, nsec:274894120, loc:(*time.Location)(0x108fda0)}, Typeflag:0x30, Linkname:"", Uname:"ubuntu", Gname:"ubuntu", Devmajor:0, Devminor:0, AccessTime:time.Time{sec:63517832933, nsec:274894120, loc:(*time.Location)(0x108fda0)}, ChangeTime:time.Time{sec:63517832933, nsec:274894120, loc:(*time.Location)(0x108fda0)}}
2013-10-20 02:28:55 INFO juju.environs.tools storage.go:106 built 1.14.1.1-raring-amd64 (4196kB)
2013-10-20 02:28:55 INFO juju.environs.tools storage.go:112 uploading 1.14.1.1-precise-amd64
2013-10-20 02:28:55 INFO juju.environs.tools storage.go:112 uploading 1.14.1.1-raring-amd64
2013-10-20 02:28:55 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-10-20 02:28:55 INFO juju.environs.tools tools.go:34 filtering tools by version: 1.14.1.1
2013-10-20 02:28:55 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-10-20 02:28:55 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-10-20 02:28:55 DEBUG juju.environs.tools storage.go:61 found 1.14.1.1-precise-amd64
2013-10-20 02:28:55 DEBUG juju.environs.tools storage.go:61 found 1.14.1.1-raring-amd64
2013-10-20 02:28:55 INFO juju.environs.boostrap bootstrap.go:57 bootstrapping environment "local"
2013-10-20 02:28:55 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-10-20 02:28:55 INFO juju.environs.tools tools.go:34 filtering tools by version: 1.14.1.1
2013-10-20 02:28:55 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-10-20 02:28:55 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-10-20 02:28:55 DEBUG juju.environs.tools storage.go:61 found 1.14.1.1-precise-amd64
2013-10-20 02:28:55 DEBUG juju.environs.tools storage.go:61 found 1.14.1.1-raring-amd64
2013-10-20 02:28:55 DEBUG juju.provider.local environ.go:395 create mongo journal dir: /home/braiam/.juju/local/db/journal
2013-10-20 02:28:55 DEBUG juju.provider.local environ.go:401 generate server cert
2013-10-20 02:28:55 INFO juju.provider.local environ.go:421 installing service juju-db-braiam-local to /etc/init
2013-10-20 02:28:56 ERROR juju.provider.local environ.go:423 could not install mongo service: exec ["start" "juju-db-braiam-local"]: exit status 1 (start: Job failed to start)
2013-10-20 02:28:56 ERROR juju supercommand.go:282 command failed: exec ["start" "juju-db-braiam-local"]: exit status 1 (start: Job failed to start)
error: exec ["start" "juju-db-braiam-local"]: exit status 1 (start: Job failed to start)

What is the reason for this error and how to solve it?

© Ask Ubuntu or respective owner

Related posts about juju