bootstrapping local environment as none root doesn't work

Bug #1302557 reported by Thibaut Brandscheid
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

OS: Ubuntu GNOME 14.04 64-Bit in VirtualBox
juju-core: 1.16.6-0ubuntu1

Guide: https://juju.ubuntu.com/docs/config-LXC.html

What I did:
sudo apt-get install juju-core juju-local
juju generate-config
juju switch local

sudo juju bootstrap → ERROR bootstrapping a local enviroment must not be done as root
juju bootstrap → panic: runtime error: invalid memory address or nil pointer dereference

I didn't use the PPA juju version, because I thought the version for the next LTS should work too, but it doesn't.

Edit:
The juju version in trusty is currently the same as in the PPA.

What I would like to do:
Bootstraping a local juju environment to lern how to use juju.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: juju (not installed)
ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
Uname: Linux 3.13.0-22-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Apr 4 14:08:09 2014
InstallationDate: Installed on 2014-03-28 (7 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326.1)
SourcePackage: juju-core
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thibaut Brandscheid (k1au3-is-37) wrote :
description: updated
description: updated
description: updated
Revision history for this message
James Page (james-page) wrote :

Thibaut

Please can you confirm which juju version you are using; 14.04 should have 1.17.7.

Changed in juju-core (Ubuntu):
status: New → Incomplete
Revision history for this message
Ruben Laguna (ecerulm) wrote :

I'm not an expert but I think https://bugs.launchpad.net/juju-core/+bug/1301663 is related. At least in my case the reason for the "invalid memory access" is a permision denied .

I advise to run "juju status" and check for "permission denied" in the output. if you see a

Error details:
open /home/vagrant/.juju/environments/local.jenv: permission denied

then it's the same as reported on https://bugs.launchpad.net/juju-core/+bug/1301663

Revision history for this message
Ruben Laguna (ecerulm) wrote :

By the way, in my case /home/vagrant/.juju/environments was owned by root . I guess because I tried to "sudo juju bootstrap" before.

Revision history for this message
Thibaut Brandscheid (k1au3-is-37) wrote :

@James Page
After installing the newest updates - without the juju PPA - the juju version is 1.17.7.

My ~/.juju/environments/ is owned by root, too.

I removed the ~/.juju folder and started again with:
juju generate-config
juju switch local
juju bootstrap

This time the bootstraping command could be executed.
I guess the bootstrap section of the juju lxc article should be updated by removing sudo from the bootstrap command. In addition, it would be nice if juju didn't create ~/.juju/environments when the user accidently runs sudo juju bootstrap.
https://juju.ubuntu.com/docs/config-LXC.html#bootstrap-destroy

Off-topic:
Next I tried to set-up juju-gui by typing:
juju deploy juju-gui
juju expose juju-gui

I executed the juju-gui commands around 1 min after the juju bootstrap command and it doesn't seem to work. Juju status gives me an agent-state-info error '(error: template container "juju-precise-template" did not stop)' (I could create a new bug ticket for this problem if you wish). The log command in the lxc article doesn't work either (no matches found). https://juju.ubuntu.com/docs/config-LXC.html#debug-log

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

[Expired for juju-core (Ubuntu) because there has been no activity for 60 days.]

Changed in juju-core (Ubuntu):
status: Incomplete → Expired
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.