juju panic()s when pwd is not readable

Bug #1227203 reported by Tycho Andersen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Martin Packman

Bug Description

root@ubuntu:~# sudo -u tycho juju
panic: version: cannot read forced version: open FORCE-VERSION: permission denied

goroutine 1 [running]:
launchpad.net/juju-core/version.init·1()
 /build/buildd/juju-core-1.13.3/src/launchpad.net/juju-core/version/version.go:58 +0x21c
launchpad.net/juju-core/version.init()
 /build/buildd/juju-core-1.13.3/src/launchpad.net/juju-core/version/version.go:297 +0x13c
launchpad.net/juju-core/tools.init()
 /build/buildd/juju-core-1.13.3/src/launchpad.net/juju-core/tools/tools.go:23 +0x4d
main.init()
 /build/buildd/juju-core-1.13.3/src/launchpad.net/juju-core/cmd/juju/upgradejuju.go:283 +0x43

goroutine 2 [runnable]:
root@ubuntu:~# pwd
/root
root@ubuntu:~# juju --version
1.13.3-raring-amd64

Related branches

Revision history for this message
Robert Ayres (robert-ayres) wrote :

I'm not sure what FORCE-VERSION mechanism is actually used for, but the implementation seems odd to me.
Surely a FORCE-VERSION option would make more sense as a file in the user's .juju directory or an environment variable?

John A Meinel (jameinel)
Changed in juju-core:
assignee: nobody → Martin Packman (gz)
importance: Undecided → Medium
status: New → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → High
milestone: none → 1.17.0
Curtis Hovey (sinzui)
Changed in juju-core:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
milestone: 1.17.0 → 1.16.0
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.