local bootstrap fails

Bug #1329429 reported by Alistair Buxton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I attemped to follow the instructions at http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage:

1. sudo apt get install juju-local
2. juju init
3. juju switch local
4. sudo juju bootstrap

This gives the following error:

al@al-desktop:~$ sudo juju bootstrap
[sudo] password for al:
uploading tools for series [trusty]
Bootstrap failed, destroying environment
ERROR bootstrapping a local environment must not be done as root

I then tried to run it without root and I got the following stacktrack:

al@al-desktop:~$ juju bootstrap
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x48 pc=0x405567]

goroutine 1 [running]:
runtime.panic(0xc3d940, 0x18b0508)
 /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
main.environFromName(0xc2100b7730, 0xc210000c70, 0x5, 0xc2100e0310, 0xd78650, ...)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/juju/common.go:40 +0x1c7
main.(*BootstrapCommand).Run(0xc210146480, 0xc2100b7730, 0x18a9c10, 0x4)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/juju/bootstrap.go:95 +0xab
main.envCmdWrapper.Run(0x7f7c948e4268, 0xc210146480, 0xc2100b7730, 0x7f7c9474e1d8, 0x2)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/juju/main.go:158 +0x48
main.(*envCmdWrapper).Run(0xc21007ebd0, 0xc2100b7730, 0x14, 0x7f7c9474e1d8)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/juju/addmachine.go:1 +0x9a
launchpad.net/juju-core/cmd.(*SuperCommand).Run(0xc210146400, 0xc2100b7730, 0xc2100b7730, 0x0)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/supercommand.go:298 +0x439
launchpad.net/juju-core/cmd.Main(0x7f7c948e5cd0, 0xc210146400, 0xc2100b7730, 0xc21000a010, 0x1, ...)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/cmd.go:244 +0x283
main.Main(0xc21000a000, 0x2, 0x2)
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/juju/main.go:131 +0x439d
main.main()
 /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/cmd/juju/main.go:173 +0x44

goroutine 3 [syscall]:
os/signal.loop()
 /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
 /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: juju-local 1.18.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
Uname: Linux 3.13.0-8-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Jun 12 19:44:09 2014
InstallationDate: Installed on 2014-02-11 (120 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140210)
PackageArchitecture: all
SourcePackage: juju-core
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Max Brustkern (nuclearbob) wrote :

I see this with the amazon provider as well.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in juju-core (Ubuntu):
status: New → Confirmed
Revision history for this message
Charles Butler (lazypower) wrote :

The issue turned out to be root owned ~/.juju/environments from what I observed. This can be resolved by removing that directory and letting juju re-create the directory to warehouse the .jenv's with the proper permissions on bootstrap.

Can you give that a Go nuclearbob and let me know if the issue goes away?

Please note, you no longer need to use sudo to bootstrap *any* environment. If juju requires sudo rights, it will prompt you for an administrative password.

Changed in juju-core (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.