Panic MacOS Sierra

Bug #1633495 reported by Curtis Hovey
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Katherine Cox-Buday

Bug Description

MacOS Sierra users cannot use Juju 2.0.0

curtis@Procession:~/Downloads/juju-bin$ sw_vers -productVersion
10.12

curtis@Procession:~/Downloads/juju-bin$ ./juju version
panic: unable to determine host series: unknown series ""

goroutine 1 [running]:
panic(0x1716440, 0xc820216c30)
 /Users/jenkins/crossbuild/golang-1.6/src/runtime/panic.go:464 +0x3e6
github.com/juju/utils/series.hostSeries.func1()
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/utils/series/series.go:36 +0x114
sync.(*Once).Do(0x3478988, 0x28ecb90)
 /Users/jenkins/crossbuild/golang-1.6/src/sync/once.go:44 +0xe4
github.com/juju/utils/series.hostSeries(0x0, 0x0)
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/utils/series/series.go:38 +0x3b
github.com/juju/juju/api.init()
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/juju/api/certpool.go:19 +0x198
github.com/juju/juju/cmd/modelcmd.init()
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/juju/cmd/modelcmd/modelcommand.go:363 +0x7e
github.com/juju/juju/cmd/juju/block.init()
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/juju/cmd/juju/block/protection.go:116 +0x56
github.com/juju/juju/cmd/juju/commands.init()
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/juju/cmd/juju/commands/upgradejuju.go:596 +0x5f
main.init()
 /var/folders/bs/hcn9_02s6h95876fth2kqytc0000gq/T/tmpaspG6S/juju-core_2.0.0/src/github.com/juju/juju/cmd/juju/main.go:28 +0x51

If we can provide a patch (a pull request), it can be used by Homebrew to make working juju 2.0.0

Per bug 1629444 this was fixed. Either the commit as bad, or Juju wasn't updated to use the right https://github.com/juju/utils
    https://github.com/juju/utils/commit/28c01ec2ad930d41fe5acd9969b96284eb61660b

Also per bug 1465317, juju client needs to stop checking its host's version because it is not jujud in a cloud.

Tags: osx
Curtis Hovey (sinzui)
description: updated
Changed in juju:
assignee: nobody → Katherine Cox-Buday (cox-katherine-e)
Revision history for this message
Katherine Cox-Buday (cox-katherine-e) wrote :
Changed in juju:
status: Triaged → Fix Committed
Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

Any eta for this getting distributed?

Revision history for this message
Anastasia (anastasia-macmood) wrote :

It has been committed to master tip and will be released as part of 2.0.1 (most likely at the end of this week).

Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Jay R. Wren (evarlast) wrote :

I do not think this actually fixes the bug.

Juju is still built with Go 1.6, the resulting executable is effectively not usable on MacOS Sierra: https://github.com/golang/go/issues/17234#issuecomment-256821918

Revision history for this message
Curtis Hovey (sinzui) wrote :

Homebrew uses golang 1.7 for sierra and yosemite to create the juju client. MacOS never runs the agent.

Revision history for this message
Reed O'Brien (reedobrien) wrote :
Revision history for this message
Reed O'Brien (reedobrien) wrote :
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.